OZONE Asylum
Forums
Multimedia/Animation
loadVars problem
This page's ID:
21495
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I don't think you can specify "this" (meaning _root) as the target parameter. I think you need to declare a loadVars object to catch the return. [code] on (release) { sendData=new loadVars(); catchData = new loadVars(); sendData.message="hello there"; sendData.sendAndLoad("http://127.0.0.1/flash/create.php",catchData,"POST"); } [/code] I don't know how you have structured the variable coming back, but you would extract it as an element in the catchData object's array. Let's say it is also "message". You might define a callback function: [code]catchData.onLoad = function() { trace(catchData.message); }[/code] Lemme know if this works. I think that's your problem, not some thing in the development environment. Oh - make sure you define the callback before you perform the sendAndLoad() method. Don't want data arriving before Flash knows what to do with it. Though seeing as how this is in response to a mouse click I guess there's not much chance of that happening. :D [small](Edited by [internallink=82]Steve[/internallink] on 04-28-2004 19:09)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »