PDA

View Full Version : effect won't work when swf called


Suzaku7
01-23-2006, 08:50 PM
So I have a swf that randomly calls other swfs into it.
I have one swf that has an old film grain effect on it, and by it self it works just fine , but when called by my RandomLoader.swf it will not play the 3 MovieClips that make the effect work.


onClipEvent(enterFrame){
_root.line._x=random(728);
for (i=0; i<=2; i++)
{
_root.dot.duplicateMovieClip( "dot"+i, i+1);
}
if (i=2){
i=0;
}
}



I was thinking the _root was the problem and I tried _level0 too but that didnt do the job either.

any suggestions?

Flash Gordon
01-23-2006, 09:07 PM
about about changing it to this.line._x=random(728);

don't use _root.

Suzaku7
01-23-2006, 09:19 PM
That did not seem to fix it.
but thank you for the suggestion.

Flash Gordon
01-23-2006, 09:34 PM
try _parent

if that doesn't work, attach the file.

Suzaku7
01-23-2006, 09:38 PM
That worked!
Thank you, I appreciate you taking the time to help me.