Hi,
I’m new to FlashVars usage, and have a simple question but having a hard time finding the answer:**
In HTML:**
<object id=“myId” classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” width=“100%” height=“410”>
<param name=“movie” value=“swf/navbar.swf” />
<param name=“wmode” value=“transparent” />
<param name=“FlashVars” value=“location=home&xmlPath=…/xml/content.xml”>
<!–[if !IE]>–>
<object type=“application/x-shockwave-flash” data=“swf/navbar.swf” width=“100%” height=“410” wmode=“transparent” FlashVars=“location=extras-programs”>
In Actionscript, but currently only calling one value. I need to now retrieve BOTH values separately. How do I rewrite my code below to call each value individually? In other words, the values “location=home” and “xmlPath=…/xml/content.xml”?****:
//FLASHVARS CODE
//
var varName:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (varName in paramObj) {
myFlashVar = String(paramObj[varName]);
}
//INIT VARIABLES
var myFlashVar:String;
var myTextField:TextField;
//TEXTFIELD PROPERTIES
//myTextField = new TextField();
//myTextField.text = myFlashVar;
//myTextField.x = 100;
//myTextField.y = 350;
//addChild(myTextField);
//
function locations_loading():void {
if (myFlashVar == “home”) {
gotoAndStop(“main_frame”);
}
}
locations_loading();
**Thanks!
r**