Demonia
July 23rd, 2003, 06:53 AM
I really need some help please. I have just started learning AS from this book and am having a little trouble. I have to make a thingie whereby when u enter values into 2 input txt boxes an image modifies its scale and alpha accordingly. Now I have done everything I am supposed to but the funny thing is NOTHING happens. I'll post the code (I applied it to the button which I think is right)...
on (release, keyPress "<Enter>") {
if (_root.scale>100) {
gotoAndPlay(1);
} else {
myClip._alpha = "opacity";
myClip._yscale = "scale";
myClip._xscale = "scale";
}
}
The script on frame 1 is
scale = " ";
opacity = " ";
_root.myClip._alpha = 100;
_root.myClip._yscale = 100;
_root.myClip._xscale = 100;
and on frame 2
stop ();
I need to figure this out cause I don't see the point of going on if i don't understand what's wrong with this...
Thanks a billion,
D :beam:
on (release, keyPress "<Enter>") {
if (_root.scale>100) {
gotoAndPlay(1);
} else {
myClip._alpha = "opacity";
myClip._yscale = "scale";
myClip._xscale = "scale";
}
}
The script on frame 1 is
scale = " ";
opacity = " ";
_root.myClip._alpha = 100;
_root.myClip._yscale = 100;
_root.myClip._xscale = 100;
and on frame 2
stop ();
I need to figure this out cause I don't see the point of going on if i don't understand what's wrong with this...
Thanks a billion,
D :beam: