A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how can i do this script work when it loads on other file?

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    1

    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?

  2. #2
    Senior Member next2heaven's Avatar
    Join Date
    Nov 2000
    Posts
    275
    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;
    }
    Play Intimate Tonight!
    Check it out here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center