“I see,” said the blind man…thanks Erik!  This whole technology, even after a few months of working with it, is still something so completely new to what I’m used to and I guess I was having trouble seeing the MXML file as an AS class in and of itself…thanks for the concise yet extremely helpful answer!  I get it now.  J

 

Robert L. Brueckmann

Web Developer

Merlin Securities,LLC

595 Madison Avenue

New York, NY 10022

p: 212.822.4821
f: 212.822.4820


From: Erik Westra [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 9:18 AM
To: [email protected]
Subject: RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

 

What i do is extending the mxml class with an AS class. Then instead of using the mxml i use the AS subclass. If the class is empty, things just work like they did before. But inside the AS class u have the usual callBacks (createChildren, init, etc) and a constructor.

 

Via code u can add listeners to the UI components and manage everything from within the AS class.

 

Greetz Erik

 

 

 


From:Robert Brueckmann [mailto:[EMAIL PROTECTED]
Sent: donderdag 3 maart 200515:14
To: [email protected]
Subject: RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

Can I ask how you manage an MXML without any ActionScript at all?  How in a file that has components with clickor change listeners would you not have any supporting ActionScript code…I mean just about every single one of my MXML files has initialize or creationComplete listeners in the parent container tag with dozens of other components that are dependent on dataproviders changing and user interactions like clicking or dragging and dropping and I can’t begin to imagine how I could extract every bit of ActionScript from my MXML files into individual ActionScript classes…maybe I’m not grasping the Cairgorm design architecture fully…I thought I had a pretty good grasp on it but to hear that you’re writing MXML files with no ActionScript in them whatsoever kind of baffles me…can you give me an example?

Thanks for bearing with me!  ;)



 

This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.

Reply via email to