|
-
how can i do this script work when it loads on other file?
Ex. the file with the script gonna load on the "main" file, but the movement of the movieclips doens't work.
The script i'm using is this:
onClipEvent (enterFrame) {
_root.navegacao._y+= (yy-_root.navegacao._y)/5;
_root.navegacao1._y+= (yy-_root.navegacao1._y)/5;
_root.navegacao2._y+= (yy-_root.navegacao2._y)/5;
_root.navegacao3._x+= (xx-_root.navegacao3._x)/5;
}
If anyone could help me?
-
Senior Member
when you say 'file' do you mean swf files? If so, reference stuff by _level. So the first movie loaded is: _level0.
So something like this:
onClipEvent (enterFrame) {
_level0.navegacao._y+= (yy-_level0.navegacao._y)/5;
_level0.navegacao1._y+= (yy-_level0.navegacao1._y)/5;
_level0.navegacao2._y+= (yy-_level0.navegacao2._y)/5;
_level0.navegacao3._x+= (xx-_level0.navegacao3._x)/5;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|