Hello,
I’ve attached a .fla of some button I try to create…
I’ve simplified some more complicated button that I found on the web.
The problem is: The original button was made in FlashMX (player 5 and AS1)
I use FlashMX2004, and in the Properties/“Publish settings” tab when I change the player version from 5 to 7 and the AS from version 1 to version 2, all the functionality stops working…
It may be some sintax used in the old AS1 that is not supported by the AS2?
This is the script attached on the main frame (where the problem must be…):
[url=“http://www.kirupaforum.com/forums/misc.php?do=bbcode#code”]
onClipEvent (load) {
fscommand("allowscale", "false");
f = 0.8;
r = 0.1;
num = 20;
}
onClipEvent (enterFrame) {
for (i=1; i<=num; i++) {
a = this["a"+i];
a.xx = a.xx*f+(a.s-a._xscale)*r;
a.yy = a.yy*f+(a.s-a._yscale)*r;
a._xscale += a.xx;
a._yscale += a.yy;
}
}
[url="http://www.kirupaforum.com/forums/misc.php?do=bbcode#code"]
(When using player v7 and AS2, in the debugger module it shows the variables xx and yy as NaN)
Any ideeas?..maybe is obvious to some of you what is wrong with the script…but I’m quite new in action scripting.
Thank you in advance