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]
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]