[flexcoders] Require Content Writer Urgently For Ahmedabad Office

2009-03-22 Thread manager_dcl


Hi Friends,

We are looking for a Content writer who can join us full time immediately for
our Ahmedabad office.

the candidate should be good in English and should be able to write SEO friendly
Blogs and posts.

Knowledge of Computer Hardware is a plus.

Kindly mail your CV to j...@dclstore.co.uk
Please mention in Subject line :"Ref:AVCW001: your experience"
Also mention below details in the mail:

Current CTC:
Expected CTC:
Notice Period:
Years Of Experience:
Years of Experience As Content Writer:
Links to your articles/Blogs/Posts:

mails without the mentioned format and information would not be considered. 
mails send to this
ID would also be discarded.




[flexcoders] Re: strange problem with remote object

2009-03-22 Thread johndoematrix
Tracy could you please show me how to pass the parameters to the method. this 
is the only way i have always known to get items from a database.thanks



RE: [flexcoders] Re: strange problem with remote object

2009-03-22 Thread Tracy Spratt
You are not passing the username and password parameters to the to the
method.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of johndoematrix
Sent: Monday, March 23, 2009 1:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: strange problem with remote object

 

i tried to change my code after reading through some coldfusion flex
tutorials but i get the same error msg "Unable to invoke CFC - The UNAME
parameter to the userData function is required but was not passed in.". here
is my new code

"cfc function"






SELECT *
FROM profile
where username like '%#arguments.uname#%' 
and Password like '%#arguments.pswd#%'
 



"mxml page"


http://www.adobe. 
com/2006/mxml" width="100%" height="100%" backgroundColor="#40">

























 







[flexcoders] Re: strange problem with remote object

2009-03-22 Thread johndoematrix
i tried to change my code after reading through some coldfusion flex tutorials 
but i get the same error msg "Unable to invoke CFC - The UNAME parameter to the 
userData function is required but was not passed in.". here is my new code

"cfc function"






  SELECT *
  FROM profile
where username like '%#arguments.uname#%' 
and Password like '%#arguments.pswd#%'
  

   

"mxml page"


http://www.adobe.com/2006/mxml"; width="100%" height="100%" 
backgroundColor="#40">


































RE: [flexcoders] Flex 2.0.1 constraint based layout

2009-03-22 Thread Tracy Spratt
Try setting the width of both the HBox and the Application to 100%

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Annette Spooner
Sent: Monday, March 23, 2009 12:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0.1 constraint based layout

 

Hi,

I am trying to use constraint based layout to have a datagrid adjust in size
as the browser window is resized. I have put together a simplified example
below, but it is not working. When the application is first displayed, the
datagrid does not stretch to fill the width or height of the window. When I
resize the window to be smaller then the datagrid, the datagrid simply
disappears off the edge. Can you tell me what I am doing wrong please?

Thanks,

Annette

 





http://www.adobe.com/2006/mxml"; 

layout="absolute" 

horizontalAlign="left"

horizontalScrollPolicy="off" 

creationComplete="initApp();">









 



 



 


 


 


 


 


 










 

 

package ascomponents

{

public class City

{

public var name: String;

public var state: String;

public var postcode:String;

public var country:String;



public function
City(n:String, s:String, p:String, c:String)

{

name = n;

state = s;

postcode =
p;

country = c;

}

}

}





Re: [flexcoders] Flex 2.0.1 constraint based layout

2009-03-22 Thread Guy Morton
Why is it inside a HBox container? Take it out of the HBox container  
and see if that helps.


On 23/03/2009, at 3:45 PM, Annette Spooner wrote:



Hi,

I am trying to use constraint based layout to have a datagrid adjust  
in size as the browser window is resized. I have put together a  
simplified example below, but it is not working. When the  
application is first displayed, the datagrid does not stretch to  
fill the width or height of the window. When I resize the window to  
be smaller then the datagrid, the datagrid simply disappears off the  
edge. Can you tell me what I am doing wrong please?


Thanks,

Annette







http://www.adobe.com/2006/mxml";

layout="absolute"

horizontalAlign="left"

horizontalScrollPolicy="off"

creationComplete="initApp();">













dataProvider="{citiesView1}" editable="true" rowCount="5"  
width="100%" height="100%" left="0" right="0" top="0" bottom="0">




 
editable="false"/>


 
editable="true"  />


 
editable="true"/>


 
editable="false"/>


 
editable="true"  />


 
editable="true"/>














package ascomponents

{

public class City

{

public var name:  
String;


public var state:  
String;


public var  
postcode:String;


public var  
country:String;




public function  
City(n:String, s:String, p:String, c:String)


{

name  
= n;


 
state = s;


 
postcode = p;


 
country = c;


}

}

}







