The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: help me debug this please.

  1. #1

    help me debug this please.

    First, I'm a complete noob here and in AS3. i know AS2 and this is my first project in AS3...

    here's my FLA:
    http://www.directoph.com/projectbeta...-Brochure3.fla

    here's the live demo:
    http://www.directoph.com/projectbetatest/3dbrochuretest/

    Movie Behavior:
    It's a digital version of brochure with three versions (US, Hawaii, Canada), upon loading of the main movie, a script will load an image that will be the reference for the magnification. click and dragging over the brochure will magnify its contents. clicking "view back" will 3D rotate the brochure then load the back image, then script again to magnify the back contents.

    all works well for the 3 versions.

    the problem occurs when, lets say, I'm in Hawaii version and I clicked USA. Same with when in Canada version and I clicked USA or Hawaii, in short, errors occurs when jumping into an 'earlier' frame, or in backward behavior.

    clicking to Hawaii or Canada from USA - no error;
    clicking to Canada from Hawaii - no error;
    clicking to USA from Hawaii - error;
    clicking to USA from Canada - error;
    clicking to Hawaii from Canada - error;

    Error:
    HTML Code:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at 3D_fla::MainTimeline/frame1()
        at flash.display::MovieClip/gotoAndPlay()
        at 3D_fla::MainTimeline/usa2()
    I hope I made it clear. Ignore the "PDF" button by the way, I haven't coded it yet. If you find my code as crappy as hell, feel free to laugh... :-)

    Any help would be greatly appreciated. Thanks!

  2. #2
    That error usually occurs because you are preloading another SWF, however, you don't seem to be doing that, so it basically just means that somewhere a variable is null, and you are trying to access it anyway.

    Try the steps on this link (though #2 probably doesn't apply in your case)
    http://www.kirupa.com/forum/showpost...21&postcount=2


    If you are preloading, I have a set of links here which will point you in the right direction:
    http://iqandreas.blogspot.com/2009/0...s-as3-faq.html
    Blog article of the month: Why My One Line 'if' Statements Are Unusual
    Twitter: @IQAndreas
    GitHub: IQAndreas

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012