The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
I hate actionscript 3.0 so much, it makes me want to puke blood.
I just want to make a simple friggin button that moves me to a new frame on the timeline. The only flash experience I have is with 2.0 and it was so easy, it would take maybe 2 minutes, but I've been at this for 3 hours and I have made no progress. Every tutorial I try doesn't work and gives me error messages.
function flip(evt:MouseEvent):void {
gotoAndPlay(2);
}
Now what's happening is it's going to the reqested frame but repeating the following error message over and over until I kill the movie:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at CRSpage_fla::MainTimeline/onFrame()
Looks like you have code on an onFrame() event handler that's trying to access a null property. It's amazing what actually reading your error logs can do for you.
Your click event handler is fine, your other code is the problem.
I am unaware, but it sounds like you have a preference on your compilation set incorrectly. It's rare for something on Frame 1 to get magically lost on frame 2 unless you have an option on a non-default setting.
Posts
so in your case it would be goToAndStop (2);
Now what's happening is it's going to the reqested frame but repeating the following error message over and over until I kill the movie:
on(release) {
gotoAndStop(2)
}
??
Looks like you have code on an onFrame() event handler that's trying to access a null property. It's amazing what actually reading your error logs can do for you.
Your click event handler is fine, your other code is the problem.
we also talk about other random shit and clown upon each other
It seems the problem is that I didn't carry over an image to frame two that was referenced in code that was in frame one.
The stupid thing is that I didn't carry the code over to frame 2 either. So I don't get why the file is still accessing that code.
we also talk about other random shit and clown upon each other