Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : Controlling loaded movie without affecting main time line


dsgnermom
12/14/2004 11:38:19 PM
I have a main movie, in it is a frame with this action:
{
loadMovie("PreTest.swf", LoadMovie);
}

The movie that is loading is coming into a blank movie clip with an instance
called "LoadMovie". The movie that is loading is called PreTest.swf and it is
a quiz from the templates in MX 2004. The button in the quiz keeps controlling
my main timeline.

Can anyone help? This is the code for the button:

onClipEvent (load) {
curQuest = 0;
if(_root.LoadMovie.Options.QuestionsToAsk < (_root.LoadMovie._totalframes-2)
&& _root.LoadMovie.Options.QuestionsToAsk > 0){
totQuest = "/ " + (_root.LoadMovie.Options.QuestionsToAsk+1);
}
else{
totQuest = "/ " + String(_root.LoadMovie._totalframes-1);
}

function updateFrame() {
curQuest++;
}
updateFrame();
}

I've tried replacing _root with the name of the movie clip but that didn't
work. Nothing I've tried is working. Any help would be greatly appreciated!

kglad
12/15/2004 3:45:12 AM
AddThis Social Bookmark Button