as3 Problem
I was wondering how you can edit a Movie Clip, in one frame when the action script controlling it is on another frame. (Both in the same layer though.)
The context is I am making a maze game and each frame is a room on the maze, there is a locked door in one room and a key in another. When you find the key and click it the door will be unlocked and you will be able to progress further within the maze.
The exact error is "TypeError: Error #1009: Cannot access a property or method of a null object reference."
My code is.... ("gKey" is in the current frame while "A25" and "gLock" are in another frame)
- gKey.addEventListener(MouseEvent.CLICK, GreenUnlock);
Function GreenUnlock(m:MouseEvent)
{
A25.addEventListener(MouseEvent.CLICK, hop25);
gLock.visible = false
}
function hop25(m:MouseEvent)
{
gotoAndStop(13);
}
