Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ro.dose.freedom13.models {
- import com.demonsters.debugger.MonsterDebugger;
- /**
- * ...
- * @author Adrian Dumitrescu (aka Virusescu) @ Dose Digital
- */
- public class Config {
- //public static const DEBUG:Boolean = false;
- public static const DEBUG:Boolean = true;
- public static const GATEWAY:String = "https://freedom13.ileo-dev.ro/services/amf/";
- //public static const GATEWAY:String = "http://localhost/remote/";
- public static var STATUS:String = "precampaign"; // valori posibile: [precampaign, campaign, postcampaign]
- public function Config() {
- }
- public static function setupExternals(params:Object):void {
- if (params.status) {
- var allowedValues:Array = ["precampaign", "campaign", "postcampaign"];
- if (allowedValues.indexOf(params.status) >= 0) {
- Config.STATUS = params.status;
- MonsterDebugger.trace(Config, "Config.STATUS set from flashVars as:" + params.status);
- } else {
- throw new Error("Invalid status param, set in FlashVars. status = '" + params.status + "'");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment