开发者

TypeError: Error #1009 - (Null reference error) With Flash

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 happe开发者_StackOverflow社区ning 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 is 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.

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