all groups > macromedia flash flashcom > september 2005 >
You're in the

macromedia flash flashcom

group:

sendAndLoad PHP from a SWF in HTTPS


sendAndLoad PHP from a SWF in HTTPS nyrodev
9/18/2005 12:00:00 AM
macromedia flash flashcom:
Hi everybody.
Sorry for my bad english, I'm French.

My problem :
I have a SWF make with Flah MX 2004 Professional which is hosted in a HTTPS
Server (Apache).
In this SWF, I have some actions which need to send data (login and password)
to a PHP script, in the same HTTPS Server.
With Mozilla Firefox, it works very well.
But in Internet Explorer (the most of people...) it doesn't work.

I use a LoadVars object, who detect if the PHP script has been downloaded or
not.
It appears that the PHP script isn't loaded, I have an error frommy LoadVars
(I use the 'onLoad' method for test it).

I have try many and many thing (like System.secyrity.allowDomain,
System.security.allowInsecureDomain)

If for the sendandload I try to load the file in HTTP protocole (the same as
HTTPS) it is the same !
(and ever in Firefox it works but not in IE).

Any body can help me ?
Re: sendAndLoad PHP from a SWF in HTTPS flash-hero
9/23/2005 12:00:00 AM
Try to load your code - then it will be more easy to help you.
I personally always use xml to send and load data to the server. It is a much better way than loadvars.
Re: sendAndLoad PHP from a SWF in HTTPS nyrodev
9/23/2005 8:17:21 AM
nobody ?
Re: sendAndLoad PHP from a SWF in HTTPS nyrodev
9/24/2005 11:19:19 AM
Ok, here is my code, simplified.
In the button to login :
envoi = new LoadVars();
envoi.onLoad = function(pSucces) {
if (pSucces && this.res == 1) {
// OK
gotoAndPlay("start");
} else {
error_txt.text = "Erreur de chargement";
}
};
error_txt.text = "Chargement en cours";
envoi.login = login_txt.text;
envoi.pass = pass_txt.text;
envoi.sendAndLoad("login.php", envoi, "POST");
And in my error_txt Textfiled, I have write "Chargement en cours" at the clik
on the button and after, "Erreur de Chargement is writing".
I'm sure that the login.php exist and work well in HTTP connection.

Any idea ?
Re: sendAndLoad PHP from a SWF in HTTPS Motion Maker
9/30/2005 9:15:31 PM
Might be a security sandbox issue, something that might need a different
implementation between players -- a guess.

Try putting the full https url in the load method to see if it works and
then I would say it is a sandbox issue.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Ok, here is my code, simplified.
In the button to login :
envoi = new LoadVars();
envoi.onLoad = function(pSucces) {
if (pSucces && this.res == 1) {
// OK
gotoAndPlay("start");
} else {
error_txt.text = "Erreur de chargement";
}
};
error_txt.text = "Chargement en cours";
envoi.login = login_txt.text;
envoi.pass = pass_txt.text;
envoi.sendAndLoad("login.php", envoi, "POST");
And in my error_txt Textfiled, I have write "Chargement en cours" at the
clik
on the button and after, "Erreur de Chargement is writing".
I'm sure that the login.php exist and work well in HTTP connection.

Any idea ?

Re: sendAndLoad PHP from a SWF in HTTPS video conferencing
10/1/2005 6:13:03 AM
In order to test whether its a sandbox issue. you might want to debug the movie from Flash MX
Re: sendAndLoad PHP from a SWF in HTTPS nick_coronges
10/7/2005 7:31:42 PM
Try disabling the "Pragma" header. There is a problem with IE's active x
implementation when the response contains Pragma: no-cache. This occurs when
the flash player attempts to read from an HTTPS resource. In php I think its
something like
header(Pragma: ');


Nick
Re: sendAndLoad PHP from a SWF in HTTPS nyrodev
10/7/2005 7:57:15 PM
Yes, but which value for Prgama ?
I've found 3 value for the moment :
no-cache
public
private

AddThis Social Bookmark Button