views:

213

answers:

1

I am not an expert in flash, but i do work with AS and tweak Flash projects , though not having deep expertise in it. Currently i need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error.

"--- TypeError: Error #1009: Cannot access a property or method of a null object reference. at NewSite_fla::MainTimeline/__setProp_ContactOutP1_ContactOut_Contents_0() at NewSite_fla::MainTimeline/frame1() --"

The structure of the project is like, it has the different sections split into different movie clips. There is no single main timeline, but click actions on different areas of seperate movie clips will take them between one another. All the AS logic of event handling are written inline in FLA , no seperate Document class exists.

Preloader Movie clip is the first one getting loaded. As i understood the error is getting thrown initially itself, and it is not happening due to any Action script logic written inline, because it is throwing error even before hitting the first inline AS code.

I am not able to figure Out what exactly it causing the problem, or where to resolve it. I setup the stuff online, for reference if anybody want to take a look at it, and here is the link.You need to have flash debugger turned ON in your browser, if need to see the exception getting triggered.

http://tinyurl.com/2alvlfx

I really got stuck at this point. Any help will be great.I had not seen the particular solution i am looking for anywhere yet, though Error #1009 is common.

A: 

Did you set the option "Export at frame 1" for the classes in your library?

I get this error for instance:

I have a circle which is a Circle class and put it on Frame 10. If I try to attach a eventHandler to it from frame 1, I get this error. Set the option "Export at frame 1" for my Circle class will solve this issue for me.

Sander Pham
I was not aware of it till now. Well i will try that and let you know here the result.Not sure wethere it will solve our problem or not.
Wind Chimez
Well, The option of Export at frame is set at 1, but no luck. Is there anything else i can try out ?
Wind Chimez
Hey Guys, I got the solution, and it is really wiered.I initially was trying with FlashCS4 in mac. Now i tried it in windows with Flash CS3 and the damn file just got compiled and is working fine. I am not sure what is the problem with mac, but as long as i m able to proceed its fine. Anyways, Thanks for your help.
Wind Chimez