[flexcoders] Flex 2.0.1 constraint based layout

2009-03-22 Thread Annette Spooner
Hi,

I am trying to use constraint based layout to have a datagrid adjust in size
as the browser window is resized. I have put together a simplified example
below, but it is not working. When the application is first displayed, the
datagrid does not stretch to fill the width or height of the window. When I
resize the window to be smaller then the datagrid, the datagrid simply
disappears off the edge. Can you tell me what I am doing wrong please?

Thanks,

Annette

 





http://www.adobe.com/2006/mxml"; 

layout="absolute" 

horizontalAlign="left"

horizontalScrollPolicy="off" 

creationComplete="initApp();">









 



 



 


 


 


 


 


 










 

 

package ascomponents

{

public class City

{

public var name: String;

public var state: String;

public var postcode:String;

public var country:String;



public function
City(n:String, s:String, p:String, c:String)

{

name = n;

state = s;

postcode =
p;

country = c;

}

}

}



Re: [flexcoders] How to separate Flex code and server code in different servevr?

2009-03-22 Thread Brendan Meutzner
Do you have the crossdomain.xml file setup correctly on the 192.168.0.188
box to receive calls from whatever host you're loading the app from?

Brendan



On Sun, Mar 22, 2009 at 11:20 PM, markflex2007 wrote:

>   Hi,
>
> I test Flex code and php server code in same server and it works fine.I use
> the following line code.
>
> private var amf:RemoteObject = new RemoteObject();
>
> amf.source = "something.something";
> amf.destination ="something";
> amf.endpoint = "http://localhost/amfphp/amfphp/gateway.php";;
>
> I use same Flex code and different endpoint after I move the same php code
> to other server.
>
> private var amf:RemoteObject = new RemoteObject();
>
> amf.source = "something.something";
> amf.destination ="something";
> amf.endpoint = "http://192.168.0.188/amfphp/amfphp/gateway.php";;
>
> I get the error:
>
> RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend"
> faultDetail="Channel.Security.Error error Error #2048: Security sandbox
> violation: http://localhost/AMFTest2/bin-debug/AMFconnect.swf cannot load
> data from http://127.0.0.1/amfphp/amfphp/gateway.php. url: '
> http://192.168.0.188/amfphp/amfphp/gateway.php'"]
>
> which config file I have to change to make it work.
> Thanks for your help.
>
> Mark
>
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


[flexcoders] How to separate Flex code and server code in different servevr?

2009-03-22 Thread markflex2007
Hi,

I test Flex code and php server code in same server and it works fine.I use the 
following line code.

private var amf:RemoteObject = new RemoteObject();

amf.source = "something.something";
amf.destination ="something";
amf.endpoint = "http://localhost/amfphp/amfphp/gateway.php";;

I use same Flex code and different endpoint after I move the same php code to 
other server.

private var amf:RemoteObject = new RemoteObject();

amf.source = "something.something";
amf.destination ="something";
amf.endpoint = "http://192.168.0.188/amfphp/amfphp/gateway.php";;

I get the error:

RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Security.Error error Error #2048: Security sandbox 
violation: http://localhost/AMFTest2/bin-debug/AMFconnect.swf cannot load data 
from http://127.0.0.1/amfphp/amfphp/gateway.php. url: 
'http://192.168.0.188/amfphp/amfphp/gateway.php'"]

which config file I have to change to make it work.
Thanks for your help.


Mark
 



Re: [flexcoders] A ModuleLoader issue

2009-03-22 Thread Wesley Acheson
On Wed, Mar 18, 2009 at 12:36 PM, grg_blls  wrote:

> Hi all,
>
> Finally that client is logged out when finished.
>
> Now if he does a new login as a customer, "module1" loads and offers again
> the customers options, but if he tries the same option (which leads to
> loading "module1a"), an error is thrown.


I imagine you could implement logout differently?  I would look at
refreshing the page or navigating to a page saying you've successfully
logged out.  This could either be html or a flex page. I know its a hack for
the shared code but at least the flex session should be destroyed as the
application would be reloaded?

Its just an idea.

Wes


[flexcoders] LineSeries and fillFunction

2009-03-22 Thread ukguy2k000
Hi,

Recently I've written a custom fillFunction which I'm struggling with. Here's 
the source code:

 private function myFillFunction(element:ChartItem, 
index:Number):IFill
 {
var c:SolidColor = new SolidColor(0x00CC00);
if(index == buyIndex)
{
return c;
}  
else if(index == sellIndex || !operationIntentionBuy)
{
c.color = 0xFF;
}
return c;
}   


