flash - Default variables with multiple developers -


This may be a weird question, but I (maybe using namespace?) Is different if there is any way Thinking efficiently I ask the default variable in a class of a developer in the ActionScript project because we are currently working on a series of flash games: 24 in total Each shell is loaded by a container. Shell gets a flash game for which the game is loading. In our development environment (Flash / FlashDek velop), there are no flashwares, so defines a constant in AS that when there is no flash, what game loads to load:

  / ** game is not set through the Ultimate Flashwork * / Public Stable Command DEFAULT_GAME: string = "playname";  

Therefore each developer changes the game on which they are working. However, to make changes in the repository (SVN), the developer has to change it back or the change will have to be reversed, and each god will have to change it in his game when another will replace it.

In a way to specify the default parameters like flash IDE or flashvars in a user-specific file so that the code can remain viral with hacky debug. I know that in Flex you can set the FlashVars in the html template, and after each developer folder and the SVN may publish its own: ignore that. Perhaps only a developer creates a non-commended XML file that defines its user parameter? I donno, any thoughts?

After the

You can use conditional compilation inside the Flash IDE.

Here is an example of code:

  package {Import Flash.display.Sprite; Public Class Main Sprite Provides {CONFIG :: USER_A Personal Stable Control PATH: string = "user_a_path"; Config :: USER_B Private Stable Constant Path: string = "user_b_path"; Public function chief () {trace ("current path"; PATH); }}}  

Then add 2 constants within the Flash IDE compilation option:

  CONFIG :: USER_A CONFIG :: USER_B  

and

and


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -