Ok, I can tell you that I have no formal training with Flash/AS3.
That said, I was working on a project in which on frame 2 a new MC(call it Window) is added that has some slider buttons I have made.
At this point I will say that I created the instance of Window on Frame 2’s Actions (not scripted in an AS3 file).
now my slider buttons(MCs as well) are called into Window from inside Window’s AS3 Class file. As a fail safe, the MOUSE_UP event is tied to the stage, incase you move off the object when dragging.
My problem is that I get:
Error #1009: Cannot access a property or method of a null object reference.
when the slider buttons are added. after doing some testing, I have found that the problem is that stage is null for the slider buttons and Window, if check in the class AS3 file. If I check it in frame 2’s Actions, it comes back fine.
Why is this? Can I not use both the AS3 files and the frames? It’s on the stage… I can see it. when I run trace(parent) in the class I get null. when I run trace(Window.parent) in the Action Frame, I get [object Main].
I’m confused…