« Return to Thread: Reference to undeclared variable

Re: Reference to undeclared variable

by Song Du :: Rate this Message:

Reply to Author | View in Thread

Thanks, Nicolas.
So there's not any way/workaround to "check if defined" without a warning?

Regards,
Du Song



On Tue, Sep 9, 2008 at 16:31, Nicolas Cannasse
<ncannasse@...> wrote:

>> Just found one workaround:
>> 1. use flasm -d TestDemoLucky.swf > TestDemoLucky.flm
>> 2. remove these code:
>>   push 'TestDemoLucky'
>>   getVariable
>>   not
>>   not
>>   branchIfTrue label11
>> 3. flasm -a TestDemoLucky
>> Don't know how to do it in mtasc way.
>
> The problem is that it's not compatible with Adobe AS2 compiler, which never
> overwrite a class if it's already defined. This is why this jump to the
> class end is needed.
>
> Nicolas
>
> --
> MTASC : no more coffee break while compiling
>

--
MTASC : no more coffee break while compiling

 « Return to Thread: Reference to undeclared variable