Results 1 to 2 of 2
Thread: help me debug this please.
-
March 18th, 2010, 12:50 AM #11Registered User
posts
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:
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... :-)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()
Any help would be greatly appreciated. Thanks!
-
March 18th, 2010, 03:58 AM #22,702Seņor Member
postsThat 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.htmlBlog article of the month: Why My One Line 'if' Statements Are Unusual
Twitter: IQAndreas
GitHub: IQAndreas

Reply With Quote


Bookmarks