Answered
Old var Number trick isn't working anymore
So here's the setup, in AS 2, I used a Number variable to
help create a navigation scheme that checked to see what button was
clicked, and moved accordingly on the timeline. You'll see it in
the attached AS. Essentially, all I did was set a new number
variable to 0, and when a specific button was clicked, it would
change the value to 1. A function would then check to see which one
set the value to "1" and then move the play head to the designated
frame label (then resetting the variable to avoid looping
problems). It doesn't work and I'm geting the error message:
"Access on undefined property onRelease througha reference with static type flash.display:SimpleButton"
In other words, it ain't working. The only things I changed from the AS2 version of my script was the syntax of creating the variable, and using a button rather than a movie clip.
I hope this makes sense, because I would really not want to have to rebuild this in AS2 just to get it to work. I've separated the AS out by frame/labels in the hopes that what I'm trying to do is a bit more clear. Help!
"Access on undefined property onRelease througha reference with static type flash.display:SimpleButton"
In other words, it ain't working. The only things I changed from the AS2 version of my script was the syntax of creating the variable, and using a button rather than a movie clip.
I hope this makes sense, because I would really not want to have to rebuild this in AS2 just to get it to work. I've separated the AS out by frame/labels in the hopes that what I'm trying to do is a bit more clear. Help!