Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Best Practices

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-13-2008, 03:57 PM   #1
xanthias
Registered User
 
Join Date: Jun 2008
Posts: 1
Question Programming for Air and Web(Flash Player) best practice

Hi,

I currently have a program I am writing that I would like to develop for an standalone Air application and Web application running in a browser off the flash player plugin. Alot of the code is the same, but again some specific code to air and web.

What I was wondering, is it better to develop 2 separate projects keeping the common code synced? or should I write it with both air and web app code in the file? Also is there a way to do write both air and web app code in one flash cs3 file without something giving me errors?

I apologize if this isn't the correct place but it was both a best practices and a how to question.
xanthias is offline   Reply With Quote
Old 07-01-2008, 05:07 AM   #2
painteroflight
Registered User
 
Join Date: Jul 2007
Posts: 25
Default

The standard practice with porting an application to a different environment is to first build the application in whichever environment you will have the largest user base. Once the application is built for the first environment, you can then port it to others.

This is really the only clean and efficient way to do it. If you start running multiple projects at the same time and try to "sync" code you are going to make more work for yourself than is worth it. As to your second point, mixing environment code is never recommended as it unnecessarily muddles your code and can as you stated above cause superfluous compile time errors.

Just my two cents though.
painteroflight is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.