Glad you sorted it out John. Hope your project goes well.
Paul
- Original Message -
From: "john fisher" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 11, 2008 10:40 PM
Subject: Re: [flexcoders] udefined property error without function
> No you nailed it. I didn
No you nailed it. I didn't understand about having to use a function.
I'm sure I moved my eyes over the very document, but it just didn't stick.
Thanks.
John
Paul Andrews wrote:
>
>
> I have a feeling this error may not be to do with these particular snippets.
>
> Paul
>
>
>
>
>
stick an init method or something like that...
The script tag translates to "class scope" you can see that from the import
statements and so on...
on the component you want add a creationComplete="initme"
and then in initme put the code that you want
On Tue, Nov 11, 2008 at 8:24 PM, john fisher
- Original Message -
From: "john fisher" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 11, 2008 6:24 PM
Subject: Re: [flexcoders] udefined property error without function
>I am calling addChild inside the mx script section of a mxml file. If it
> has to be
I am calling addChild inside the mx script section of a mxml file. If it
has to be called inside a method, then I need some instruction.
JF
Fotis Chatzinikos wrote:
>> public var myDemoClass:Zdemos ;
>> public var myDataFilePath:String = "http://.realdata2.xml"; ;
>>
>> myDemoClass = new
- Original Message -
From: "john fisher" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 11, 2008 5:25 PM
Subject: Re: [flexcoders] udefined property error without function
> oh %^&$ thats what I get for typing anything instead of cut&paste!
> sorry..
> 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 workin
oh %^&$ thats what I get for typing anything instead of cut&paste!
sorrybut
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 th
- Original Message -
From: "john fisher" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 11, 2008 1:39 AM
Subject: [flexcoders] udefined property error without function
> context: an mxml app, with classes written by me ( Zdemos) and Flare
> classes. "myCa
context: an mxml app, with classes written by me ( Zdemos) and Flare
classes. "myCanvas" is the id of a canvas in the flex part of the file
and it works.
I don't understand---
this compiles:
public var myDemoClass:Zdemos ;
public var myDataFilePath:String = "http://.reald
10 matches
Mail list logo