Import an swf into main swf

Hi anyone out there, I’m help…I was import an external swf into my main swf but the external swf -mc doesn’t randomly display. Is you know what mean there?
Please help!!!

My using script below:
onClipEvent (load) {
clipCount = 0;
}
onClipEvent (enterFrame) {
checker = random(100);
if (checker<=8) {
clipCount += 1;
duplicateMovieClip (_root.snowFlake, “snowFlake”+clipCount, clipCount);
if (clipCount == 100) {
clipCount = 1;
}
}
}:trout:

I am having a little troubvle understanding you siew… you said something abot loading external swf… but you are just duplicating a movieclip… what are you trying to do exactly? :-\

btw… if u are saying you cant see the duplicated movieClips… I think they all have the same x and y when they are duplicated so u need to moved em…

to move you can do this…

[AS]
randomX = random(0,300);
randomY = random(0,300);
_root[“snowFlake” + clipcount]._x = randomX;
_root[“snowFlake” + clipcount]._y = randomY;
[/AS]

and that sould go right after the "duplicatemovieClip satetment.

hope thats helps any…

-Aditya
:thumb:

This is what i mean I import external swf into my main swf, and in my external swf, it has action script to call the movieclip to duplicate, it work ok when it play itself. But when the external swf import the main swf, it isn’t work.!!! Does it mean sense to you>>>

Is there the problems in tell target path in the duplicateMovieClip as below:
duplicateMovieClip (_root.snowFlake, “snowFlake”+clipCount, clipCount);

Please help, I very very very appreciate…Thank You!!!:stuck_out_tongue:

actually… didn’t notice that…

if you are loading the external swf into an empty movie clip on the main swf… u need to use relative paths to the snow mc in your external swf. or you can say _root.[name of mc into which external mc is being loaded].[name of snow mc]

-Aditya
:thumb:
P.S. someone correct me if I am wrong! too lasy to open up flash now :stuck_out_tongue:

Thanks, adityagaddam.
I had sovle the problem!!!