Hello everyone!
Thanks for the click!
I just started learning AS3 and also starting to feel my first frustration. I was hoping someone could lend me a hand for a fix. I have a feeling that it’s a pretty simple problem but I guess I’ve drained my brain too much and couldn’t longer process some information. Anyway, I’ve included the files here so you might want to check it out (for those interested). The file is at http://rapidshare.com/files/412490697/Fix.zip. And the problem is stated as follows:
[COLOR=DarkRed]The Problem[/COLOR]
I have three SWFs. They are named: main.swf, content1.swf, content2.swf. The first SWF file (main.swf) has two elements on the stage. One UILoader (a Flash component) and a movieclip containing two buttons named “btn1” and “btn2”. The idea is to load content1.swf into the UILoader when “bt1” is clicked and replace content1.swf with content2.swf when “btn2” is clicked.
When you try to open the main.swf file from a web browser and perform the usual user interaction, it looks fine. But when you open it in Flash authoring environment, test the movie, click “LOAD 1”, resize the stage, click “LOAD 2”, and resize it again, the Output panel fires these cute little characters:
[FONT=Courier New]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at content1_fla::MainTimeline/setComp()
at content1_fla::MainTimeline/resizeComp()[/FONT]
They are so cute that I wanna…Argg! Everytime I try to resize the stage, the error shows up. (sigh)
So, that’s my problem. I don’t know how to get rid of them. I wish someone would help me fix it. I really like to learn more about ActionScript 3…
…anyone? Please?