> I have an ant build file I'll be blogging this week (probably 
> tomorrow).  It uses the compc.jar for the .sws to make the .swc, then 
> extracts library.swf from it and renames it accordingly.  Then it 
> creates the .swf from the .mxml files using mxmlc.jar.  Then it moves 
> everything from my local computer over to the dev. web server.

Yep, that's the correct approach for prebuilding from the command line.

> I *hate* the idea of Flex running on the server, and I think 
> that's why 
> it took me so long to start using it.  In my opinion, there's 
> no reason 
> a .swf needs to be compiled for every request, .swf is not 
> server-side 
> technology, and Flash has always been client side

It doesn't compile on every request, it compiles only when you change
your source.  Nothing says you have to deploy it that way (in fact,
that's why we have the "production mode" switch), but it sure is handy
for rapid development.

For example, in your "prebuild" case, you are skipping all the fancy
server-side smarts that only rebuilds the RSL if the source files that
the RSL depends on changes (and doesn't rebuild the app) or vice versa,
only rebuilds the app but not the RSL.  This might not be a big deal to
you, but when you have thousands of source files, its rather nice.

Sure, you can set all that up through your ant script and make sure you
only rebuild the minimal stuff, but the server-side lets a less
command-line-savvy user just set up the server and hit "refresh" to
rebuild the minimal set.

Flex makes easy stuff easy and hard stuff possible.

> After using Flex this weekend though I realized how much faster I can 
> build applications with it now, and the components are much 
> better than 
> those in Flash.  As a Flash dev, I feel kind of dissed.. but by not 
> having the server running at all, not even locally on 
> localhost, I feel a little bit redeemed.

I'm not sure why you should feel dissed; Flash Authoring and Flex are
targeted at different people, and Flex was specifically built to target
the pain points of developing apps in Flash.

In fact, I'm pretty sure you owe us a beer.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to