alexmbra
October 15th, 2008, 07:50 PM
Does anyone knows how can I click on a button, open a site page using the same browser instance(_blank) and pass some paratemeters to the swf on the new opened page? And how do I get those paramenters with the new page?
Thanks.
shubs6
October 16th, 2008, 01:48 AM
For opening the site page in the same browser do this
var req:URLRequest = new URLRequest("put yr site page path here");
navigateToURL(req, "_blank");
For passing parameters to a swf, use Flashvars in the html in which you are embedding yr swf. Somewhat like
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "myApp",
"quality", "high",
"bgcolor", "#869ca7",
"name", "myApp",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
Now here in this example we are passing MMredirectURL as a parameter. what you got to do in yr code to access it is Application.application.parameters.MMredirectURL . "parameters" returns the passed parameter as an Object.
Hope is solved yr problem :-)
"pluginspage", "http://www.adobe.com/go/getflashplayer"
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.