flash on 2010-6-7

by kihon
♥0 | Line 16 | Modified 2010-06-07 02:00:52 | MIT License
play

ActionScript3 source code

/**
 * Copyright kihon ( http://wonderfl.net/user/kihon )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/1RdB
 */

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx">
	<fx:Declarations>
		<mx:AnimateProperty duration="2000" id="anime1" target="{button1}" property="width" fromValue="70" toValue="200" />
		<mx:AnimateProperty duration="3000" id="anime2" target="{button2}" property="width" fromValue="70" toValue="200" />
		<mx:AnimateProperty duration="4000" id="anime3" target="{button3}" property="width" fromValue="70" toValue="200" />
		<mx:AnimateProperty duration="5000" id="anime4" target="{button4}" property="width" fromValue="70" toValue="200" />
	</fx:Declarations>
	
	<s:Button id="button1" x="100" y="100" label="2s" />
	<s:Button id="button2" x="100" y="130" label="3s" />
	<s:Button id="button3" x="100" y="160" label="4s" />
	<s:Button id="button4" x="100" y="190" label="5s" />
	<s:Button x="200" y="300" label="play" click="anime1.play(); anime2.play(); anime3.play(); anime4.play();" />
</s:Application>