> public var myDemoClass:Zdemos ;
> public var myDataFilePath:String = "http://.....realdata2.xml"; ;
>
> myDemoClass = new Zdemos(myCanvas,myDataFilePath);
> myCanvas.addChild(myDemoClass.getUIComponent());

Are you trying to call addChild in the class itself? In your first example
(that is working)
addchild is called inside a method

In the second example (not working) the code is in no method...


On Tue, Nov 11, 2008 at 7:25 PM, john fisher <[EMAIL PROTECTED]> wrote:

>   oh %^&$ thats what I get for typing anything instead of cut&paste!
> sorry....but
> The *actual* error has the capital "P" so unfortunately its not this
> simple pilot error, though I am not ruling out some other dumb pilot
> error....
>
> any other idea?
>
>
> Paul Andrews wrote:
> > -
> >
> > You'll notice that in the error there's a mention of "myDataFilepath" not
>
> > "myDataFilePath" in the error, so somewhere you've got the wrong variable
>
> > name..
> >
> > Paul
> >
> >
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],

Reply via email to