PDA

View Full Version : Debug...easy but URGENT problem!!



outback
June 2nd, 2009, 09:22 PM
Hi all,

I'm making a DVD content but everytime I export the SWF and click on a button I get a debug message. I've tried taking my actions away but it did't work.

The good thing is that even with the message everything works fine.

So I want to know if there is a way for me to disable the debug message so my client won't see it when he clicks on the DVD buttons.

Can anyone please help me?? I've tried everything I could!

Thanks in advance!

if it helps here is the Debug message I'm getting:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at <anonymous>()[main_fla.MainTimeline::frame1:93]

Ning
June 2nd, 2009, 11:12 PM
If you really do not want to fix the issues, just add
try{

}catch(err:Error){}
into anonymous method, which define in main_fla.MainTimeline::frame1:93

I think the reason cause the error is that, you use some property of a object before you give a value to the object.

If the flashplayer of your client is not a debug version, the debug info will not popup.

outback
June 3rd, 2009, 04:03 PM
I tried this putting this action on my movie but it still not working

[code]try{
}catch(err:Error){}[code]

Can you please tell what I'm doing wrong? I freaking out with this error I just want it to go away (because my movie works fine but I don't want this message!!!

thanks a lot for your attention!!!

xchrisx
June 3rd, 2009, 11:26 PM
You have to wrap that code around the line that's causing the error.

First step is to isolate the line that's causing the problem. It's probably trying to set a variable or call a function that's not created yet.

Once you find the line of code, wrap this new code around it:



try {
// bad line of code goes here
} catch(e:Error) { }

outback
June 4th, 2009, 11:33 AM
like this? it's not working... I tried:



// tried all 3 of these (1)
try{
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at <anonymous>()[main_fla.MainTimeline::frame1:93]
}catch(err:Error){}

//2
try{
Cannot access a property or method of a null object reference.
at <anonymous>()[main_fla.MainTimeline::frame1:93]
}catch(err:Error){}

//3
try{
TypeError: Error #1009
}catch(err:Error){}

my flash is also having some problems exporting my SWF my fla is 650mb and I want to save the swf in a DVD but flash says I don't have enought memory.... thats a lie I'm running flash CS4 on a MacBook Pro 2Gb what can I do?

thanks again!!!