Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="windowedapplication1_creationCompleteHandler(event)">
- <fx:Declarations>
- <!-- Place non-visual elements (e.g., services, value objects) here -->
- </fx:Declarations>
- <fx:Script>
- <![CDATA[
- import mx.events.FlexEvent;
- protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
- {
- // TODO Auto-generated method stub
- var swfLoader:Loader = new Loader();
- var swfFile:URLRequest = new URLRequest("assets/slide_8.swf");
- var container:MovieClip= new MovieClip();
- swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadedHandler);
- swfLoader.load(swfFile);
- container.addChild(swfLoader);
- bc.addChild(container);
- }
- protected function swfLoadedHandler(e:Event):void {
- trace("SWF LOADED");
- }
- ]]>
- </fx:Script>
- <s:SWFLoader id="bc" width="80%" height="80%"/>
- </s:WindowedApplication>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement