[osflash] [MTASC] Reference to undeclared variable
Du Song
freewizard at gmail.com
Tue Sep 2 07:44:09 PDT 2008
Hey, Ralf,
did you mean:
$ cat TestDemoLucky.as
class TestDemoLucky
{
static function main(mc:MovieClip):Void
{
trace("TEST");
}
}
But I will still get
Warning: Reference to undeclared variable, 'TestDemoLucky'
in trace log
Regards,
Du Song
On Tue, Sep 2, 2008 at 18:06, Ralf Bokelberg <ralf.bokelberg at gmail.com> wrote:
> Strange, maybe it is a rare cornercase. I guess, nobody ever tried to
> name a class with a single lowercase character. You could try to give
> your call a different name.
>
> Cheers
> Ralf.
>
> On Tue, Sep 2, 2008 at 7:47 AM, Du Song <freewizard at gmail.com> wrote:
>> OSX, MTASC 1.12, Flash Player 9.0.124
>> $ cat t.as
>> class t
>> {
>> static function main(mc:MovieClip):Void
>> {
>> trace("TEST");
>> }
>> }
>> $ mtasc-osx -header 100:100:12 -version 8 -swf t.swf -main t.as
>> $ open t.swf
>> [in trace]
>> Warning: Reference to undeclared variable, 't'
>> TEST
>>
>> I searched the list, someone said it's something in mx packages, but
>> there's no mx in my code.
>> The code is so simple, why is there still a warning?
>>
>> Regards,
>> Du Song
>>
>> _______________________________________________
>> osflash mailing list
>> osflash at osflash.org
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
More information about the osflash
mailing list