I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class
file, and then either instantiate it in a tag, or make the class methods
static, import it and then use the static methods.

I have a simple example in 1.5 if you want to see it.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sascha Balkau
Sent: Friday, April 21, 2006 12:26 AM
To: [email protected]
Subject: [flexcoders] New to Flex, couple of questions

Hi list,

I'm familiar with ActionScript 2.0 but new to Flex and just started
learning
Flex 2.0 and AS3.0. I'm amazed how easy and flexible components can be
used
with Flex but I got a few questions about it...

So far I have only seen MXML code with embedded ActionScript. But I
prefer
to write the ActionScript in a class structure. Is it possible to keep
both
ActionScript Classes and MXML code in their own files and somehow link
these? If so, how do I do that?

I'd like use an Ant build file to compile the Flex apps but I'm not very
familiar with the compiler syntax yet. Does somebody know of any
examples on
the web on how to use the compiler in a command line or an example Ant
build
file for it?

Thanks for any help!
Sascha




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to