Created
March 29, 2010 11:03
-
-
Save gillesv/347740 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import be.proximity.framework.Framework; | |
import be.proximity.framework.config.Config; | |
import be.proximity.framework.net.VarSources; | |
import flash.display.Sprite; | |
/** | |
* By extending from Framework the Config class is automatically set up correctly. | |
*/ | |
public class FlashvarsDemo extends Framework | |
{ | |
public function FlashvarsDemo() | |
{ | |
super(); | |
} | |
override protected function application_complete():void{ | |
// Always check if the flashvar exists | |
if(Config.getInstance().existsByType("someParameter", VarSources.FLASH_VAR)) | |
trace("Flashvar found: " + Config.getInstance().readByType("someParameter", VarSources.FLASH_VAR)); | |
else | |
trace("No flashvars found"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment