PDA

View Full Version : Load in a swf into my main stage


Pele
07-19-2001, 02:22 AM
I want to load a swf movie (test.swf) into my main stage, so it becomes part of my movie

I have create a empty movie clip called (emptyMC).

and in the movieClip I put

onClipEvent(enterframe) {
loadMovie("test.swf", emptyMC)
}

test.swf and my main movie is in the same folder


I can't get this work. The test.swf will just won't show. can someone help me. Also, how can I restrict the size of the movie (test.swf) .

thanks

Pele

akilwani
07-19-2001, 12:51 PM
y don't u load your external file onClipEvent(load)


well try this


onClipEvent(load) {
loadMovie("test.swf", this)
}



hope it will work

Jesse
07-20-2001, 04:37 AM
enterFrame actions are performed every frame, so you shouldn't use loadMovie actions within them...

Pele
07-20-2001, 07:12 AM
I still have no luck...is there any tutorial on it?
Please let me know

many thanks


Pele

Jesse
07-20-2001, 08:51 AM
Ctrl F8, create a new movie clip. Leave it empty and put one copy on the main stage. Give it an instance name of 'target'. then on frame one of your movie use:
loadMovie ("file.swf", "_root.target"); that's it.