The buyIndex, sellIndex and operationIntentionBuy are flags which are updated 
as the users selects different chart items. The idea is to select to chart 
items (a buy item and a sell item on the chart). However, the logic doesn't 
work as I've expected. In particular, it seems that my fillFunction is only 
called initially and then the values are cached. 
Initially I thought that the function would be called every time you mouse over 
a chart item, but perhaps for performance issues, the values of the 
fillFunction are cached.
Presumably it's called only when the dataProvider is refreshed?

So my questions are:
1. When does fillFunction get actually called? Is my guess above correct?
2. How can I force my fillFunction to be called? refreshing the dataProvider?
3. Is there a better way of doing this?

Many thanks



Re: [flexcoders] Java beans to AS class with ANT integration

2009-03-22 Thread Wesley Acheson
Is it difficult to move to graniteds if blazeDS is already utilised?  I'd
really like to generate my remote objects (both ways) if this is possible
then I'd like to switch but we are currently nearing the end of our
development cycle and I can't afford to change technology if it mean
rewriting substancal parts of our application.

On Sun, Mar 22, 2009 at 6:51 PM, Pedro Sena  wrote:

>  http://www.graniteds.org/
>
> Regards
>
> On Sun, Mar 22, 2009 at 5:26 AM, Ivan Bojer  wrote:
>
>>   Is anyone using any Java bean to action script class converter,
>> preferably with ANT integration? There are few out there but they are
>> either not being maintained or do not have ANT integration.
>>
>
>
>
> --
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>
>
> 
>


[flexcoders] Re: rollover is blinking

2009-03-22 Thread carloscarvalhar
ok, i got it.
i had to check in rollOut if the mouse is over the hitare of the components.
i'm posting here as reference if someone else needs this.

public function toogleVisiOut():void{
 if (! (container.hitTestPoint(stage.mouseX, stage.mouseY, true) || 
myComponent.hitTestPoint(stage.mouseX, stage.mouseY, true))) {
myComponent.visible =false;

 }
}



Re: [flexcoders] MySQL and Flex

2009-03-22 Thread Fidel Viegas
On Sun, Mar 22, 2009 at 10:14 AM, christophe_jacquelin
 wrote:
> Hello,
>
> How to use mySQL with Flex ?
>

