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.Mtasc; 18 import main.Configuration; 19 20 /** 21 * Default access point for a application with Mtasc. 22 * <p>Use this class for starting up your application with the MTASC compiler found at http://www.mtasc.org. 23 * It will start your MTASC configuration in {@link main.Mtasc} and your configuration for all 24 * environments in {@link main.Configuration}. 25 * 26 * <p>Simply use this class as main startup class in the mtasc preferences. 27 * <code> 28 * [MTASC directory]\mtasc.exe -cp "[your project path]" -cp "[as2lib project path]" org/as2lib/app/conf/MtascApplication.as 29 * </code> 30 * 31 * @author Martin Heidegger 32 * @author Simon Wacker 33 * @version 1.0 34 */ 35 class org.as2lib.app.conf.MtascApplication { 36 37 /** 38 * Executes the configuration for the mtasc environment in {@link main.Mtasc} and the 39 * configuration for all environments in {@link main.Configuration}. These are the 40 * {@link Mtasc#init} and {@link Configuration#init} methods. 41 * 42 * <p>The {@code Mtasc.init} method is passed the {@code container} movie-clip, that 43 * is by default {@code _root} if this class is used as main method for MTASC. 44 * 45 * @param container the root movie-clip that is passed by MTASC to the main method 46 */ 47 public static function main(container:MovieClip):Void { 48 Mtasc.init.apply(Mtasc, arguments); 49 Configuration.init.apply(Configuration, arguments); 50 } 51 52 }