[flexcoders] Share Code for Flex and Air projects

2007-10-22 Thread Dennis van Nooij
Hi,

Our project here has to run on both the web and in Air and I'm looking
for a solution how to structure my project. Lots of articles about how
to convert a Flex project to Air, but it's all no way back. I found
this link
http://www.simplifiedchaos.com/2007/08/09/how-to-compile-both-flex-and-air-application-from-the-same-codebase/
buth as the author says it has some issues (next to the listed ones
you can't use mxml for the parent views). Is there anyone who uses a
different approach ?

thanx,
Dennis



RE: [flexcoders] Share Code for Flex and Air projects

2007-10-22 Thread Samuel R. Neff

I'd suggest creating three projects, one for Flex, one for Air, and one
Shared.  Flex and Air project can reference Shared (either as a library or
as a source path).  That will also help prevent accidentally referencing
Flex/Air specific code from something that's supposed to be Shared.

HTH,

Sam 


---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dennis van Nooij
Sent: Monday, October 22, 2007 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Share Code for Flex and Air projects

Hi,

Our project here has to run on both the web and in Air and I'm looking
for a solution how to structure my project. Lots of articles about how
to convert a Flex project to Air, but it's all no way back. I found
this link
http://www.simplifiedchaos.com/2007/08/09/how-to-compile-both-flex-and-air-a
pplication-from-the-same-codebase/
buth as the author says it has some issues (next to the listed ones
you can't use mxml for the parent views). Is there anyone who uses a
different approach ?

thanx,
Dennis



Re: [flexcoders] Share Code for Flex and Air projects

2007-10-22 Thread Jeffry Houser
  Create a Flex Library project (No AIR Libraries) for all 'generic' 
functionality.  Write a Flex project that uses your library and an AIR 
project that uses your library.

Dennis van Nooij wrote:
 
 
 Hi,
 
 Our project here has to run on both the web and in Air and I'm looking
 for a solution how to structure my project. Lots of articles about how
 to convert a Flex project to Air, but it's all no way back. I found
 this link
 http://www.simplifiedchaos.com/2007/08/09/how-to-compile-both-flex-and-air-application-from-the-same-codebase/
  
 http://www.simplifiedchaos.com/2007/08/09/how-to-compile-both-flex-and-air-application-from-the-same-codebase/
 buth as the author says it has some issues (next to the listed ones
 you can't use mxml for the parent views). Is there anyone who uses a
 different approach ?
 
 thanx,
 Dennis
 
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com