topical media & game development
#display-compose.mx
#display-compose.mx
[swf]
flex
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:ae="*"
paddingLeft="0" paddingTop="0" paddingBottom="0" paddingRight="0"
layout="absolute">
handler(s)
<ae:component_screen id="display"/>
<ae:component_playlist id="playlist"/>
display
<mx:VideoDisplay id="myVid" source="{playlist.source}" height="100%" width="100%" autoPlay="false"/>
<mx:Label text="{playlist.index + 1} / {playlist.max}" color="white" top="10" right="20"/>
controls
<mx:HBox left="20" bottom="10">
<mx:Button color="white" borderColor="0" fillAlphas="[0, 0]" label="!" click="playlist.click(myVid);"/>
</mx:HBox>
<mx:HBox right="20" bottom="10">
<mx:Button color="gray" borderColor="0" fillAlphas="[0, 0]" label=">" click="myVid.play();"/>
<mx:Button color="gray" borderColor="0" fillAlphas="[0, 0]" label="||" click="myVid.pause();"/>
<mx:Button color="gray" borderColor="0" fillAlphas="[0, 0]" label="_" click="myVid.stop();"/>
<mx:Button color="gray" borderColor="0" fillAlphas="[0, 0]" label="full" click="display.toggle();"/>
</mx:HBox>
</mx:Application>
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.