<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">create a MovieClip in your swf and create the frames that you'll want to access in that swf.
<br><br>Load the swf in and create a new instance of the MovieClip with your accessible frames in.<br><br>for instance if your clip is called 'FramesClip' - and is being exported for actionscript - it is automatically (in the Flash IDE and Flex, anyway) compiled into a Class that extends MovieClip, so you can instantiate it with 'new' as you would any other class.
<br><br>haven't tested this at all but this is the process.<br><br>var context:LoaderContext = new LoaderContext( false, ApplicationDomain.currentDomain )<br>var loader:Loader = new Loader();<br>loader.addEventListener
( Event.COMPLETE, handleLoadComplete );<br>loader.load(new URLRequest( "framesclip.swf" ), context );<br><br>private function handleLoadComplete(event:Event):void<br>{<br> var ClipClass:Class = getDefinition("FramesClip") as Class;
<br> var clipInstance:MovieClip = new ClipClass();<br><br> addChild(clipInstance);<br><br> clipInstance.gotoAndPlay("whatever");<br>}<br><br>In this case i've loaded the other swf into the same ApplicationDomain as the swf that's loading it. That's not necessary, but you'd have to get the definition from the Loader's ApplicationDomain if you don't.
<br><div class="Ih2E3d"></div></blockquote><div> <br>Interesting news about the changes to AS3. Alright, so I understand the process, but are you saying that I should name the movieclip as "FramesClip" when I compile it in swfmill? Is there a way I can utilize the event:Event var in the handleLoadComplete function when creating the ClipClass? I noticed that you use this var at all. I guess I don't really understand the getDefinition line of your callback function. Can you explain this a little better?
<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><br></blockquote></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What other AS3 compilers are there?</blockquote><div><br>The haXe compiler will compile AS3 if I'm not mistaken.<br></div></div><br><br>Thanks again!<br><br>-- Joel<br>