Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2008, 07:58 AM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default My Script is not working in SWFKitPro...

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");
}
its suppose to send a username "myname" and password "mypass" variables...


heelppp :-\
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 10:44 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: My Script is not working in SWFKitPro...

The site is not allowed? Have you tried the "Security.allowDomains" method?
Reply With Quote
  #3 (permalink)  
Old 03-14-2008, 03:15 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Re: My Script is not working in SWFKitPro...

Quote:
Originally Posted by SWFKIT
The site is not allowed? Have you tried the "Security.allowDomains" method?

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?
Reply With Quote
  #4 (permalink)  
Old 03-14-2008, 06:08 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Re: My Script is not working in SWFKitPro...


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?




Reply With Quote
  #5 (permalink)  
Old 03-17-2008, 10:19 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: My Script is not working in SWFKitPro...

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.