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 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is it possible to include a .as file in
actionscript within a function?


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 the main file or app???

Thanks.

-David






--
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





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: [flexcoders] Is it possible to include a .as file in 
actionscript within a function?


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: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
Behalf Of sailorsea21
Sent: Tuesday, April 07, 2009 12:58 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Is it possible to include a .as file in
actionscript within a function?

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 the main file or app???

Thanks.

-David

 - - --

--
Flexcoders Mailing List
FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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





  

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 = new MyClass();
 
addChild(myObj) ;
-Original Message-
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Tuesday, April 07, 2009 1:49 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Is it possible to include a .as file in 
actionscript within a function?


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.battershall@ dowjones. com
To: flexcod...@yahoogro ups.com
Sent: Tuesday, April 7, 2009 1:24:50 PM
Subject: RE: [flexcoders] Is it possible to include a .as file in 
actionscript within a function?


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: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
Behalf Of sailorsea21
Sent: Tuesday, April 07, 2009 12:58 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Is it possible to include a .as file in
actionscript within a function?

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 the main file or app???

Thanks.

-David

 - - --

--
Flexcoders Mailing List
FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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






  

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: [flexcoders] Is it possible to include a .as file
in actionscript within a function?


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: [flexcoders] Is it possible to include a .as file
in actionscript within a function?



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: flexcod...@yahoogro ups.com
mailto:flexcoders%40yahoogroups.com  [mailto:flexcod...@yahoogro
ups.com mailto:flexcoders%40yahoogroups.com ] On
Behalf Of sailorsea21
Sent: Tuesday, April 07, 2009 12:58 PM
To: flexcod...@yahoogro ups.com
mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Is it possible to include a .as file in
actionscript within a function?

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 http://axis.as/ ;
}

Above, the include file will only apply to the function. How can
I
include a file to the main file or app???

Thanks.

-David

 - - --

--
Flexcoders Mailing List
FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
sFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Alternative FAQ location:
https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
e469-446f- b4cf-
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf
- 
1e62079f6847
Search Archives:
http://www.mail- archive.com/ flexcoders% 40yahoogroups.
comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
! Groups
Links