View Full Version : Problem with external swf loaded into MovieClip
ponsho
June 22nd, 2007, 05:39 PM
I have this problem, im loading external swf into a MovieClip using the Loader method, but i want to manipulate the frames inside of them, for example load a Swf as a child and tell it to go to frame 2 and stop how can i do this, because once i add it as a child it is a Object Loader not a movieClip.
sasxa
June 22nd, 2007, 06:24 PM
function onLoadComplete(event:Event):void {
var loader:Loader = event.target.loader;
(loader.content as MovieClip).gotoAndStop(2); // casting it as MovieClip just in case...
}
I assume you know how to load it (:
ponsho
June 22nd, 2007, 09:08 PM
Thanks, its worked great.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.