Results 1 to 2 of 2

Thread: onEnterFrame Help

  1. #1
    Join Date
    Oct 2009
    Posts
    37
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default onEnterFrame Help

    how to recall a onEnterframe action
    My movie clip moving to left onEnterFrame and i created a button to stop on onRollOver with "delet this.onEnterFrame" function but i need the movie clip scroll again on onRollOut. can anybody help me .

    my_clip.onEnterFrame = function() {

    this._x+= -2;

    btn.onRollOver = function() {
    delete my_clip.onEnterFrame;
    }

    btn.onRollOut = function() {
    what i need to code here
    }
    }

  2. #2
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default

    if you want it to start again wouldnt you do
    Code:
    btn.onRollOut = function() {
    	my_clip.onEnterFrame = function() {
    	  this._x+= -2;
    	}
    }

Bookmarks

Posting Permissions

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