1  /*
     2   * Copyright the original author or authors.
     3   * 
     4   * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   * 
     8   *      http://www.mozilla.org/MPL/MPL-1.1.html
     9   * 
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  import main.Flash;
    18  import main.Configuration;
    19  
    20  /**
    21   * Default access point for a application in Flash.
    22   * <p>Use this class for starting up your application with the Macromedia Flash compiler.
    23   * It will start your flash configuration in {@link main.Flash} and your configuration for all 
    24   * environments in {@link main.Configuration}.
    25   * 
    26   * <p>You have simply to add following code in the first frame action:
    27   * <code>
    28   *   org.as2lib.app.conf.FlashApplication.init();
    29   * </code>
    30   * 
    31   * @author Martin Heidegger
    32   * @version 1.0
    33   */
    34  class org.as2lib.app.conf.FlashApplication {
    35  	
    36  	/**
    37  	 * Executes the configuration for the flash environment in {@link main.Flash} and the 
    38  	 * configuration for all environments in {@link main.Configuration}. These are the
    39  	 * {@link Flash#init} and {@link Configuration#init} methods.
    40  	 * 
    41  	 * <p>This method takes any amount of arguments and forwards them to both methods
    42  	 * {@code main.Flash.init} and {@code main.Configuration.init}.
    43  	 * 
    44  	 * @param .. any amount of arguments of any type
    45  	 */
    46  	public static function init():Void {
    47  		Flash.init.apply(Flash, arguments);
    48  		Configuration.init.apply(Configuration, arguments);
    49  	}
    50  	
    51  }