A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scene Problem

  1. #1
    Registered User
    Join Date
    Mar 2010

    Unhappy Scene Problem

    Alright, I have been spending the whole day on this problem and am still stuck.

    My current situation is when I want to play from my Scene 7 to Scene 0 frame 1, I use the following code

    home.addEventListener(MouseEvent.MOUSE_DOWN, homeHandler);
    function homeHandler(evt:MouseEvent):void{
    gotoAndStop(1, "Scene 0");

    The in the output panel the following error would appear,

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Stroboscope_V1_fla::MainTimeline/frame1()
    at flash.display::MovieClip/gotoAndStop()
    at Stroboscope_V1_fla::MainTimeline/homeHandler()

    This error code is like my nemesis, I keep getting it =.=

    I seriously am at my wits end, please advice/help ):

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    press the picture...
    Don't use the scene syntax. Just give each of your frames independent of the scene a unique name like this
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center