loadclip and loadmovie - control of clip after its loaded!
Hey all, just can't get this to be as simple as it should be.
I am trying to learn more about loading movies so I can create a structure for an e-learning course.
I have read so much, but nothing explains why this does not work.
I have 2 movieclips on my main timeline. One is an animation that i just have a ball moving back
and forth. The other is simply a blue box converted to a movie clip.
The bluebox is called cc, its instance name is cc1
the animation movie is called insiderMovieClip and its instance name is insiderMovieClip1
Here the the code I wrote.
--------------------------------------------------------
insiderMovieClip1.onRollOver = function(){
this.play();
}
insiderMovieClip1.onRollOut = function(){
this.stop();
}
cc1.loadMovie("01-VOM_Meters_INTRODUCTION.swf");
cc1._width=50;
cc1._height=50;
trace("cc1="+cc);
cc1.onRollOver = function(){
this.play( );
}
cc1.onRollOut = function(){
this.stop( );
}
-------------------------------------------
The movie that I load is a box animations that simply moves a small black box back and forth.
So when I run it, I can mouse over the insiderMovieClip1 and it starts animating.
The cc1 movie clip does not react at all to anycode I give it. (such as cc1.stop();)
Its as if I have loaded it into the shell of cc1, but I don't have any control of it, inside there...
I have tried several variations of the loadmovide and loadclip. All of which I can get loaded,
but can't seem to stop or start the movie on my terms. (actually I can't get them to do anything
but load)
My goal is to load several movies at a time, allowing the user to page between them, but I don't
wan them to start until I say so. I want to write this so it pulls them from a table, so the range
can be dynamic. (ie 10 page, 300 page, etc..)
Why is loadclip and loadmovie such a pain ?
thanks in advance for your kind assistance... : ]
