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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.write didnt work

Status
Not open for further replies.

jem77

Programmer
Nov 11, 2004
1
TR

i send the data with using "response.write" command from asp to flash movie like this ;
Response.Write "yuklendi=ok"

and i tried to make some action in flash movie with this data( ok ) with these codes;

loadVariables ("ZiyaretciDefteri.asp", this, "POST");

if(yuklendi == "ok") {
gotoAndStop (4);
}

but it didn't work. i put the dynamic text into flash movie to show data which send from asp (ok). it show response (ok), but flash dont make any action.
thanks
 
try this
response.write "&yuklendi=" & server.urlencode("ok")
;)
 
The most common problem in cases like these is that you're trying to access the variable before it's had time to load - remember that there's a round trip to the server to consider before the value arrives back at your Flash movie and if you're trying to use the variable in the next line of actionScript it won't be there yet. You can either build in a delay allowing time for this load to happen or use loadVars() instead of loadVariables which has an onLoad() function which waits for the server response and then executes the code when the data comes in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top