Jump to content
Search Community

Search the Community

Showing results for tags 'swfloader'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 23 results

  1. Hi I have a usecase, where I use DataLoader to load binary Data. This way I'm always able to look into the incoming data like so: queue = new LoaderMax( { name:"mainQueue", autoLoad:true }); [...] var loader:DataLoader = new DataLoader("example.com/SESSIONSTRING", { name:someParameter, format: "binary", onComplete:dataCompleteHandler }); queue.append( loader ); [...] function assetCompleteHandler(e:LoaderEvent):void { var ba:ByteArray = LoaderMax.getLoader(e.target.name).content as ByteArray; //Validation here, like checking if it is long enough, if not, are the first 5 Bytes read as a String saying "ERROR" and the server gave an Error back. Or is it long enough, but to short to be sure, so there might be a Warning or PHP Error coming back from the Server, then display te bytearray as a String for me to read "unexpextd error on PHP Line...". I like handling with the raw ByteArray } This is all great, but I want to be able to then convert the Binary Data into a Movieclip. That does only seem to work when doing so: var mc:MovieClip = LoaderMax.getLoader(ID).rawContent as MovieClip; The Problem is, that only SWFLoader has the rawContent accessable. When using DataLoader I only have access to Content but not rawContent. My problem is this generally: When I use DataLoader, I can scoop into the ByteArray and do all kind of magic, but am not able to create a MC from the loaded Data. When I use SWFLoader, I can play with the Loaded SWF/MC with easy, but have no Access to the ByteArray. Am I missing something? How can I have both features? Being able to have a accessable SWF and being able to scroop the Data befor allowing it to be injected into my App? Indy
  2. hi, i load an external swf file into a sprite mcContainer, and jump to frame 2 of loader.rawContent. when applying BlitMask to mcContainer and fling it, the swf goes back to frame 1 until finished scrolling, then back to frame 2. can i avoid that? thanks...
  3. Hi, I have this bug that I want to ask about. I am using swfloader to load up swf movie and as it loads, I play it after is hit certain percentage loaded. The thing is, the first time I load up the swfloader, the screen blink. It only occur to the first swf loading upon launching the app, and it only happen in android, not IOS. After the first swf loading, other swf file load without a blink perfectly. Can anyone advise me on the possible reasons that cause this blink? I would like to get rid of it.
  4. So I have a swf file with an embedded font I made in Flash Pro. What I'm trying to do is dynamically load this swf into my project using LoaderMax and SWFLoader, then register that font so it can be used later. The swf is downloaded and stored locally beforehand. It seems to be loading the swf fine, the problem is when I try to register the font, it throws an error saying the class from the swf is invalid. Code to load the SWF: FontLoader = new LoaderMax( { onComplete: fontsLoaded, skipFailed: true } ); for(var i:int=0; i < mainXML.Fonts.Font.length(); i++) { name = mainXML.Fonts.Font[i].FontFamily.text(); fileName = File.applicationStorageDirectory.resolvePath("UpsellAssets/" + name + ".swf").nativePath; FontLoader.append( new SWFLoader( fileName, { name: name } ) ); } FontLoader.load(true); onComplete function: private function fontsLoaded(e:LoaderEvent):void { var loader:SWFLoader = FontLoader.getLoader("Myriad"); _fontClass = loader.getClass("Myriad") Font.registerFont(_fontClass);//throws error here...The value specified for argument font is invalid. } _fontClass seems to load properly, but I cant seem to access the font. Any insight on what might be wrong would be greatly appreciated. Thanks ^.^
  5. Hi, I have a very weird problem here. I am using swfloader in flash builder 4.7 for my adobe air app and it is working fine on air 16 with IOS 8 device when I debug it on the device itself. The thing is when I export it for TestFlight Beta Testing in IOS, it would not load at all. Can anyone help me with this???
  6. My swf loader isn't firing a COMPLETE event. My progress traces looked like this before they stopped: ... 0.9822556688484245 0.9962878926891163 0.989999985011968 Which is odd since the last one is less than the previous one. No error traces from the ones I was listening to. var l:SWFLoader = new SWFLoader("../lib/audio/bg.swf", { name:"bg", onProgress:onProgress, onComplete:loadBG, onError:trace, onCancel:trace, onFail:trace, onInit:trace } ); I was having issues with Loader.loadBytes not firing an INIT or COMPLETE events too. This code is in the preloader. The swf was generated from http://www.mjbshaw.com/2012/12/swfer.html which makes WAVs into gaplessly looping mp3s.
  7. Hello Sirs & Ladies, I am an advanced Flex Developer and i am not a Flash Developer. I want to ask about Flex SDK 3.6.0 Alpha because it works for external swf applications. Spark Components won't work from external swf when i am using MDIWindow / MDICanvas than i call SystemManager with Object(sm_instance.application).variablename or Object(sm_instance.application).functionname() I have created flash-based Desktop with custom external swf application like our desktop loads same application example Notepad or TextEdit or GEdit and any programs. If you want check my post from stackflowover and adobe-forum spark component frameworks can not load which MDIWindow has components like TextArea or any components and event from external swf application was stopped and crashed and MDIWindow was nothing openned. MX Components work for external swf application fine. This is awesome. and it is very better than spark components. I tell my workstation with flash-based desktop: MainDesktop.swf <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" creationComplete="creationCompleteHandler(event)" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.FlexEvent; import mx.managers.SystemManager; [Bindable] private var extSM:SystemManager; [Bindable] private var extSM2:SystemManager; private var _externalSwfLoaded:Boolean; [Bindable] public function get externalSwfLoaded():Boolean { return _externalSwfLoaded; } public function set externalSwfLoaded(value:Boolean):void { _externalSwfLoaded = value; } protected function creationCompleteHandler(event:FlexEvent):void { var context:LoaderContext = new LoaderContext(); context.applicationDomain = ApplicationDomain.currentDomain; loader.loaderContext = context; loader.load("PropretiesApp.swf"); loader2.loaderContext = context; loader2.load("EditorApp.swf"); } protected function loaderCompleteHandlerFromPropreties(event:Event):void { extSM = loader.content as SystemManager;; // Set the swf loaded flag if you have the SystemManager if (extSM) externalSwfLoaded = true; } protected function loaderCompleteHandlerFromEditor(event:Event):void { extSM2 = loader2.content as SystemManager;; // Set the swf loaded flag if you have the SystemManager if (extSM2) externalSwfLoaded = true; } protected function loaderIoErrorHandler(event:IOErrorEvent):void { trace(event.toString()); Alert.show(event.type + ":" + event.text, "IO error occured"); } protected function openPropreties(event:MouseEvent):void { Object(extSM.application).openPropretiesWinCall(); canvas.windowManager.add(Object(extSM.application).propretiesWindow); } protected function openEditor(event:MouseEvent):void { Object(extSM2.application).openEditorWinCall(); canvas.windowManager.add(Object(extSM2.application).editorWindow); } ]]> </mx:Script> <flexlib:MDICanvas left="0" right="0" top="0" bottom="40" id="canvas"> <mx:SWFLoader left="0" right="0" top="0" bottom="0" id="loader" trustContent="true" complete="loaderCompleteHandlerFromPropreties(event)" ioError="loaderIoErrorHandler(event)"/> <mx:SWFLoader left="0" right="0" top="0" bottom="0" id="loader2" trustContent="true" complete="loaderCompleteHandlerFromEditor(event)" ioError="loaderIoErrorHandler(event)"/> </flexlib:MDICanvas> <mx:Button left="10" bottom="10" label="Open Propreties" click="openPropreties(event)"/> <mx:Button left="137" bottom="10" label="Open Editor" click="openEditor(event)"/> </mx:Application> EditorApp.swf ( Sub application ) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0"> <mx:Script> <![CDATA[ import flexlib.mdi.containers.MDIWindow; [Bindable] public var editorWindow:EditorWindow; public function openEditorWinCall():void { editorWindow = new EditorWindow(); } ]]> </mx:Script> </mx:Application> for component EditorWindow <?xml version="1.0" encoding="utf-8"?> <ns:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns="http://code.google.com/p/flexlib/" xmlns:ns1="*" width="600" height="390" layout="absolute" title="Editor"> </ns:MDIWindow> And PropretiesApp.swf ( sub application ) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0"> <mx:Script> <![CDATA[ import flexlib.mdi.containers.MDIWindow; import mx.controls.TextArea; import net.sourceskyboxer.PropretiesWindow; [Bindable] public var propretiesWindow:PropretiesWindow; public function openPropretiesWinCall():void { propretiesWindow = new PropretiesWindow(); } ]]> </mx:Script> </mx:Application> For component PropretiesWindow: <?xml version="1.0" encoding="utf-8"?> <ns:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns="http://code.google.com/p/flexlib/" width="340" height="340" doubleClickEnabled="false" horizontalScrollPolicy="off" layout="absolute" resizable="false" showControls="false" title="Propreties" verticalScrollPolicy="off"> <mx:Script> <![CDATA[ protected function donePropretiesClick(event:MouseEvent):void { this.close(event); } ]]> </mx:Script> <mx:Button right="5" bottom="5" label="Done" click="donePropretiesClick(event)"/> <mx:Form left="5" right="5" top="5" bottom="30"> <mx:FormItem width="100%" label="Name:"> <mx:TextInput width="100%"/> </mx:FormItem> <mx:FormItem width="100%" label="Icon:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="Path:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="Filename:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="View:"> <mx:Label width="100%"/> </mx:FormItem> <mx:FormItem width="100%" height="100%"> <mx:Text width="100%" height="100%" text="Text"/> </mx:FormItem> </mx:Form> <mx:Button right="64" bottom="5" label="Verify"/> </ns:MDIWindow> and runs applications. Any pictures for example: Did you see any pictures? Is it good? But how do i use LoaderMax when i won't like add SWFLoader and SystemManager for next swf file than LoaderMax can work for SystemManager instance? But LoaderMax can use any different swf applications when i manage same openned MDIWindow ( sub application ) Is it possible for one or more swfs for one SystemManager? I would like to ask about Loadermax or SWFLoader? If i manage same sub apps ( example : PaintApp.swf, CalcApp.swf and any <name>App.swf on my MainDesktop than i don't need add line for AS3? And i am trying for creating shutcuts on MainDesktop like our desktop by any operating system? // Edit: If i don't need call any SystemManager Instance than i use only SystemManager like example Object(sm_instance.application).AppInitalize() for all external swf application which i click sub application and MainDesktop will open any application like i want...... Thank you for supports and improvements Regards and best greeting from Germany Jens
  8. I have an AIR for iOS application where I'm downloading remote swfs and then playing them. When I was using a generic loader this worked exactly as intended, but I wanted to switch to LoaderMax. When I use LoaderMax SWFLoader to download the swfs, it works fine when I test in Debug mode on the desktop. However when I run the app on the iPhone, I get these errors: ReferenceError: Error #1065: Variable Icon is not defined. ReferenceError: Error #1065: Variable FLVPlayback is not defined. I've searched the documentation and code files for SWFLoader and its base classes, but I can't find any reference to these properties. However, when I'm creating a new SWFLoader object and I type "icon" or "FLVPlayback" as properties to pass to the SWFLoader, Flash CS6 turns them blue (implying that they're valid parameters to pass to the constructor). The code that doesn't work on the device: var mySwfLoader:SWFLoader = new SWFLoader(val, {name:key, autoPlay:false, onComplete:completeHandler}); The place where I can see "icon" and "FLVPlayback" turn blue: var mySwfLoader:SWFLoader = new SWFLoader(val, {name:key, autoPlay:false,[b] icon:[someVar], FLVPlayback:[someVar][/b], onComplete:completeHandler}); So what I gathered from this is that, for some reason, when running on iOS the app requires that icon and FLVPlayback are defined. But I can't find any documentation on these properties in the LoaderMax classes themselves or online. Can anyone tell me what default properties I can pass to these, or at least give me some documentation on what data types they are/what they're expecting? (I tried passing 'false' to each, hoping maybe they were booleans, but to no avail). Any assistance whatsoever would be appreciated in this matter. Thanks!
  9. Hi all, I am very new to loadermax and fairly inexperienced with AS3 so apologise if I have missed or misunderstood some documentation that explains this. I am currently using SWFLoader to load 3 external swfs into a main swf. I have constructed a preloader in this main swf that 'draws' a ring using masking. The ring currently tracks the load progress of the whole queue (see code below) however I want it to track the load progress of Atoms.swf. The ultimate aim is to repeat this for the other array assets. //Load external SWFs into queue LoaderMax.activate([SWFLoader]); var urls:Array = ["Atoms.swf","Compounds.swf","Quiz.swf"]; var queue:LoaderMax = LoaderMax.parse(urls); var swfs:Array = queue.content; queue.load(); queue.addEventListener(ProgressEvent.PROGRESS, onLoading); function onLoading(event:LoaderEvent):void { //set variables to calculate ring rotation var loaded1:Number = event.target.progress; var counter1=(loaded1*100)*3.6; //mask one semi-ring over the other masked1_mc.mask=masking1_mc; masked1_mc.rotation=counter1; if(masked1_mc.rotation<0){ masked1_mc.mask=null } My reasoning tells me that the event.target.progress needs to be changed to track the asset loading however I am unsure what code (if any) would accomplish this. I have considered just hard-coding a ratio of queue progress to swf size for each asset but would really prefer something a bit more dynamic (so I don't need to change it when I update the external swfs in future). I realise that this may not be the best implementation of loadermax however it currently works and I would prefer not to change it unless necessary. Sorry if this seems a bit long winded, I would really appreciate a speedy response for some enlightenment in this matter. Thanks for LoaderMax, the whole of GreenSock and helpful responses.
  10. Hello, I have an AIR application where I have to load a SWF from a server. At some point the user will click on a button and that button will create a new nativeWindow. Inside that nativeWindow we have a stage reference. I just want to load a SWF, addChild it to the stage and be happy! But I'm getting this error: SecurityError: Error #2070: Security sandbox violation: caller http://somewhere.com/swfapp.swf cannot access Stage owned by app:/Teste.swf. at flash.display::Stage/get stageWidth() at com.swfapp::MainClass/initApp() at flash.display::DisplayObjectContainer/addChild() at flash.display::Stage/addChild() at NativeWindowSWFLoader/loadSWFURLComplete()[C:\Users\hats\Desktop\teste\NativeWindowSWFLoader.as:93] I'm using a normal SWFLoader: private function loadSWF(url:String):void { holder = new MovieClip(); applicationDomain = new ApplicationDomain(); loaderContext = new LoaderContext(false, applicationDomain); loader = new SWFLoader(url, { context:loaderContext, container:holder, onProgress:progressHandler, onComplete:onCompleteSWFLoader } ); loader.load(); } private function onCompleteSWFLoader(e:Event):void { this.stage.addChild(holder); } Can someone hep me on this? Thank you.
  11. Hi Carl Another problem made me come back to you. My External loader is ready now and working quiet well (Thanks ). Here I am Loading an external SWF file using the SWFLoader Class. Here is the way i do: currentLoader = new SWFLoader(url,{container:videoContainer_mc,width:720,height:406,centerRegistration:true,autoPlay:false,onProgress:progressHandler,onComplete:completeHandler}); currentLoader.load(); Im trying to make the whole content FullScreen. On the other hand, i tend to design another button for making the external loaded Content FullScreen. How Can i do this separately for the main Stage and external Loaded content? Regards
  12. Hello, I just started working with LoaderMax and it worked quite well till the point I wanted to load the project into another project also with SWFLoader. It throw's an error that it cannot figure out what the width of the swf is. The same code loading another swf where no LoaderMax stuff was used at all just worked fine. I don't see anything wrong with my code here. I attached the project, so it would be cool if you can try to export the b2s_special.fla and tell me why it is throwing this error: Error: Error #2099: Das ladende Objekte ist noch nicht weit genug geladen, um diese Informationen zu liefern. at flash.display::LoaderInfo/get width() at com.greensock.loading.display::ContentDisplay/_update() at com.greensock.loading.display::ContentDisplay/set rawContent() at com.greensock.loading.core::DisplayObjectLoader/_initHandler() at com.greensock.loading::SWFLoader/_init() at com.greensock.loading::SWFLoader/_rslAddedHandler() at flash.display::DisplayObjectContainer/addChild() Best, Sami b2s.zip
  13. Hi, Any chance someone might know why I can't see my loaded swf files. I can hear the audio and the trace statements says they are loaded, but they are not visible. I'm guessing it has something to do with the container. I'm hoping you can see something obvious in my code. Thanks. public class Main extends MovieClip { private var currentSWFLoader:SWFLoader; private var swf1:SWFLoader = new SWFLoader("movie1.swf", {container:movieTwo_mc, autoPlay:false, width:480, height:480, x:300,scaleMode:"proportionalInside",onComplete:completeHandler}); private var swf2:SWFLoader = new SWFLoader("movie2", {container:movieTwo_mc, autoPlay:false, width:480, height:480, x:300, scaleMode:"proportionalInside",onComplete:completeHandler}); public function Main() { homePage_mc.movieOne_btn.addEventListener(MouseEvent.CLICK, loadOne); homePage_mc.movieTwo.addEventListener(MouseEvent.CLICK, loadTwo); } //LOAD MOVIE ONE; private function loadOne(event:MouseEvent):void { trace("one"); currentSWFLoader = swf1; currentSWFLoader.load(true); homePage_mc.movieOne_btn.removeEventListener(MouseEvent.CLICK, loadOne); } private function loadRed(event:MouseEvent):void { trace("two"); currentSWFLoader = swf2; currentSWFLoader.load(true); homePage_mc.movieTwo_btn.removeEventListener(MouseEvent.CLICK, loadTwo); } function completeHandler(e:LoaderEvent):void { trace(e.target + " loaded"); e.target.rawContent.play(); homePage_mc.visible = false; btnListener(); } private function btnListener():void { home_btn.addEventListener(MouseEvent.CLICK,resetScreens); } //RESET SCREENS; public function resetScreens(event:MouseEvent):void { currentSWFLoader.unload(); home_btn.removeEventListener(MouseEvent.CLICK,resetScreens); homePage_mc.visible = true; trace("reset screens"); } } }
  14. Hi I'm using SWFLoader to load a SWF into a webpage. Simple stuff and the SWF I've whittled down from 6,100 Kb for 690 kb because I thought that might be the problem. Long story short through progress loader event and trace I notice the file gets to about 40% and just stops there. When I reload it starts from where it left off and gets to around 80%. A third reload finally completes. I tried a onFail function and trace but that doesn't seem to be firing off. It just hangs, waiting. I don't suspect a problem with Loadermax however I'm banging my head trying to figure out where the problem is, and I thought I would just post this in case someone has seen something like this! Thanks, Nic
  15. Can someone tell me why is it that, when i loaded an external SWF using greensock's SWFLoader, and i (command+F) to make it full screen, the loader and the whole stage just shifts to the left and doesnt stay at the centre, whereas when I (command+f) on a page where there's no swfLoader, everything stays at the centre. Can anyone tell me how do i make it(the page with the SWFLoader) stay at the centre? I know it sounds easy to solve, but I'm not really that good when it comes to flash, so i dont really know how to solve it. Can someone help me??? I will really appreciate it.
  16. I'm loading a SWF using SWFLoader that's over 50mb It seems to freeze when publishing from Flash Builder, but works fine when viewing the swf in a browser Is there a maximum size problem thats causing this?
  17. Ok, I am pretty new to this flash / actionscript so please help me get on track... I am trying to do the following: FirstSwf -- contains a timelinemax that animates a text from left to right SecondSwf -- contains a X number of photos that fade in and fade out with Y animation duration (number of images is dynamically parsed via XML configuration) ThirdSwf -- contains a timeline that animates a text from bottom to top (sort of like credits screen) Main.swf -- This is where I am stuck. I want to load the three SWF's into a master timeline inside main.swf and than sequentially play them one by one. I am able to load these swf's using LoaderMax but I can't seem to figure out two things: 1. How do I play them in sequence? 2. How do I control the sub timelines (within these external swf's) via the master timeline? Any help would be appreciated! Thanks
  18. Hii I'm loading in a swf animation with a couple of frame scripts embedded on the loaded swf timeline. I managed to load in the swf, place it into a TweenMax instance, and placed that TweenMax instance into a TimelineMax instance so I can control the playback. The only issue I'm having is that the swf animation frame scripts are not firing off. This is an example of how I'm setting up the above: // This occurs after the swf is loaded var intro = LoaderMax.getLoader("transition_intro").rawContent; var introTransition:TweenMax = new TweenMax(_intro, _intro.totalFrames, { useFrames: true, frame: _intro.totalFrames, ease: Linear.easeNone } ); var timeline:TimelineMax = new TimelineMax( { useFrames:true, paused:true } ); timeline.append(introTransition); timeline.play(); Is there a way to have the loaded swf run a frame script on the defined frame (like mc.gotoAndPlay(0) or am I setting up this wrong? Cheers
  19. When I try to resize it, it doesn't show. It works fine like this ------ var loader:SWFLoader = new SWFLoader("livingroomout.swf", {container:this); //Load Swf loader.load(); { ----- but when I try to resize the swf, by adding the height and width properties, it doesn't appear at all ----- var loader:SWFLoader = new SWFLoader("livingroomout.swf", {container:this, width:300, height:300}); //Load Swf loader.load(); { ----- any help? pleasee???? im a noob at this
  20. I am having trouble with a screensaver file that I am creating. The basic idea is that a f4v will be loaded in with videoLoader and then it will play seemless until a specified amount of time when the videos will be paused, and a swf will play over the top. The first problem I am having is with the seemless aspect of the video. I have tried several options including setting repeat:-1, but as the file repeats, it pauses for half a second and you can see the background. To fix this I have two video loaders that listen for the end of one video, then switches to the other. This works fine on its own, but when I try to add in the swf after so many rotations it breaks the system after about 30 minutes depending on the computer. Could it be a problem with how large the stage size is? The stage is 5464x768.
  21. Hi all, I'm sorry to clog up the forums with something I'm sure I should be able to figure out, but I'm stuck. I have an arbitrary number of SWFs all loaded into a "shell" swf via LoaderMax. These swfs are pulled from references in an XML file (though that shouldn't matter). I have a "loading" progress bar that currently waits until everything (SelfLoader, XMLLoader, and all the SWFLoaders) is finished before displaying the first loaded SWF. Let's say there are 7 SWFs. After the second is fully loaded -- and these have been prioritized, so hopefully that will help keep things in order -- I want to display the first loaded SWF while the remaining 5 load in the background. I have my handlers set up so that I can detect when the desired number of SWFs have been loaded (2 is also arbitrary and user-definable), but after that, I'm not sure how to tell my "shell" to display the first loaded SWF. Any suggestions? Thanks!
  22. I'm using autoplay=false to load a swf using SWFLoader. As expected, the swf is stopped during the timeline. Is there a way to make it play without knowing how many frames it has(without using the plugin "frame")?
  23. Hi I cannot seem to be able to remove a loaded SWF using removeChild(). Here is my code XML: <SWFLoader name="swf1" url="swfs/start.swf" load="true"> AS: var currentPage:SWFLoader; if (currentPage != null) { swf_holder_mc.removeChild(currentPage.content); } currentPage = LoaderMax.getLoader('swf1'); swf_holder_mc.addChild(currentPage.content);
×
×
  • Create New...