Have a look at aSQL (http://asql.mooska.pl/). I think it is still
experimental. I have tried it once, and I was able to communicate with
mysql from both AIR and the Browser.

Good luck!

Fidel.


[flexcoders] Re: Using ItemRenderer with IHierarchicalData DataProvider

2009-03-22 Thread yossi.baram
Hi,
My problem is simple,
In my TreeTable The ItemRenderer show me only one level.
When I click the parent it will show only the level beneath it,
although it has childrens, WHY??? 
When I use depth, I can see the tree but it doesnt activate the ItemRenderer.
How can I set the Itemrenderer to manipulate and show ALL branches?

Please advice guys, I have been looking every where but couldnt find a solution.

Thanks in advance



--- In flexcoders@yahoogroups.com, "yossi.baram"  wrote:
>
> Hi,
> There is a greate example in the following link that allows us to create 
> simple hirarchical grid with AdvancedDataGrid, implementing IHierarchicalData.
> 
> http://inovativeflexdevolopment.blogspot.com/2008/07/flex3-dynamic-population-of-data-in.html
> 
> I couldnt find a way to include ItemRenderer using this kind of dataProvider,
> I tried everything but all I get when using a simple ItemRenderer is a flat 
> tree with no hirarchy :(
> 
> Please please advice
> 
> Thanks
> 
> Jo
>




RE: [flexcoders] Re: rollover is blinking

2009-03-22 Thread Tracy Spratt
"Through debug i can't notice what is happening".  Debug will tell you if
you look hard enough.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of carloscarvalhar
Sent: Sunday, March 22, 2009 8:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: rollover is blinking

 

Hi,

Even using rollOver/rollOut the problems still exist.
Trough debug i can't notice what is happening.
i think the problem is happening because the first rollover set visible a
component with other rollover function and when this rollover occurs the
other may be set as rollOut.

I'm not sure what is happening..i'm thinking in changing this, make without
rollOver :(

thanks,
Carlos

--- In flexcod...@yahoogro  ups.com,
"Tracy Spratt"  wrote:
>
> First, don't use mouseOver, use rollOver and rollOut. The mouse events are
> lower level and are harder to deal with.
> 
> 
> 
> Put trace statements in your handlers or step through in the debugger so
you
> can see what is happening.
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of carloscarvalhar
> Sent: Saturday, March 21, 2009 1:49 PM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Re: rollover is blinking
> 
> 
> 
> Hi,
> 
> I tried what you said, but didn't worked, it's blinking yet.
> 
> Here's my code:
> 
> public function toogleVisiOver():void{
> if(! mycanvas.visible){
> mycanvas.visible =true;
> }
> }
> 
> public function toogleVisiOut():void{
> if(mycanvas.visible){
> mycanvas.visible =false;
> }
> 
> }
> 
> called in:
> 
> 
> Any suggestion?
> 
> thanks,
> Carlos
>





Re: [flexcoders] MySQL and Flex

2009-03-22 Thread Brendan Meutzner
Wesley is correct, you'll need a middle tier technology to facilitate the
communication between Flex and a backend database (ie. ColdFusion, Java,
PHP, etc...).  You would use RemoteObject, HTTPService, WebService classes
to hook up from Flex to whichever middle tier option you use.  Then you'd
use whatever ODBC, etc... options you have within the middle tier to talk to
the database.

Brendan



2009/3/22 Wesley Acheson 

>   I could be wrong but as far as I know you need a server technology to
> talk to the database.  You then need to communicate with your server
> technology.
>
> Is this for an Air app or one to be deployed to a browser?
>
> On Sun, Mar 22, 2009 at 10:14 AM, christophe_jacquelin <
> christophe_jacque...@yahoo.fr> wrote:
>
>> Hello,
>>
>> How to use mySQL with Flex ?
>>
>> Thank you,
>> Christophe
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


[flexcoders] Re: rollover is blinking

2009-03-22 Thread carloscarvalhar
Hi,

Even using rollOver/rollOut the problems still exist.
Trough debug i can't notice what is happening.
i think the problem is happening because the first rollover set visible a 
component with other rollover function and when this rollover occurs the other 
may be set as rollOut.

I'm not sure what is happening..i'm thinking in changing this, make without 
rollOver :(

thanks,
Carlos

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> First, don't use mouseOver, use rollOver and rollOut. The mouse events are
> lower level and are harder to deal with.
> 
>  
> 
> Put trace statements in your handlers or step through in the debugger so you
> can see what is happening.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of carloscarvalhar
> Sent: Saturday, March 21, 2009 1:49 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: rollover is blinking
> 
>  
> 
> Hi,
> 
> I tried what you said, but didn't worked, it's blinking yet.
> 
> Here's my code:
> 
> public function toogleVisiOver():void{
> if(! mycanvas.visible){
> mycanvas.visible =true;
> }
> }
> 
> public function toogleVisiOut():void{
> if(mycanvas.visible){
> mycanvas.visible =false;
> }
> 
> }
> 
> called in:
> 
> 
> Any suggestion?
> 
> thanks,
> Carlos
>




Re: [flexcoders] Java beans to AS class with ANT integration

2009-03-22 Thread Pedro Sena
http://www.graniteds.org/

Regards

On Sun, Mar 22, 2009 at 5:26 AM, Ivan Bojer  wrote:

>   Is anyone using any Java bean to action script class converter,
> preferably with ANT integration? There are few out there but they are
> either not being maintained or do not have ANT integration.
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] MySQL and Flex

2009-03-22 Thread Wesley Acheson
I could be wrong but as far as I know you need a server technology to talk
to the database.  You then need to communicate with your server technology.

Is this for an Air app or one to be deployed to a browser?

On Sun, Mar 22, 2009 at 10:14 AM, christophe_jacquelin <
christophe_jacque...@yahoo.fr> wrote:

> Hello,
>
> How to use mySQL with Flex ?
>
> Thank you,
> Christophe
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Java beans to AS class with ANT integration

2009-03-22 Thread Ivan Bojer
Is anyone using any  Java bean to action script class converter,
preferably with ANT integration? There are few out there but they are
either not being maintained or do not have ANT integration.


RE: [flexcoders] Architecting for extensibility

2009-03-22 Thread Tracy Spratt
First, the classes do not need to be "loaded".  They only need to be linked
in by the compiler.  A variable declaration typed as that object will
suffice

 

Have you looked at Modules?  This is one of the issues they were designed
for.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jimmy5804
Sent: Sunday, March 22, 2009 3:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Architecting for extensibility

 

I'm looking for some architecture advise.

My AIR application has the ability to render certain kinds of data, each of
which has a unique string descriptor (e.g. "red"). I would like to make it
easy for others to add renderers for other kinds of data. To accomplish
this, I created a renderer directory (Object) where the data descriptor is a
key to the class path for the renderer and I planned to make extensive use
of dynamic instantiation - when I ran into "red" data, I could just look up
the "red" renderer, instantiate it, etc. My thinking was that the new
developer would just need to create a renderer that implemented the requiste
interface, create an entry in the directory, and would need very minimal
understanding of the rest of the architecture to get their data to render.
But I ran into the problem described here:
http://thillerson.

wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/  
If you don't want to read it all, basically you need to make sure the
referenced class has been loaded into your swf before you try to reference
it (at least, that's my understanding). So, in my directory, I created
something that creates and then destroys (for memory conservation) an
instance of each renderer, and now my directory looks something like this: 

public class RendererDirectory {

private var dir:Object { red:"com.blah.renderers.MyRenderer",
blue:"com.joedata.renderers.BlueRenderer", ...};

// to make sure everything is in .swf
private static function kluge():void {

var a:Array = [new MyRenderer(), new BlueRenderer(), ...];
a = null;

}

public function getRenderer(datakey:String):IMyInterface {

// all error checking omitted for brevity
var classPath:String = dir[datakey];
var classRef:Class = getDefinitionByName(classPath) as Class;
return new classRef();

}

} 

I'm looking for advise on whether there is a better way to accomplish my big
picture goal (ease of extensibility) or improve on my current scheme in some
way.

TIA!





[flexcoders] Using ItemRenderer with IHierarchicalData DataProvider

2009-03-22 Thread yossi.baram
Hi,
There is a greate example in the following link that allows us to create simple 
hirarchical grid with AdvancedDataGrid, implementing IHierarchicalData.

http://inovativeflexdevolopment.blogspot.com/2008/07/flex3-dynamic-population-of-data-in.html

I couldnt find a way to include ItemRenderer using this kind of dataProvider,
I tried everything but all I get when using a simple ItemRenderer is a flat 
tree with no hirarchy :(

Please please advice

Thanks

Jo 



Re: [flexcoders] Cancelling drag

2009-03-22 Thread Josh McDonald
I'm trying to figure out a nice way to do this, too. Anybody beat us to it?
I'll owe you a beer :)

-Josh

2009/3/21 Julien Phalip 

>   Hi,
>
> I'm using DragManager to drag some objects on the interface. And I'd like
> the dragging to be cancelled when the ESCAPE key is pressed. But I can't
> find a way to do it since DragManager doesn't seem to have a method for
> that.
>
> Here's what my code looks like:
>
> private function keyHandler(event:KeyboardEvent):void {
> if (DragManager.isDragging && event.keyCode == Keyboard.ESCAPE){
> // TODO: Cancel drag here...
> stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
> }
> }
>
> public function startDrag(event:MouseEvent):void {
> ...
> DragManager.doDrag(dragInitiator, dragSource, event, image);
> stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
> }
>
> Do you know how I could achieve this?
>
> Thanks a lot,
>
> Julien
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] MySQL and Flex

2009-03-22 Thread christophe_jacquelin
Hello,

How to use mySQL with Flex ?

Thank you,
Christophe



[flexcoders] Architecting for extensibility

2009-03-22 Thread jimmy5804
I'm looking for some architecture advise.

My AIR application has the ability to render certain kinds of data, each
of which has a unique string descriptor (e.g. "red"). I would like to
make it easy for others to add renderers for other kinds of data. To
accomplish this, I created a renderer directory (Object) where the data
descriptor is a key to the class path for the renderer and I planned to
make extensive use of dynamic instantiation - when I ran into "red"
data, I could just look up the "red" renderer, instantiate it, etc. My
thinking was that the new developer would just need to create a renderer
that implemented the requiste interface, create an entry in the
directory, and would need very minimal understanding of the rest of the
architecture to get their data to render. But I ran into the problem
described here:
http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-i\
n-actionscript-30/ 

If you don't want to read it all, basically you need to make sure the
referenced class has been loaded into your swf before you try to
reference it (at least, that's my understanding). So, in my directory, I
created something that creates and then destroys (for memory
conservation) an instance of each renderer, and now my directory looks
something like this:

public class RendererDirectory {
private var dir:Object { red:"com.blah.renderers.MyRenderer",
blue:"com.joedata.renderers.BlueRenderer", ...};
// to make sure everything is in .swf
private static function kluge():void {
var a:Array = [new MyRenderer(), new BlueRenderer(), ...];
a = null;
}
public function getRenderer(datakey:String):IMyInterface {
// all error checking omitted for brevity
var classPath:String = dir[datakey];
var classRef:Class = getDefinitionByName(classPath) as Class;
return new classRef();
}
}

I'm looking for advise on whether there is a better way to accomplish my
big picture goal (ease of extensibility) or improve on my current scheme
in some way.

TIA!