Flex接收外部参数

flash端
<mx:Script>
		<![CDATA[
			// 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 = Application.application.parameters.myName;
			myHometown = Application.application.parameters.myHometown;
			}
		]]>
	</mx:Script>

 

html页面

var flashvars = {myName:'julabs',myHometown:'coco'};

 

你可能感兴趣的:(html,Flex,Flash)