Gah! This is nail-biting stuff. I thought I was going to make this easy switch from the Flash IDE to mxml but the feeling has been growing on me for the past few days, and what you say just confirms it, that rather than being only a tool for laying out visual assets, mxml is actually an entirely new programming construct that I can lean on.
My eval of Flex2 is kinda premature because we can't start porting from Flash to Flex until the beta comes out at least, so within a week or two I'll have to move back onto Flash for a few months, but I can see that I'm going to be spending a lot of early mornings coming to grips with this new powerful environment :-)
<baffled at smiling about early mornings/>
Jules
On 11/4/05, Roger Gonzalez <[EMAIL PROTECTED]> wrote:
Yeah, that's mostly what I mean. I think the important bit is to keep
peers from knowing about each other.
For example, imagine an app something like this:
<Application>
<Scoreboard id="s" />
<Player id="p1" scoreboard="{s}" />
<Player id="p2" scoreboard="{s}" />
<Game id="g" players="{[p1, p2]}" scoreboard="{s}" />
</Application>
It might be easy to add a third player, because its parameterized. Or
maybe you have an IPlayer interface, and you write a different
implementation that talks to a multiplayer server. Think about how much
more of a pain it would be if deep inside Game something was calling
mx.core.Applicaiton.application.p1.getName() or something.
Its possible to do a lot of handing out references in a totally
declarative manner like this, but sometimes you might need to have a
creationComplete or initialize handler to call methods to pass around
handles (i.e. g.addPlayer( p1 ) or something).
-rg
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

