[flexcoders] Is it possible to include a .as file in actionscript within a function?

2009-04-07 Thread sailorsea21
Hi everyone, is it possible to include an .as file in actionscript within a function but not have the included .as be restricted within the function? private function loaded():void { include axis.as; } Above, the include file will only apply to the function. How can I include a file to

RE: [flexcoders] Is it possible to include a .as file in actionscript within a function?

2009-04-07 Thread Battershall, Jeff
What problem are you trying to solve by taking this approach? Code re-use? Wny not write a class you can instantiate wherever you want? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sailorsea21 Sent: Tuesday, April 07, 2009

Re: [flexcoders] Is it possible to include a .as file in actionscript within a function?

2009-04-07 Thread - -
If my class creates a graph with a dropdown menu, how can I add it as a child to a component on my MXML module? From: Battershall, Jeff jeff.battersh...@dowjones.com To: flexcoders@yahoogroups.com Sent: Tuesday, April 7, 2009 1:24:50 PM Subject: RE:

Re: [flexcoders] Is it possible to include a .as file in actionscript within a function?

2009-04-07 Thread - -
Thanks Jeff!   From: Battershall, Jeff jeff.battersh...@dowjones.com To: flexcoders@yahoogroups.com Sent: Tuesday, April 7, 2009 2:24:27 PM Subject: RE: [flexcoders] Is it possible to include a .as file in actionscript within a function? var myObj:MyClass =

RE: [flexcoders] Is it possible to include a .as file in actionscript within a function?

2009-04-07 Thread Battershall, Jeff
var myObj:MyClass = new MyClass(); addChild(myObj); -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of - - Sent: Tuesday, April 07, 2009 1:49 PM To: flexcoders@yahoogroups.com Subject: Re: