Skip to main content
October 20, 2008
Answered

Will a .as file stop a .swf from being linked?

  • October 20, 2008
  • 4 replies
  • 738 views
I have a simple movie that basically has the AS3 code for two buttons.

One button (named videopage_btn) links to another .swf file perfectly.

The other button (named thumbnailgallery1_btn) does not link to another .swf file. It gives me an error (TypeError: Error #1009: null) when using the same code (attached).

In my project folder, I have this .swf file, and the other .swf file, which has a .as file to go with it.

When I open the other thumbnailgallery1.swf file alone (without a button from the other simple.swf file), it compiles correctly. However, when I try to use the button, I get the 1009 error.

Can I use some different code to open the thumbnailgallery1.swf from the thumbnailgallery1_btn ?

Yours Sincerely,

Jntspecialty


This topic has been closed for replies.
Correct answer kglad
that must have lost something in translation because i don't understand that error message. in any case, you'll need to debug that class file.

4 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 21, 2008
that must have lost something in translation because i don't understand that error message. in any case, you'll need to debug that class file.
kglad
Community Expert
Community Expert
October 20, 2008
the problem is in your class file. can you translate the part of the error message that is displayed in whatever-language characters?
October 20, 2008
The part of the error message that is displayed in Korean says "Attribute of object reference it stands it will not be able to access".

Other than that, the class code was put into an AS file and was given the same name as the primary class and the FLA file is in the same directory as the AS file and the Properties tab of the Property inspector was entered the class name of the primary class for the example in the Document class text box .
kglad
Community Expert
Community Expert
October 20, 2008
click on file, publish settings, flash and tick "permit debugging". retest and copy and paste your error message.
October 20, 2008
I did what you said. My error mesage is pasted below.

By the way, I just realized that there may be no error because the simple .swf compiles prefectly.


It's just that once I click the thumbnailpage_btn,

I get the following OUTPUT:

"
TypeError: Error #1009: null 객체 참조의 속성이나 메서드에 액세스할 수 없습니다.
at thumbnailgallery1$iinit()

"
kglad
Community Expert
Community Expert
October 20, 2008
what's null? thumbnailpage_btn?
October 20, 2008
null is part of the error message I am getting. I don't know the details of it.

thumbnailpage_btn is the instance name of the button on the simple .swf file that I want to take me to the thumbnailgallery1.swf, which is accompanied by an .as file. *The thumbnailgallery1.fla contains the document class "thumbnailgallery1"