Thread: actionscript 3
View Single Post
Old 04-07-2007, 11:55   #2 (permalink)
dpc036
Senior Member
 
dpc036's Avatar
 
Join Date: May 2005
Location: St Helens
Posts: 487
ok forget the first post.

ive got a version working, but not exactly how i need it to.
this is my code.
Code:
menuBtn01.addEventListener(MouseEvent.CLICK, fadeselection01); function fadeselection01(MouseEvent):void { trace("click"); var request:URLRequest = new URLRequest("test_import.swf"); var loader:Loader = new Loader() loader.load(request); parent.parent.holder.addChild(loader); }

this method loads an external swf file:
Code:
var request:URLRequest = new URLRequest("test_import.swf");

what i cant figure out is how to load a movieclip from the library.
i have set the linkage options to export the movieclip for actionscript and given it a name "Image02" but cant get it to link.

any ideas on this guys?
  Reply With Quote