Actionscript 3.0 :: AMFPHP Services Over HTTPS?
Sep 18, 2008
I'm having a very strange problem around a few services I developed for AMFPHP that worked fine over HTTP but once over HTTPS gone completely wrong. When testing right on export flash IDE the connection goes fine but when online and on the browser it doesn't. On connecting, Flash returns a security sandbox violation like this:
"Error #2048: Security sandbox violation:[URL] cannot load data from [URL]. I know that I'm missing the "www" subdomain on the gateway secure address but this is has another purpose for domain configuration. What's most weird is that even the Service Browser went completely wrong since it tries to open the gateway through the HTTP version of the address instead of the HTTPS one. Upon opening the browser I get a "NetConnection.Call.Failed: HTTP: Failed" error. It also tells me that it's trying to connect to [URL] instead of [URL].
View 9 Replies
Similar Posts:
Jun 17, 2009
Does flash web services allows https:// over http ?
View 5 Replies
Mar 19, 2010
When using flash remoting with amfphp, what can I write in php that will trigger the 'status' method that I set up in my Responder in Flash? Or more generally, how can I determine if the service call has failed? The ideal solution for me would be to throw some exception in php serverside, and catch that exception in flash clientside... How do other people handle server errors with flash remoting?
[Code]...
View 1 Replies
Apr 12, 2007
i want to use amfphp to get a very long text so i want to be able to show the progress of the download with a preloader but i dont know how to do this, also i dont know if it is posible to send or get an image or swf using amfphp.
View 4 Replies
Jan 18, 2009
How would I send variables to php when I use AMFPHP? I'm trying to send mediaID and voteValue to my php file, but nothing seems to happen. I guess there's something wrong here..
View 5 Replies
Nov 24, 2009
connectivity of data using AMFPHP between the flash frontend and the mysql database?
View 2 Replies
Nov 29, 2009
Is it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s.
View 1 Replies
Dec 17, 2009
is there any other framework that does the same as amfphp? I dont want to use amfphp because it hasnt been updated in years and looks like it's no longer under development, I have to use PHP so I'm looking for a PHP alternative.
View 2 Replies
Mar 10, 2012
its few days i'm stock with a issue using amfphp 2 in my actionscript project. i have an actionscript project which gets the data from db through amfphp, when i run the complied swf in debug mode or just run through flash player it works fine , but once i wrap it with html and open it through browser it never gets the data from db, dose any body can help me what is going on ? i have added these lines at the first of the project , but still through browser ( i've tried , Chrome, Firefox and safari) it cannot connects to db.
[Code]....
View 1 Replies
Mar 13, 2012
i have a problem passing ByteArray from flash (as3) to amfphp to save an image.With old version of amfphp, all worked in the past... now, with new version i have many problem.I'm using version 2.0.1 and the first problem is that i have to do this, for access to my info:
[Code]...
View 1 Replies
Jul 15, 2009
Whats the scoop?I watched Lee's tutorial on Zend and also the older ones for AMFPHP.Is one 'better' than the other? Doubt that since as I understand both are written by the same author, only Adobe 'officially' supports Zend.
My application is composed of 3 parts
1-an image editing tool allowing users to upload images, edit them, then post them to a server.
2-a publicly viewable gallery
3-a private 'admin' tool allowing the user to change their login settings and delete any uploaded images.
Are both Zend and AMFPHP equally robust and easy to implement when it comes to session registration and login?
View 1 Replies
Jan 20, 2009
I have struggled with this a while now, but I can't understand it. I want to send values from my flashfile to amfphp which will then update my database. This is the as3 code I use for sending:
[Code]...
View 5 Replies
Aug 1, 2011
I'm using amfphp to get some info from SQL database.
My php code of the file in "services" folder looks like[code]...
View 1 Replies
Sep 23, 2009
I'm working on a website using :
- Flex 3.4
- AMFPHP 1.9b
- Propel 1.3
- PHP/MySQL
I'll try to focus on the problem which takes place in a whole system.To sum up, I have 2 entities (MySQL) :
create table AAA
(
id_AAA int not null auto_increment,
id_BBB int,
[code]....
I retrieve all my BBB, they are mapped from PHP classes (generated by Propel) to AS3 classes on the Flex side.But when I create a AAA row in the database.I retrieve all my BBB, and all objects are mapped EXCEPT the BBB whose id corresponds to the foreign key in the inserted AAA row.
if you know anything about how AMFPHP / Propel / Flex are dealing with Foreign Keys and why class mapping is failing right here.The weird thing is that it seems to happen only for this specific case ...
View 2 Replies
May 15, 2010
I know how to get the data from my database, but i can't seem to figure out how to send data to the database from flash using amfphp! give me an as3 and php service example.
View 1 Replies
Sep 18, 2010
Is it possible to call a client method from server using AMFPHP? For example if there is a Flash chat app with PHP backend. Everytime a new chat is logged from one of the clients, server would call update in all of the clients?
View 2 Replies
Jul 9, 2011
I have an application running on flex and php, connected using amfphp, i added a secure channel to services.conf of amfphp [code]how do i know if flex is actually using this secure channel? i tried [code]from the php side and they are both false ... but if i remove these checks it works fine, I'm using wamp, with mod_ssl, and working from localhost
View 2 Replies
Aug 26, 2011
Is it possible to call a function in flex from the php side of AMFPHP?
For instance, and error is thrown in php, can i "listen" for it in the flex app?
View 1 Replies
Nov 2, 2011
I'm trying to connect to AMFPHP over SSL (self-signed) from a Flex 4.5 application.Will this work? Or do I need an authority-signed certificate?Will it silently fail or prompt user like it does in browser?How do I need to edit the services-config.xml file for this to work?
View 1 Replies
Nov 10, 2011
I'm looking for a way to catch an Exception thrown by PHP in Flex using HTTPService. Is it possible to do it without using AMFPHP?
In my current implementation, if an Exception is thrown in PHP, a FaultEvent.FAULT is indeed dispatched on Flex side. The only problem is that the exception's message string is nowhere to be found in FaultEvent.[code]...
View 1 Replies
Dec 20, 2011
I am using remote object in flex to call a method in amfphp. I have project setup properly with a services-config.xml in d src, d end point uri pointing to the gateway.php. After testing on my localhost everything works fine but when I copied my files to a remote server repoint the uri in d servies-config and then recompiling the application gives a sending failed error.
View 2 Replies
Jan 13, 2009
Passing a complex type to PHP with AMFPHP 2. This 'sort of' works, sort of in that I can pass an AMF object to a service, and I can echo that object back to Flex/Flash, but I cannot access the contents of the object in PHP.
A simple service
[Code]....
We get null. - Now I am assuming this is some sort of serialization I am missing, does anyone know what it is?
Edit - also worth noting when passing an Array to AMFPHP I have no problems accessing the data
View 2 Replies
Jul 7, 2009
programming and on AS3... have patience. :s
I have the following on my php service file :
Code: Select all function updateRecords($id,$name,$age){
$query = mysql_query("UPDATE data SET name= '$name', age= '$age' WHERE id = '$id'");
[code]....
View 4 Replies
Jul 22, 2009
I have been looking everywhere for this solution:
How do you send data to a database using amfphp?
Do you need to use a php file or something? or is there a way of doing it another way? I'm not great with php..
View 1 Replies
Jan 29, 2010
I have an array in AS3 that I am sending to AMFPHP
Code:
var myArray:Array = [
{type:"text", title:"title 1"},
{type:"video", title:"title 2"},
[Code]....
In my PHP function I need to loop through the array and get to the objects
PHP Code:
for ($i = 0; $i < count($myArray); $i++){ $type = $myArray[$i]['type']; $title = $myArray[$i]['title'];}
The above doesnt appear to be working. AMFPHP is returning this error:
Code:
Cannot use string offset as an array
View 1 Replies
Feb 26, 2010
I've setup my datagrid in flex 3 but, I dont know how to use the arraycollection from my database. How do I place it in my dataprovider?
View 11 Replies
Mar 10, 2011
I was wondering if you could direct me to a decent tutorial or have any info on setting up a contact form in flash cs5 using amfphp? I can create the contact form in flash cs5 and i have set up the amfphp gateway successfully with a working test email. I have seen the gotoandlearn tutorial but need help extracting the data from my flash fill in form. My problem is that I don't know the actionscript to collect my data from the flash form via a send button.
View 2 Replies
May 3, 2011
I am currently developing an application in flash. In this application user will be able to buy in-game currency using real life money. For this purpose we have some external actors. In our case, it is hipay.Now, once a user clicks on a particular button, as3 will use amfphp to call a php file that eventually will do this: header("Location: ".$url) ; Once this happens I get an error in my flash:
Error: Request for resource at https://test-payment.hipay.com/index...mevarialbes--- by requestor from http://mydomain.com/game.swf denied due to lack of policy file permissions
Connection to https://test-payment.hipay.com/index...mevarialbes--- halted not permitted from http://mydomain.com/game.swf
*** Security Sandbo Violation ***
Warning: failed to load policyfile from https://test-payment.hipay.com/crossdomain.xml
View 2 Replies
Sep 11, 2009
I have a Flash movie written in Flash 8 with AS2 that is attempting to access a webservice on a server that is https.
I can't get the webserviceconnector to even load the WSDL file.
I have a crossdomain.xml file at the root of my http/https server that allows the domain the swf is being served from to get in and it has the secure attribute for that domain set to false, but it still can't get through.
Not sure what I am missing at this point.
I have a quick update. I figured that since my webserver is serving the secure site up under a different Website in IIS that I needed a crossdomain policy file at the home directory of the site. I have placed it there and when the movie loads I am using loadPolicyFile to get the crossdomain file which still loads into flash without issue but I still get a WebServiceFault when I try to load up the WSDL.
Can anyone point out a crossdomain example where a flash movie on an http domain is accessing a webservice on an https domain?
View 2 Replies
Jan 18, 2012
I export a swf/html direct from flash, very simple. I upload it and it works fine in all browsers. If I change http to https in all browsers, no problems.
All browsers except IE - when I change http to https, I just get nothing - if I right click I get "Movie not loaded..." (greyed out) and the usual about flash player.
I've reinstalled my flash player, read loads of tips and tried loads of other hacks but nothing seems to work.
I am using IE 9 (for testing only)
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="562" height="300" id="banner" align="middle">
<param name="movie" value="banner.swf" />
[Code].....
View 1 Replies