Skip to content

Instantly share code, notes, and snippets.

@gillesv
Created March 29, 2010 11:03
Show Gist options
  • Save gillesv/347740 to your computer and use it in GitHub Desktop.
Save gillesv/347740 to your computer and use it in GitHub Desktop.
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