Mega Code Archive
Defines myName and myHometown variables and binds them to the text of Label controls in the initVars() method
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;
}