[mtasc] MTASC bugs with package name and Class as(xxx==Xxx)
Scott Whittaker
whittaker007 at hotmail.com
Fri Jul 22 09:46:51 CEST 2005
At a glance, the problem appears to be the line:
var another:Event = new Another();
You are typing the variable another as an Event, but your class
test.event.Another does not extend class test.Event. Either extend Event or
type another as var another:Another = new Another();
Scott
>From: Sadovskiy Igor <igor at offshorecreations.com.ua>
>Reply-To: MotionTwin ActionScript2 Compiler List
><mtasc at lists.motion-twin.com>
>To: MotionTwin ActionScript2 Compiler List <mtasc at lists.motion-twin.com>
>Subject: Re: [mtasc] MTASC bugs with package name and Class as(xxx==Xxx)
>Date: Fri, 22 Jul 2005 10:07:27 +0300
>
>I had the same problems yesterday (v. 1.08)
>
>Igor
>
>iiley wrote:
>
>>There was two class here:
>>
>>---------------------------------------------------
>>class test.Event{
>>}
>>
>>class test.event.Another{
>>}
>>---------------------------------------------------
>>
>>The main class is:
>>---------------------------------------------------
>>import test.*;
>>import test.event.*;
>>
>>class test.EventTest{
>> public static function main(){
>> var event:Event = new Event();
>> var another:Event = new Another();
>> }
>>}
>>---------------------------------------------------
>>
>>When compile with MTASC 1.08, the output is:
>>============================================
>>"F:/flashTools/mtasc-1.08/mtasc.exe" -swf
>>"F:/eclipse3.0.1/eclipse/workspace/AsWing/src/test/Test.swf" -cp
>>"F:/eclipse3.0.1/eclipse/workspace/AsWing/src" -main
>>"test/EventTest.as" -header 600:500:20 -cp "C:/Documents and
>>Settings/Administrator/Local Settings/Application
>>Data/Macromedia/Flash MX 2004/zh_cn/Configuration/Classes"
>>
>>
>>F:/eclipse3.0.1/eclipse/workspace/AsWing/src/test/event.as:1: lines
>>1-2 : type error class name mistake : should be test.event
>>============================================
>>When compile with MTASC 1.09, the output is:
>>============================================
>>"F:/flashTools/mtasc-1.09/mtasc.exe" -swf
>>"F:/eclipse3.0.1/eclipse/workspace/AsWing/src/test/Test.swf" -cp
>>"F:/eclipse3.0.1/eclipse/workspace/AsWing/src" -main
>>"test/EventTest.as" -header 600:500:20 -cp "C:/Documents and
>>Settings/Administrator/Local Settings/Application
>>Data/Macromedia/Flash MX 2004/zh_cn/Configuration/Classes"
>>
>>
>>F:/eclipse3.0.1/eclipse/workspace/AsWing/src/test/EventTest.as:6:
>>characters 24-29 : type error class name mistake : should be
>>test.Event
>>============================================
>>--
>>MTASC : no more coffee break while compiling
>>
>>
>>
>
>--
>MTASC : no more coffee break while compiling
_________________________________________________________________
Need more speed? Get Xtra Broadband @
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html
More information about the mtasc
mailing list