[mtasc] [Newby] Help with compile error

Scott Whittaker whittaker007 at hotmail.com
Wed Jul 6 00:17:47 CEST 2005


Hi Arthur,

I can't be certain in your case but I often get misleading compiler errors 
like that if there is a spelling mistake somewhere that references that 
class - for example you might have a reference somewhere to treeNode instead 
of TreeNode.

The problem is that the compiler warning doesn't help you to find where the 
error is. I recommend doing a case insensitive search for "treenode" and 
checking the results carefully :)

- Scott W.

>From: Arthur Clemens <arthur at visiblearea.com>
>Reply-To: MotionTwin ActionScript2 Compiler List 
><mtasc at lists.motion-twin.com>
>To: MotionTwin ActionScript2 Compiler List <mtasc at lists.motion-twin.com>
>Subject: [mtasc] [Newby] Help with compile error
>Date: Tue, 5 Jul 2005 13:44:39 +0200
>
>Hi people
>
>I just started using MTASC, so forgive me my ignorance.
>I have been staring at this compile error of my class TreeNode:
>
>     Parsed /Data/Projects_Arthur/asapframework/testsource/Flash/ 
>scripts/data/tree/TreeNode.as
>     /Data/Projects_Arthur/asapframework/testsource/Flash/scripts/ 
>data/tree/TreeNode.as:13: lines 13-306 : type error class name  mistake : 
>should be TreeNode
>
>So something must be wrong with line 13:
>
>     class data.tree.TreeNode extends BaseTreeNode {
>
>Well, BaseTreeNode gets imported through these imports at the top of  the 
>class:
>
>     import data.tree.*;
>     import com.lostboys.util.debug.Console;
>
>If I use
>
>     class TreeNode extends BaseTreeNode {
>
>then FlashMX won't compile it.
>
>Any ideas?
>
>BTW I didn't use the -strict option.
>
>
>
>cheers
>
>Arthur Clemens
>--
>MTASC : no more coffee break while compiling

_________________________________________________________________
Shop ‘til you drop at XtraMSN Shopping http://shopping.xtramsn.co.nz/home/




More information about the mtasc mailing list