xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="initVars()">
import mx.core.FlexGlobals;
/* Declare bindable properties in Application scope. */
[Bindable]
public var myName:String;
[Bindable]
public var myHometown:String;
/* Assign values to new properties. */
private function initVars():void {
myName = FlexGlobals.topLevelApplication.parameters.myName;
myHometown = FlexGlobals.topLevelApplication.parameters.myHometown;
}