|
|||
|
hi fellas..
i can't seem to post the data to my php after my application file has been changed from .swf to .EXE in SwiftPro.. standalone as a .swf file works fine... this is my flash function: Code:
on (release) {
getURL("http://www.mysite.com/mypage.php", "", "POST");
}
heelppp :-\ |
|
|||
|
Quote:
nope.. i dont knw.. the "mypage.php" is a Login page... my Flash (submit button) is suppose to send the Username and Password vars to this page..and it automatically 'authenticate' the login request. But somehow its not sending the vars (username & passwrd) after I converted into EXE in SWFKit.. i think somehow the vars are being entrenched in the EXE. - thats why the vars are nt sent out?? im nt so sure about the Securty.allowDomains.. as the Login page can still be viewed but the user has to manually key in the Username and Password. - My app is suppose to automate the request.. smthng like this; Flash button (send hidden Username and Password) ---------> Login Page (receive U/n & Pwd) ---------> starts session Any idea why? |
|
|||
|
i found out that there is similiar thread..but not sure if its the same case here.. i saw this code posted by SWFKIT (http://www.topcmm.com/forum/index.ph...icseen#msg7291): Code:
import SWFKit.*;
var username = user.text;
var password = pass.text;
var password_md5 = Encryption.md5(password);
var nc = new NetConnection();
nc.connect("http://myserver.com/verify.php");
nc.call("VerifyPassword", null, username, password_md5);
im noob to SWFKIT.. so can any kind soul tell me how to insert this script? Is it in the "Scripts" tab? |
|
|||
|
Really sorry that it has nothing to do with the "Security.allowDomains" method. The "POST" method works only in the web browser. In an EXE file, you will have to use the "GET" method.
The above code uses methods of "Flash Remoting". The server side must also support Flash Remoting. For example, you can use AMFPHP. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|