PDA

View Full Version : targeting loaded .swf



mojoNYC
May 1st, 2003, 12:26 PM
hi all-
this code is working to load and position the external swf, but it won't gotoAndPlay to the frame inside the external swf--what am doing wrong here?
regards,
-mojo




bio.onPress=function(){
_global.section="bio";
createEmptyMovieClip("content",99);
content.loadMovie("headshot_info.swf");
content._x=400;
content.gotoAndPlay(3);
}

Flashmatazz
May 1st, 2003, 12:49 PM
My guess would be that you tell it to goto frame 3 before the external swf has fully loaded.
First make sure it's fully loaded before using the gotoAndPlay action.

kdzines
May 1st, 2003, 01:24 PM
look at this thread:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=8833

or try adding _root before content.

might be wrong, but i thought i'd have a go at helping!

mojoNYC
May 1st, 2003, 01:49 PM
thank you both for your replies--flashmatazz, you got it--it needed to load fully--i get carried away with attaching things on the fly that i forgot about this...thanks again!
-mojo