RE: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Rick Winscot
ect type for complete freedom. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Downs Sent: Friday, April 18, 2008 3:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dynamic Instance Problem You just need to declare it somewhere, its

RE: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Rick Winscot
errors. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale Fraser Sent: Friday, April 18, 2008 3:38 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Dynamic Instance Problem Thanks, That kind of makes it non dynamic if I need to

RE: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Gordon Smith
18, 2008 1:11 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Dynamic Instance Problem Doesn't work for my needs. I need to create object instances based on XML data. The component creating the instances isn't aware of what objects might get created. So I would need t

Re: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Christophe Herreman
> Regards > > Dale Fraser > > http://learncf.com > > http://flexcf.com > > > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Stephen Downs > *Sent:* Friday, 18 April 2008 5:48 PM > *To:* flexcoders@yahoogroups.com > *Subject:* R

RE: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Dale Fraser
2008 5:48 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dynamic Instance Problem You just need to declare it somewhere, its still dynamic, i.e. it may be created it may not. You don't have to actually use the declared var, your just making sure thats its availab

Re: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Stephen Downs
oders] Dynamic Instance Problem Hi Dale, did you reference the class somewhere in your code? It needs to be compiled into the swf in order to instantiate it dynamically. My personal preference is to do this with a static code block: { MyClass1, MyClass2 } regards, Christophe -- Chris

RE: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Dale Fraser
On Behalf Of Christophe Herreman Sent: Friday, 18 April 2008 5:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dynamic Instance Problem Hi Dale, did you reference the class somewhere in your code? It needs to be compiled into the swf in order to instantiate it dynamically.

Re: [flexcoders] Dynamic Instance Problem

2008-04-18 Thread Christophe Herreman
Hi Dale, did you reference the class somewhere in your code? It needs to be compiled into the swf in order to instantiate it dynamically. My personal preference is to do this with a static code block: { MyClass1, MyClass2 } regards, Christophe -- Christophe Herreman http://www.herrodius.c

[flexcoders] Dynamic Instance Problem

2008-04-17 Thread Dale Fraser
Anyone tell me why this doesn't work. var ClassName:String = 'views.pr.ProjectView'; var ClassReference:Class = getDefinitionByName(ClassName) as Class; var instance:UIComponent = new ClassReference(); child.addChild( instance ); ReferenceError: Error #1065: Variable ProjectView is not d