how to pass value from asp.net page to flash by using loadvar or any possible methode.
i don't need flashvar variable. any other possible methods
loadvar variableto load value from asp.net page to flash variable.
Page 1 of 1
4 Replies - 4110 Views - Last Post: 26 November 2008 - 01:52 PM
Replies To: loadvar variable
#3
Re: loadvar variable
Posted 09 July 2007 - 11:50 AM
You can simply use LoadVars() object to do so...
Here is the simplest AS...
Your ASPX code should spit out the data in the manner of variable1=value1&variable2=value2 so that Flash can recognize it...
Here is the simplest AS...
var _lv:LoadVars = new LoadVars();
_lv.onload = function (ok)
{
if (ok)
{
// Data loaded okay... Do something with it...
}
else
{
// Data not loaded... Display error message...
}
}
_lv.load("yourFile.aspx");
Your ASPX code should spit out the data in the manner of variable1=value1&variable2=value2 so that Flash can recognize it...
#4
Re: loadvar variable
Posted 25 November 2008 - 10:54 PM
CyanBlue, on 9 Jul, 2007 - 10:50 AM, said:
You can simply use LoadVars() object to do so...
Here is the simplest AS...
Your ASPX code should spit out the data in the manner of variable1=value1&variable2=value2 so that Flash can recognize it...
Here is the simplest AS...
var _lv:LoadVars = new LoadVars();
_lv.onload = function (ok)
{
if (ok)
{
// Data loaded okay... Do something with it...
}
else
{
// Data not loaded... Display error message...
}
}
_lv.load("yourFile.aspx");
Your ASPX code should spit out the data in the manner of variable1=value1&variable2=value2 so that Flash can recognize it...
#5
Re: loadvar variable
Posted 26 November 2008 - 01:52 PM
Um... Is there a question??? Why quote???
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|