Roll over button caption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karlectomy
    New Member
    • Sep 2007
    • 64

    Roll over button caption

    Hey all,

    I Just installed Flash CS3 and was rearing to get animating when I caught a snag... Actionscript 3.0 is NOT Actionscript 2.0...

    I want to make a popup caption when I do a rollover of the button...

    I get silly errors like: 1119: Access of possibly undefined property _x through a reference with static type Class.

    this is my code which is in the first frame of the timeline. I have a button LeftKnee and the caption leftkneelabel.

    Apparently Actionscript 3.0 is a much more robust language than its predecesor.

    [CODE="Actionscr ipt"]

    LeftKnee.onRoll Over = function() {
    this.onEnterFra me = function () {
    leftkneelabel._ alpha += (100-leftkneelabel._ alpha)/3;
    leftkneelabel._ x -= (leftkneelabel. _x-_xmouse)/2;
    leftkneelabel._ y -= (leftkneelabel. _y-_ymouse)/2;
    }
    };
    LeftKnee.onRoll Out = function() {
    this.onEnterFra me = function() {


    leftkneelabel._ alpha += (0-leftkneelabel._ alpha)/3;
    };
    };
    [/CODE]
    Last edited by karlectomy; Jan 11 '08, 08:15 PM. Reason: oops
Working...