Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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" minWidth="955" minHeight="600" creationComplete="init(event)">
- <fx:Script>
- <![CDATA[
- import com.greensock.TweenLite;
- import com.greensock.easing.Quart;
- import mx.events.FlexEvent;
- private var myTween:TweenLite;
- protected function mc_CCHandler(event:FlexEvent):void
- {
- TweenLite.from(mc, 1, {x:561, y:152, ease:Quart.easeIn});
- mc.text = "Some Other Label";
- }
- protected function init(event:FlexEvent):void
- {
- createTF();
- }
- protected function createTF():void
- {
- var myText:Label = new Label();
- myText.text = "Some AS3 Label";
- myText.x = mc.x + mc.width + 50;
- addElement(myText);
- }
- ]]>
- </fx:Script>
- <!-- Components / MXML -->
- <s:Label id="mc" text="Some Label" creationComplete="mc_CCHandler(event)" />
- </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement