PDA

View Full Version : Load swf from movie clip



sanju
November 22nd, 2004, 06:18 AM
hi,

I got this tutorial from kirupa load movie

But when I create movie clip and in movie clip I creat a button and new layer paste this script than It doesn't load the movie clip

Could you tell me how can I assign the path when I m in movie clip


but.onPress = function () {
_root.createEmptyMovieClip("container",1);
loadMovie("loaded.swf","container");
container._x = 150 ;
container._y = 20 ;
}

byersj21
November 22nd, 2004, 05:07 PM
try _root on the swf file your loading... in the script...



but.onPress = function () {
_root.createEmptyMovieClip("container",1);
loadMovie("_root.loaded.swf","container");
container._x = 150 ;
container._y = 20 ;
}


Or could be you need _root.container ... not sure.. but try that see if it works?
loadMovie("loaded.swf","_root.container");
(because your creating this container on the root... )

Caligldnbears
November 22nd, 2004, 05:23 PM
hmmmm...this worked for me with or without _root....*shrugs*

sanju
November 22nd, 2004, 11:26 PM
thanks byersj21

this formula works
loadMovie("loaded.swf","_root.container");


Thanks again

sanju
November 23rd, 2004, 01:18 AM
Hi, Its workin' fine but I have some problem in that when I click on this

loading file position doesn't change

and whenI clicked 1 number of cube it loades the swf file but some faces of cube goes disappears......

Please help me to solve this also.

I have attached file as a zip.

thanks

sanju
November 23rd, 2004, 01:20 AM
Hi, Its workin' fine but I have some problem in that when I click on this

loading file position doesn't change

and whenI clicked 1 number of cube it loades the swf file but some faces of cube goes disappears......

Please help me to solve this also.

I have attached file as a zip.

thanks