Groups | Blog | Home
all groups > flash actionscript > june 2006 >

flash actionscript : loadClip problem


alrazzle
6/3/2006 10:23:38 PM
I am trying to add an opening movieclip to a website and am having some
difficulty with transitioning from the movieclip to the website. currently I
have the movieclip set up so that on the last frame I have another movieclip
that continually scrolls through 3 images to be a visual preloader for the home
page. I have a movieclip loader defined in frame 1:

var myMCL:MovieClipLoader = new MovieClipLoader();

then on the last frame (where the repeating images are) I have in the AS:

stop();
myMCL.loadClip("home.swf", 5);

It doesn't replace the movieclip with the homepage, I just see the initial
movieclip with the scrolling images. Can anyone help me?

thanks.
sly one
6/4/2006 3:04:23 AM
what is 5? You should be declaring a movieClip instancename or _level there. To
learn more about MovieClipLoader have a look at the excellent tutorial called
"external swf preloading" here:

<a target=_blank class=ftalternatingbarlinklarge
href="http://www.gotoandlearn.com/">http://www.gotoandlearn.com/</a>
Vee
6/4/2006 4:39:37 AM
you are missing some key listener callbacks of that class;
MovieClipLoader.onLoadProgress listener, MovieClipLoader.getProgress(),
MovieClipLoader.onLoadComplete, MovieClipLoader.onLoadInit listener
the help menu explains them in great detail.
alrazzle
6/5/2006 2:56:51 AM
thanks for your quick responses to my question! I am going to check the tutuorial out on gotoandlearn.com then I'll see if I can figure it out. If not I'll post on here again.

AddThis Social Bookmark Button