A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Rollover how 2

  1. #1
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348

    Rollover how 2

    I want a ball to move to a certain y position on rollover.
    Here is my code on the mc.

    onClipEvent (enterFrame) {
    this._y += (newy-lasty)/5;
    }

    and here is the code on my button

    on (rollOver) {
    lasty = _root.rollover._y;
    newy = 225;
    }

    thanx in advanced people.

    What seems to be the prob is that the mc wont recognize the variables declared in the button.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    onClipEvent (enterFrame) {
    this._y += (newy-this._y)/5;
    }

    on (rollOver) {
    _root.rollover.newy = 225;
    }

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