johnyct9760
01-02-2008, 09:23 PM
PLZ HELP ME!!! Stuck on Flash Action scripting lesson 1 part 3
I'm working through the basic flash action script DVD and I've hit a snag very early. I'm supposed to be building a script that makes flower petals in a circle but when I press my "create flowers" button
I get and "Nan" message instead of the output message that the video says I should get. I have no idea what I've done wrong I’ve follow the directions very carefully up to this point. The code I have so far is:
go.onRelease = function() {
var spacing = (360 / amount);
trace (spacing);
}
when I put in 36 and press the button it’s supported to spit out a variable of 10, but all I get in the NaN message no matter what amount I place in there. I've placed a copy of the file up to this point at this link:
www.johncliffordtaylor.com/lesson_1_03.fla
I'm working with flash 8 and the DVD focus works with flash 7 but I don't think that could be what’s causing this error. Some on plz help me I need this DVD for work and I can't stay stuck very long right here.
Thx for any help you can give,
John
I'm working through the basic flash action script DVD and I've hit a snag very early. I'm supposed to be building a script that makes flower petals in a circle but when I press my "create flowers" button
I get and "Nan" message instead of the output message that the video says I should get. I have no idea what I've done wrong I’ve follow the directions very carefully up to this point. The code I have so far is:
go.onRelease = function() {
var spacing = (360 / amount);
trace (spacing);
}
when I put in 36 and press the button it’s supported to spit out a variable of 10, but all I get in the NaN message no matter what amount I place in there. I've placed a copy of the file up to this point at this link:
www.johncliffordtaylor.com/lesson_1_03.fla
I'm working with flash 8 and the DVD focus works with flash 7 but I don't think that could be what’s causing this error. Some on plz help me I need this DVD for work and I can't stay stuck very long right here.
Thx for any help you can give,
John