Topic: loadVars problem (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() I can display stuff from my database by creating a new loadVars object and then using load(), but when I try to send some variables to my PHP script like this: code: on (release) {
|
Bipolar (III) Inmate From: Brisbane |
![]() AFAIK, you need to run this from a browser running on the server for it to work correctly. Running this from the flash environment preview causes all sorts of issues with database stuff, probably because the PHP page thinks the request is comming from an external source and thus won't accept any POST data due to security issues. |
Maniac (V) Inmate From: Boston, MA, USA |
![]() 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) {
code: catchData.onLoad = function() {
|
Maniac (V) Inmate From: Boston, MA, USA |
![]() Rereading your post, I guess the problem is different from what I thought at first. You aren't trying to get something back are you, just populating a database. |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() Cameron: |
Maniac (V) Inmate From: Boston, MA, USA |
![]() "I'll give the trace() a try, thanks." |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() LOL..... You mean I can't use Flashes built-in trace() function? I feel a bit foolish now, thanks for setting me straight. |
Maniac (V) Inmate From: Boston, MA, USA |
![]() So......???? |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() Adding the onLoad didn't do the trick and I haven't had time to try GET yet. So many projects, so little time...... |
Bipolar (III) Inmate From: Raleigh, NC |
![]() You can make some hidden forms on your php page that is holding your flash movie. code: myButtonName.click();
|