Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alternative way for LoadVariables

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
Hi guys,

Is there any way that flash can accept values from ASP without using the "querystring style" ? i mean when flash read from a txt file, it has to be in "querystring style". it is the same in this scenario:

<object>

<param file=this.swf?a=1&b=2&c=3>

<object>

is there any other way? if FScommand is the answer, could you elaborate?


i hope u guys can help me.

Thanks in advance.

biggie






 
well, its like this, i want flash to read some variables generated by ASP. i did that easily b4 by making flash read a text file. the variables and values written in the text file is arranged in a querystring manner. However, my employer doesn't want the values to be arranged in a querystring manner. im asking for other means of making flash read variables and thier respective values.


did this clear things up?


i certainly hope so.


biggie
 
the data is still sent to flash via a querystring. Im beginning to think there is no other way, unless someone wants to prove otherwise. Any thanks for trying guys.
I think i'll wait for more suggestions.


biggie.
 
Flash can easily read a list of variables from any text file as long as they're seperated by an & that defines the beginning of a new variable.

Although I've never tried it, you can apparently pass a variable in the object & embed tags also. Don't know how to pass several of them (if at all possible!) but this apparently works:

<param name=movie value=&quot;your.swf?yourVar=home&quot;>
...and
<embed src=&quot;your.swf?yourVar=home&quot;...>

Regards,
new.gif
 
old,

acutally my problem is like this. one of our programmers who is heading this project wants to put the variables within a hidden form in the html page where the <object> tag for flash is also declared. He wants me to make flash read those variables in the html form. I told him that the only way to make flash read those variables is to put it in a querystring in txt or asp file, but he would not concede.

by the way, i tried passing variables like this b4:

<param name=movie value=&quot;your.swf?yourVar=home&quot;>
...and
<embed src=&quot;your.swf?yourVar=home&quot;...>


and it works fine.

Im thinking that will be our compromise here too.


thanks for the input guys, Now i got to quarrel with that programmer. As some ppl would say sheeeeeeesh!


thanks again!


biggi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top