AMFphp

Ok, I'm very new to AMFphp and am trying to use it to pass
variables from the flashcomm server to the php class. I can recieve
the results from the class just fine, but none of the variables I
pass to it come back when I have the php class send them back.
here is the php class
<?php
class Presenter
function Presenter()
$this->methodTable = array
"say" => array
"access" => "remote",
"description" => "Pings back a message"
function say($data)
return $data;
?>
This is the main.asc file I am using
load("netservices.asc");
application.onAppStart = function(){
trace("Application has started " + application.name);
NetServices.setDefaultGatewayUrl("
http://localhost/flashservices/gateway.php");
var gatewayconn = NetServices.createGatewayConnection();
this.service = gatewayconn.getService("Presenter",this)
application.onConnect = function(client,ID){
this.acceptConnection(client);
trace("Sending remote Message");
this.service.say("Hello Moto");
this.say_Result = function(result){
trace("AMFphp sent back: " + result);
application.onAppStop = function(){
trace("The application has closed");
Now what I cannot figure out is why it doesn't pass back the
variables if it is even recieving them.

Hi
I am kind of new to flex, too, but here is how I would do it.
First you get your php code to turn the query resulta in xml
data, turning everything into nodes. You have several examples on
the web that tells you how to do this.
Then, in Flex, you use Datagrid, for one, to get the data
from the php file as you would do with a regular xml file (using
httpservice). then you choose the nodes you want to use and the
data on each record to display in each column of the datagrid.
I hope this helped.

Similar Messages

  • Flex/AMFPHP App NOT working in IE but works in FireFox...

    Hello I am beginning to develop Flex applications. I am
    working with PHP in a Symfony environment.
    The error below was appearing before in FireFox but
    disappeared after I uninstalled the Flash Player plugin and
    reinstalled the Flash debug player for FireFox. I also uninstalled
    the IE Flash Player and replaced it with the Flash debug player for
    IE (i believe it comes with Active X). I have the exact same
    version of Flash player for both browsers, 0.0.47.0). This is the
    error:
    [object RemotingConnection]
    Error #2044: Unhandled NetStatusEvent:. level=error,
    code=NetConnection.Call.BadVersion
    at sample/initApplication()
    at sample/___Application1_creationComplete()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/set initialized()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    Again this error was appearing in FF before but now ONLY on
    IE. The same error arrises if I try to open the SWF file localed in
    the bin/ directory in the Flex project. My flex project is located
    on my Desktop and the server I am trying to connect to is on a
    Linux box. AGAIN, this project displays the data perfectly on FF
    but NOT on IE. It just displays several rows from a DB table in a
    datagrid in Flex.
    I have no idea how to approach this! Here is my ".mxml" file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" creationComplete="initApplication()">
    <mx:DataGrid dataProvider="{phpData}">
    <mx:columns>
    <mx:DataGridColumn headerText="User ID"
    dataField="userid"/>
    <mx:DataGridColumn headerText="User Name"
    dataField="username"/>
    <mx:DataGridColumn headerText="Email Address"
    dataField="emailaddress"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var phpData:Array;
    import flash.net.Responder;
    public var gateway:RemotingConnection;
    public function initApplication():void
    gateway = new RemotingConnection("
    http://project_dev_environment/web/backend_dev.php/gateway/amfphp");
    gateway.call("Sample.getUsers", new Responder(onResult,
    onFault));
    public function onResult(result:Array):void
    trace(phpData);
    phpData = result;
    public function onFault(fault:String):void
    trace(fault);
    ]]>
    </mx:Script>
    </mx:Application>
    Here is the required ".as" file:
    package
    import flash.net.NetConnection;
    import flash.net.ObjectEncoding;
    public class RemotingConnection extends NetConnection
    public function RemotingConnection(sURL:String)
    objectEncoding = ObjectEncoding.AMF0;
    if (sURL) {
    connect(sURL);
    public function AppendToGatewayUrl(s:String):void
    I have given a differnt URL because this is an internal
    application and wont be accessible by outside users.
    Again, this app works when loaded on FF but not IE! HELP
    please I have been trying to figure this out since 7 am this
    morning and I'm desperate!
    Just FYI AMFPHP is set up correctly, although its version 1.2
    - could this be causing problems?
    Please, PLEASE help me! or at least a hint. Thank you!

    Hey Tikis,
    There are a few factors that could be throwing this thing
    through a loop. I've had this exact same thing happen to me once
    before and the culprit for me was that my crossdomain.xml file
    wasn't 100% perfectly formed. Apparently Firefox didn't care enough
    and went on with it's life however IE decided it wasn't going to
    read it and I received that error, so that would be the first thing
    I would check.
    The next thing is what version of PHP are you running on the
    server, it seems to me that the newest release of 5.2.2 is throwing
    this error more often then ever before, something I might suggest
    is upgrading to AMFPHP 1.9. RemoteObjects natively send data in
    what's called the AMF3 format which is much speedier then it's
    predecessor of AMF0. Only AMFPHP 1.9 has the ability to receive /
    send the data back in AMF3 format, where as with the 1.2 version
    it's sending the call, converts it down to AMF0 sends the data (at
    a slower pace) and generates a result. The other advantage to being
    able to use AMF3 is having true type casted results such as if PHP
    returns a number you can check it by if(event.result == 0) where as
    AMF0 everything is converted into a string and then sent back to
    Flash / Flex. So aside from all of these advantages the last one is
    less code, you no longer need to use the RemotingConnection to
    convert everything down to AMF0. I would make a copy of amfphp on
    your linux of the 1.9 version and send the remote object at that
    first and see what happens, if you are still receiving the same
    error then the problem lies in something else.
    Hope this helps.

  • Display results of MySQL query from AMFPHP by ArrayCollection in AS3 (Flash CS4)

    Hi, i am using Flash CS4 (AS3) + AMFPHP + MySQL to do own flash frontend for Wordpress CMS.  Everything is going fine but i`ve got one problem. Problem with properly display of result of query in AS3 by using ArrayCollection.
    When i check my service in "amfphp/browser/" in web browser i`ve got this (with all needed data):
    (mx.collections::ArrayCollection)#0
    filterFunction = (null)
    length = 2
    list = (mx.collections::ArrayList)#1  
    length = 2     source = (Array)#2
    That is the reason that i suppose that service work fine.  Problem is when i try to display result in AS3. In actionscript i have got this:
    function getNewsListHandler(result:Object):void{
    trace(result);
    This function displays: [object Object].
    I know that "result" is an ArrayCollection type but i don`t know how to get rows and columns from this. I know that my data is there but i have no idea how to get it.
    Clarify: I don`t know how to get to Arrays and simple data variables which are in ArrayCollection.
    Could anyone help me with that problem. I would be gratefull
    P.S. I tried also change query type in service.PHP for mysql_fetch_query but in that case i`ve got only one row (not all data).

    Thanks for fast reply,
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"});
    you would get the data like
    var resultstr:String = arr_coll[1][1].col2;
    trace(resultstr);
    //results in data4
    could you explain me how it was happen (arr_coll[1][1].col2)? It`s not clear to me. I thought in this case rather something like this :
    var resultstr:String = arr_coll[1]['col2'];
    It should give me "data4". I know it wasn`t but i don`t understand ArrayCollection in level which is needed to use your advice in my case. Could you clarify "arr_coll[1][1].col2" a bit?
    What would it look like when you would have something like this:
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"},{col1:"data5",col2:"data6"},{col1:"data7",col2:"data8"});
    and you would want know f.e. position in ArrayCollection of  "data6". How would you code this? arr_coll[1][2].col2?

  • Save data to mysql using AS3 + Flash Builder(flex) OR AS3+AMFPHP? or AS3

    Hi,
    i just want to confirm with you guys about saving data to mysql using Action script 3.
    I am now developing RPG game that user can save data again and again to the MySQL.
    I searched on the net and found few solutions:
    AS3 alone using URL Loader
    AS3 + Flex +Php to save data to mysql
    AS3 + AMFPHP to save data to mysql
    This make me confused as there are too many options but i do not know which one is better for me
    or what are their limitations...
    Could you guys help me on this?

    For developing you can use the server (install like any other software), but the Zend framework is nothing more than php files, so all you need to do is upload the framework to you hosting server and all should be well.. You may have to configure a few things, but you should be able to do that yourself.
    There's plenty of documentation on installing and configuring Zend on their website.
    So, only get the server edition if you don't already have a dev server (on you computer) installed, like Apache. Otherwise, just grab the framework:
    http://framework.zend.com/download/latest
    Select "minimal package" on the page above to only get the framework (no install). Or grab both and see what each one does but the minimal package is what you need to upload to your hosting server.
    As for where Flex/Flash Builder comes in.. FB is the tool you use to create a Flash/Flex application.
    Zend, AMFPHP, etc.. is used to communicate with your backend from your application, using RemoteObject
    RemoteObject API
    http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html
    Using RemoteObject components
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html

  • AMFPHP hanging in browser but not Flash IDE?

    Wrote a service that sends a bytearray to my Flash app that works perfectly fine when I test it in the Flash IDE (CS5), and when I compile the app and run it in a browser directly from my computer.
    When I load it on to the server to run in my browser, the same service hangs. Can anyone think what may be causing this?
    I tested the service in the service browser and it worked fine there as well.
    I'm really hitting a wall on this, any help would be appreciated!

    What is ncDB? Is it a remote object?
    Remote object don't have a connect method. Istead you should set the endpoint, source and destination properties.
    If you handle your requests through AS3, you could do the following. I use this code in a singleton class.
    in the constructor:
    ws.RemoteObject = new RemoteObject();
    ws.destination = "amfphp";
    ws.source = "nameOfYourService";
    ws.endPoint = "linkToYourGateway.php";
    ws.addEventListener(FaultEvent.FAULT, this.faultHandler);
    In a method named 'call':
    public function call(endPoint:String = null, serviceMethod:String, resultFunction:Function = null, ...args):void
              if (endPoint != null)
                   ws.endPoint = endPoint;
                if (resultFunction == null)
                    resultFunction = defaultResult;
                if (ws.operations.hasOwnProperty(serviceMethod))
                    ws[serviceMethod].removeEventListener(ResultEvent.RESULT, resultFunction);
                    ws[serviceMethod].removeEventListener(ResultEvent.RESULT, defaultResult);
                ws[serviceMethod].addEventListener(ResultEvent.RESULT, resultFunction);
                ws[serviceMethod].arguments = args;
                ws[serviceMethod].send();
    Does this help?
    Dany

  • How to use AMFPHP Objects in Flex

    Hi,
    I have been successful in getting amfphp to return PHP objects, the question now is how can I make Flex aware of the objects?
    I am invoking a remote object and the objects are returned as a result. Can they be used directly or should I use XML?

    Hmm, your code seems a bit to complicated. Here's what I do:
    The RemoteObject:
    <mx:RemoteObject id="PHPGateway" source="yourAMFPHPClassName.ThePHPFile" destination="amfphp" showBusyCursor="true">
        <mx:method name="theFunctionYouWantToCall" result="myFunctionResultHandler(event)" fault="myFunctionFaultHandler(event)"/>
    </mx:RemoteObject>
    Observations:
    1. yourAMFPHPClassName is the name of the folder in amfphp\services that contains the PHP classes.
    2. ThePHPFile is the PHP class file (without the extension) in the yourAMFPHPClassName folder.
    3. You need the <mx:method name="..." .../> to define the function in the PHP class you want  to call. The theFunctionYouWantToCall must be the exact name of the function in the PHP class (case sensitive).
    The ActionScript part:
    //THE BELOW EXAMPLE ONLY WORKS IF THE PHP FUNCTION RETURNS A SINGLE VALUE
    //This means the PHP function has a return statement like this: return $value; or return "Test";
    private function myFunctionResultHandler(event:ResultEvent):void
    var PHPResult:String=String(event.result);
    Alert.show(PHPResult);//will show what the PHP class returned
    //THE BELOW EXAMPLE SHOWS HOW TO PASS MULTIPLE DATA TO FLEX
    //This means the PHP function has a return statement like this:
    //$returnValue=array();
    //$returnValue['name']="George";
    //$returnValue['age']=$age;
    //return $returnValue;
    private function myFunctionResultHandler(event:ResultEvent):void
    Alert.show("Name: "+event.result.name);
    Alert.show("Age: "+event.result.age);
    //THE FAULT HANDLER
    private function myFunctionFaultHandler(event:FaultEvent):void
    Alert.show("Data could not be acquired.");

  • Amfphp gateway browser url - web-vpn messing it up

    hey mates,
    i got a problem with my flex software. i have build an online library. more and more customers having trouble connecting to it via web vpn because it changes the url in the browser and then can't find the gateway.php to get the data to load in the library. is there any workaround in flex or php where i can handle this problem like changing the url in the browser that my customers can find the gateway.php or sth like that. in one case it changes from
    http://someaddress.de
    to
    http://someadress.ezproxy.medma.uni-heidelberg.de
    and the application throws the error netconnection failed because he cannot find the gateway.php ...
    any help would be apprechiated
    best wishes
    philippe

    i forgot to mention that i can't use an url directly to the gateway.php like http://someadress.com/amfphp/gateway.php. it has to be relative like /amfphp/gateway.php because of some server settings from other customers.

  • Feeding an Array of Objects returned from a remote object using AMFPHP Remote procedure calls.

    Hi guys,
    I am working on an AIR Application that Uses Flex and AMFPHP remoting, The returned data type is an array of objects containing a sting an a url to an image on the server, How do bind this to a tilelist so i have a list with images representing the icons and the string representing labels of the Tilelist?

    We assume that the object have these two fields:
    -     label
    -     image
    so you may first pass the Array to the dataProvider of the TileList and make an ItemRenderer (with a label and a image). Then in the ItemRenderer, access to the objects fields with data:
    ItemRenderer.mxml
    <mx:VBox>
         <mx:Label text="{data.label}"/>
         <mx:Image source="{data.image}"/>
    </mx:VBox>

  • Trouble connecting to DB using AMFPHP

    Hi I am testing out a service using AMFPHP, which connects to a database and returns the table info. in flash when you run the swf. For some reason my connection using PHP isn't working. I am sure I have all of the correct information in the code which should connect. In the AMFPHP control panel when I click the call button, nothing happens. The lower left hand corner just says "transferring data from [domain name].
    The Flash app gives me an error:
    "Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
        at GetData_fla::MainTimeline/GetData_fla::frame1()"
    not sure why the connection isn't working. Any thing else I should try?

    Hi I am testing out a service using AMFPHP, which connects to a database and returns the table info. in flash when you run the swf. For some reason my connection using PHP isn't working. I am sure I have all of the correct information in the code which should connect. In the AMFPHP control panel when I click the call button, nothing happens. The lower left hand corner just says "transferring data from [domain name].
    The Flash app gives me an error:
    "Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
        at GetData_fla::MainTimeline/GetData_fla::frame1()"
    not sure why the connection isn't working. Any thing else I should try?

  • AMFPHP - Sending data to Flex

    Since i start using AMFPHP, i've been seeing different ways to send data to Flex, two of them is sending an ArrayCollection containing all the data another way is using VO's, or sending objects each one with one row of my query (am i correct?).
    Now, what's the difference between sending the query results in an ArrayCollection (1000 records means 1 ArrayCollection) and sending a bunch of objects (1000 records means 1000 objects) to Flex with RemoteObject?
    Sending an ArrayCollection the data goes like this:
      [0] (Object)#1
        color_code = "0x9999"
        color_id = "8"
      [1] (Object)#2
        color_code = "0xCC99CC"
        color_id = "7"
      [2] (Object)#3
        color_code = "0xFF9999"
        color_id = "10"
      [3] (Object)#4
        color_code = "0xFFCC66"
        color_id = "9"
    And the PHP code is this one:
    public function all_colors_array(){
         $db=$this->connection();
         $rs=$db->Execute("SELECT * FROM colors WHERE color_status=1 ORDER BY color_code ASC");
         $i=0;
         while (!$rs->EOF){
              $color_code[$i]['color_id'] = $rs->fields['color_id'];
              $color_code[$i]['color_code'] = $rs->fields['color_code'];
              $rs->MoveNext();
              $i++;
         return $color_code;
    Sending as Objects, it goes like this:
      [0] (Object)#1
        color_code = "0x9999"
        color_id = "8"
        color_status = "1"
      [1] (Object)#2
        color_code = "0xCC99CC"
        color_id = "7"
        color_status = "1"
      [2] (Object)#3
        color_code = "0xFF9999"
        color_id = "10"
        color_status = "1"
      [3] (Object)#4
        color_code = "0xFFCC66"
        color_id = "9"
        color_status = "1"
    And the PHP is like this after including the VO file:
    include_once '../vo/ColorVO.php';
    .......public function all_colors_objects(){
         $db=$this->connection();
         $rs=$db->Execute("SELECT * FROM colors WHERE color_status=1 ORDER BY color_code ASC");
         while (!$rs->EOF){
              $color = new ColorVO();
              $color->color_id = $rs->fields['color_id'];
              $color->color_code = $rs->fields['color_code'];
              $color->color_status = $rs->fields['color_status'];
              $a[]=$color;
              $rs->MoveNext();
    return $a;
    Now:
    1. What's the difference?
    2. Which one is best pratices?
    3. Which one is better? ans Why?
    4. If is there anything wring with my code please fell free to correct it!!

    i dont know why.. Adobe Forum is just banned my account !!! :O
    and..to your answer... well, i never tried MS sql to connect to flex.
    but you may check this:
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
    thank you.

  • AMFPHP and AS3FLEXDB - how to disable 'busy indicator' during query execution ?

    I'm doing some experiments with Flex and SQL with use of as3flexdb and AMFPHP.
    I've written some application which is pushing some data to SQL base...
    problem is, that durring query execution, there is some 'busy indicator' on the screen
    - some circle, and word 'loading'.
    Have you any idea how to disable this ?
    Everything what I'm doing is based on this tutorial below, but there is no idea in it how to
    disable the indicator.
    http://ghalex.com/blog/tag/as3flexdb
    I'm not sure if this indicator comes from as3flexdb libraries or AMFPHP itself ?
    Has anyone of you had such problem before ??
    Thanks for all ideas
    Rymas,

    Unfortunatelly my cheers was to early
    I've successfully decompiled the library swc file, found Query.as class and corrected things mentioned in this
    post : http://itutorials.ro/viewtopic.php?f=9&t=22&p=59&hilit=loading#p59
    ... but I cannot compile the library.fla back to swf ... it's generating some errors
    Could anyone help me with that, maybe you've got more expirience with decompiling and compiling.
    Orginal .swc file is here : http://www.rymasek.iq.pl/swc/as3flexdb_1.3.0.swc
    Thanks for help !!

  • Amfphp - flex remote object error event handler

    I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.

    Hi,
    Try throwing an exception in the remote method. For example,
    function inverse($x) {
        if (!$x) {
            throw new Exception('Division by zero.');
        else return 1/$x;

  • I am new on flex, and i would like to create a simple login + password using amfphp

    Hi all,
    I try to make a simple login password using mysql and amfphp, i have a little quesiton, i dont' know how to get back my response from php. Thanks in advance if anyone could help me.
    Best regards
    i would like to tell to the label    <mx:Label x="380" y="10" id="lResponse"/> the response from php
    I juste want to take back response from php.
    Here is my mxml :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
        <fx:Script>
            <![CDATA[
                import mx.controls.dataGridClasses.DataGridColumn;
                import flash.net.Responder;
                import mx.events.DataGridEvent;
                import org.corlan.VOAuthor;
                private function checkpassword():void {
                    var newauthor:VOAuthor=new VOAuthor();
                    newauthor.lname_aut = nom.text;
                    newauthor.fname_aut = prenom.text;
                    myRemote.validate(newauthor);
                private function checkInput():void
                    if(nom.text == "" || prenom.text == "")
                        lResponse.text = "Veuillez completer tout les champs";
                    else
                        lResponse.text = "connecter";
                        checkpassword();
                    //    checkLogin("login.Verify.validate",[nom.text,prenom.text]);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <mx:RemoteObject id="myRemote" destination="MyService" source="MyService"
                             endpoint="http://localhost/amfphp/gateway.php" showBusyCursor="true"/>
            </fx:Declarations>
        <s:Panel x="334" y="168" width="245" height="135" title="Identifiez vous" textAlign="center">
            <s:TextInput x="102" y="10" textAlign="left" id="nom" />
            <s:TextInput x="102" y="40" textAlign="left" id="prenom" />
            <s:RichText x="50" y="6" text="Login :" height="22" width="56" textAlign="left" verticalAlign="bottom"/>
            <s:RichText x="27" y="46" text="Password :" height="20"/>
            <s:Button x="125" y="70" label="Connecter" width="105" click="checkInput()"/>
            <mx:Label x="380" y="10" id="lResponse"/>
        </s:Panel>
    </s:Application>
    Here is my php code :
    <?php
    session_start();
    require_once ('./vo/org/corlan/VOAuthor.php');
    //conection info
    define( "DATABASE_SERVER", "127.0.0.1");
    define( "DATABASE_USERNAME", "root");
    define( "DATABASE_PASSWORD", "xxxx");
    define( "DATABASE_NAME", "flex360");
    class MyService {
        function validate($author){
            $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
            mysql_select_db(DATABASE_NAME);
            $user = $author[0];
            $pass = $author[1];
            $query = "SELECT DISTINCT * FROM authors_aut WHERE fname_aut = '$user' AND lname_aut = '$pass'";
            $rs = mysql_query($query);
            $var = mysql_fetch_assoc($rs);
            $u = $var["fname_aut"];
            $p = $var["lname_aut"];
            if ($pass != $p){
                $response[0] = "INVALID";
                $response[1] = "Invalid username and/or password";
            } else {
                $response[0] = "VALID";
                $response[1] = "Welcome $u";
            return $response;
    ?>

    I usually have a resultHandler function, to handle stuff from the server.
    resultHandler(event:ResultEvent):void

  • AMFPHP and Flex 2 B3

    I'm trying to do the AMFPHP tutorial in the Labs wiki and am
    running into errors. Any ideas what is happening?
    Here's the tutorial
    Link
    to Wiki
    I'm getting an error on this line:
    public var gateway : RemotingConnection;
    And the error is: Type was not found or was not a
    compile-time constant: RemotingConnection.
    Anyone done this in Beta 3 and had success? How?

    I'm trying to do the AMFPHP tutorial in the Labs wiki and am
    running into errors. Any ideas what is happening?
    Here's the tutorial
    Link
    to Wiki
    I'm getting an error on this line:
    public var gateway : RemotingConnection;
    And the error is: Type was not found or was not a
    compile-time constant: RemotingConnection.
    Anyone done this in Beta 3 and had success? How?

  • Russian (cyrillic) text visualization in datagrid through flex-amfphp-mysq

    Hi to all!!!
    Here's the scenario.
    I've got a mysql db with several products stored in several languages (english,french,deutsch,italian and russian). The table is stored in utf8 and through phpMyAdmin or mysql GUI client I'm able to see correctly all the products in all the language (russian included).
    I've also setted up remoting through amfphp. I've got a remote php object which queries the MySQL extracting all the products related to a language. On the flex side a read the remote result and I put it in a data grid  through databinding.
    Everything works fine with english,french,deutsch and italian but the troubles come with russian.
    In DataGrid cell, instead of the cyrillic chars, are displayed many "??????".
    I've tried to elaborate the result of the query changing the string data with this php function mb_convert_encoding($row->describtion,'UTF-8','Windows-1251') but the text displayed remains the same.
    I've also tried with utf8_encode / utf8_decode.
    Is there anyone who already faced this issue?
    Am i doing something wrong on php side? Am I missing something on flex side?
    Any help would be appreciated!!!!
    Thanks in advance!
    Luke

    If you make a call to drupal, through the Actionscript Remote
    Object - you have to assign it a "return" function. If you put a
    breakpoint in that return function and run it you can see what the
    data looks like coming out of drupal. It's usually in an Object
    variable with all the properties setup to your return types.
    We've had great success parsing these objects directly from
    Drupal in our actionscript code.
    M@

  • AMFPHP Flex3 and Cairngorm

    Trying to get back into Flex here and I decided to try using
    it with PHP. I have set up AMFPHP 1.9beta I created a DataService
    class with a getUsers function. I have tested AMFPHP in with the
    browser and it creates the User objects properly and returns them.
    When calling from Flex I can see that it is hitting the getUsers
    function as I add a call that writes to a file to tell me it got
    there. I put an Alert.show in the result function and I am not
    getting there. I do not have FlexBuilder, so I am not able to
    debug. All seems to compile fine and through a series of Alerts I
    can see that everything is getting called. Looking for any
    suggestions or assistance I can find here.

    Hi Mike,
    Flex Builder connects to SQL Server through a TCP/IP
    connection. This type of connection it might not be enabled for
    your server. Please check if this is the case for you (the default
    port is 1433).
    Regards,
    Miti

Maybe you are looking for

  • Uploading technique

    Hi, Please let me know the uploading techniques for Equipment BoM, Equipment Task List & General Task List. Regards, Maheswaran.

  • BlackBerry Protect - too many active devices error

    Hi guys, I've been doing one-to-one exchanges with my service provider due to hardware issues. Each time I get a new handset, i activate it with my BB Protect but now there's this error coming out and I've deleted the devices from the BlackBerry Prot

  • Hierarchy order number

    Hi All, I am using Oracle 11g 11.2.0.3.0. There is a hierrarchy in part number which means for example if company manufactured a part A and it is replaced by another part B then replaced B to 1 and replaced 1 to 2 so the chain looks like A->B->1->2.

  • Not all photos showing up in Photostream

    Since upgrading my Iphones, MacBook and Imac and using Photo Stream, I am puzzled as to why only some photos show up in each device. Yesterday I took about 25 pics with my Iphone. When I got home, I noticed that none are showing up on the Ipad, and o

  • Audition CS5.5

    Is there a list of audio file formats supported by CS5.5 for saving files, or a user manual available on this site?  Specifically, we have Audition 3 and need to save audio files to the MP2 format. I would like to know if updating to CS5.5 will enabl