ActionScript 3.0 :: Sending Values To Amfphp
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
Similar Posts:
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
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
Mar 12, 2011
I need to send my flash file some values to .as file.
Example: I have 2 buttons.
Actionscript Code:
Button1.onRelease = function(){myXML.load("something1");};
Button2.onRelease = function(){myXML.load("something3");};
And if I press the button then AS3 get myxml.load value
Actionscript Code:
private var xmlURL:String = HERE';
View 1 Replies
Sep 9, 2008
I'd like to enable the user to enter several parameters within the flash plugin. These influence the flash movie. The flash file itself works perfectly fine. But now I also want to access and process these parameters on a Javascript function.
I tried the external.Interface and navigatetoURL method but couldnt achieve the required result. (The 'link' between flash and javascript doesn't seem to work...)
So how / which is the best way to transfer parameters from AS3 to Javascript on the server ?
View 3 Replies
Nov 14, 2009
I think this is very simple but I'm obviously missing something. I want to insert input data from Flash into a database through a PHP file but although I seem to be able to create new records in the db through this script, no actual data (in this case the value of a variable called "nombre") is recorded. What am I doing wrong? Here is the AS3 script:
[Code]...
This myVariables.nombre = name_txt.text; doesn't seem to be working although a new record is created in the db. The textfield is correctly named and everything but.
View 3 Replies
Sep 16, 2011
How it can be done - when I press a button, then some value will be kept in some variableAnd how the values can be sent to the MySQL database ?
View 5 Replies
Oct 25, 2009
I have a flash banner1.swf (AS2) on [URL] (html-file)
How do I send 4 values from banner.swf to banner2.swf?
- banner2.swf is on another domain
- send the values to [URL] (php-file)
- And output the values into textfields on banner2.swf
- Inside banner2.swf I also want to make all the comparison and editing of the values.
I send the values in banner1.swf:
Code:
$envelope.carValue1 = value1;
$envelope.carValue2 = value2;
$envelope.carValue3 = value3;
$envelope.carValue4 = value4;
_root.$envelope.send("[URL]","_blank","POST");
Is there any way to only send the values directly to banner2.swf without using any PHP script in test.php? The problem I get is that banner2.swf doesn't catch any values. How do receive the sent values into banner2.swf? Do I have to have banner1.swf in php-file and banner2.swf in php-file? Is there any difference if both the swf:s are on the same domain or not?
View 1 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
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
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
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
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
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