Results 1 to 2 of 2
Thread: help me debug this please.
March 18th, 2010, 12:50 AM #11Registered User
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:
here's the live demo:
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;
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()
Any help would be greatly appreciated. Thanks!
March 18th, 2010, 03:58 AM #22,702Seņor Member
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)
If you are preloading, I have a set of links here which will point you in the right direction: