AmfPHP + mysql db(online) + flex/flashbuilder

Hi.
I am coming over from flash and doing tuts on flex (using flashbuilder)
I want to connect a mysql database (online) with my flex/flashbuilder app using amfPHP as the preferred technology.
I have to code for the flex app and I was wondering if anybody would be kind enough to help me with the amfPHP classes that I have to use. I KNOW there are tuts online but there are SO MANY that I don't know which one is correct.
ie: I need:
1. The database password etc... in a separate file then I would include it in the other classes
2. The simple class to send back the dataset form the mysql database to the datagrid
3. Session perhaps (as I am creating a learning management system for children to learn English)
I am not looking to be spoon fed but I am a newbie - if you could point me to the best code via links etc...
Am I right in thinking that this is a HELL of a lot better than using my current design with flash(URLVariables) + with a php script etc...
especially if I have over a 100 - 1000 concurrent users which we will have by September.
CHEERS

I just discovered this developer's github page yesterday and perhaps his air_amf_sync project may be beneficial to you.
https://github.com/dima/air_amf_sync
Let us know on your outcome.

Similar Messages

  • Flex/Flashbuilder build AIR, is Adobe suffering from product development myopia?

    Hi,
    Im really new to using Flex/Flashbuilder to build SWFs. Im actually using Flex3 (3.2) instead of FlashBuilder, but both seem to have to same approach when it comes to creating AIR)
    Im trying to get a hold of Adobe's idea of creating AIR apps with Flex/FlashBuilder. From what I make out the way to go is create a Flex project and set it to publish for the desktop. Actionscript projects dont have this option (though I know how to fake it by changing .mxml to .as)
    But as Im new to Flex, Im trying to get a hold on the concept of Flex/FlashBuilder. I just cant imagine that developer tools like these encourages developers to use MXML instead of actionscript when you want to develop an AIR app. Especially because the compilers seems to parse MXML code into actionscript class instances. From what I make out sofar this is a ridiculous sidestep and forces developers to learn MXML while the actual language is Actionscript 3.0. Also all the necessary libraries could just as easily be compiled into an Actionscript project, right?
    The weird thing is that FlashBuilder seems to have to exact same setup as Flex 3. So, I guess Adobe didnt think that workflow was a Flex 3 flaw. So either Im missing something completely obvious or Adobe suffering from product development myopia.
    What's the idea here? Can someone explain, please?

    We just had the same issue whe trying to upgrade our AIR app from requiring 3.3 to 3.4 by changing the application descriptor. We see the same message "Cannot complete installation because runtime updates are disabled on this machine" in our logs, but nothing was really ever done to disable updates on that particular machine. Checking on different computers now, but if this is a widespread problem then it would disastrous as our user would be unable to use the app. Any idea what is causing this?
    This thread is the only(!) Google result for "Cannot complete installation because runtime updates are disabled on this machine".

  • Convert Date stored in MYSQL to date flex can use

    Hello All.
    I am trying to finish a simple log in script for a program i am working on.
    Its using amfphp to check a mysql database to ensure that the username and password that the user enters is in the database and flagged to allow them to log in,
    I have all this working fine.
    However the database also has a table named "Date" that contains a date in the format os DD/MM/YYYY  this date is generated by flex in a process earlier.   The field type for this date field is a varChar.
    My flex application also has a variable that contains the current Date. In the same format.
            <mx:DateFormatter id="DateDisplay"  formatString="DD/MM/YYYY"/>
              [Bindable] private var today:Date = new Date();
    and i have a label that displays it using the code below.
    DateDisplay.format(today)
    Now what i want to do is when the user clicks the log in button, in the result of the function that is run, i want to convert the date stored in the mysql table to a date variable so that i can compare it witht he actual date.   So that the user can not log in once the date has expired.
    The result function is as follows
    protected function qrycandidateLogin(event:ResultEvent):void
                    if(event.result.length > 0 && event.result[0].Taken =='Yes') {
                        Alert.show(LoginError,"Error");
                    else if (event.result.length > 0 )
                        viewstack1.selectedChild=welcome;  
                        userArray = event.result as ArrayCollection;
                    else
                        Alert.show("Please consult an account admin.", "Login failed");
    So i need to add the code to the first "Else IF" statement.  to ensure that the date hasnt expired.
    If anyone can help that would be great !
    Thanks
    Dave

    I have been working on this and had some advancement but I am still having problems.
    I added a bindable variable - [Bindable] public var SelDate:Date;
    and added the following code into my result function
        SelDate= DateField.stringToDate(event.result[0].date, "DD/MM/YYYY");
    however when i check what this SelDate variable then holds it comes out as
    Wed Jan 20 00:00:00 GMT+0000 2010
    the date is correct becuase my database value is 20/1/2010
    But i dont want all the time etc,  but when i change the "DD/MM/YYY "   it then displays nothing.
    Any ideas?
    Thanks

  • 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.

  • Taking my PHP/MySQL site online - how?

    Hi,
    Once I have developed a site on my local PC in DW, utilizing
    PHP and MySQL Administrator, how do I make it work online?
    Obviously I need to use the built-in FPT function in DW - but
    how do I transfer the database files to the server?
    I have searched for an anser to this question for a long time
    - but all the tutorials I find (and I have found a number!) help me
    develop my site locally - and then say nothing about taking it
    online.
    I have developed a number of sites using ASP/Access. When I
    take such a site online, I need to change the connection-string. Is
    the process the same for PHP/MySQL sites? If yes, what change do I
    need to make? And what database-file do I upload to the server, and
    where do I put it?
    Here is where I want to get: I want to have my site locally,
    so that I can make any changes to it when necessary - and then
    upload it so that it now uses the online database. ASP/Access
    allowed me to have both locally, so that I could make any changes.
    Downside is of course you have two versions of the database, one
    local, one remote.
    My host uses PHPMyAdmin. I see I can download a version of
    this and use it locally. Should I do that and use that? Does it do
    the same as PHP Administrator?
    As you can see I have many questions. I think I am missing a
    few key-thoughts that will help me understand PHP and MySQL and
    make go "oh, now I get it!'
    Please feel free to point me to tutorials that you believe I
    will find helpful.
    Thanks for your help in advance!
    Rogier

    RogierBos wrote:
    > Hi,
    >
    > Once I have developed a site on my local PC in DW,
    utilizing PHP and MySQL
    > Administrator, how do I make it work online?
    >
    > Obviously I need to use the built-in FPT function in DW
    - but how do I
    > transfer the database files to the server?
    >
    > I have searched for an anser to this question for a long
    time - but all the
    > tutorials I find (and I have found a number!) help me
    develop my site locally -
    > and then say nothing about taking it online.
    > I have developed a number of sites using ASP/Access.
    When I take such a site
    > online, I need to change the connection-string. Is the
    process the same for
    > PHP/MySQL sites? If yes, what change do I need to make?
    And what database-file
    > do I upload to the server, and where do I put it?
    >
    > Here is where I want to get: I want to have my site
    locally, so that I can
    > make any changes to it when necessary - and then upload
    it so that it now uses
    > the online database. ASP/Access allowed me to have both
    locally, so that I
    > could make any changes. Downside is of course you have
    two versions of the
    > database, one local, one remote.
    >
    > My host uses PHPMyAdmin. I see I can download a version
    of this and use it
    > locally. Should I do that and use that? Does it do the
    same as PHP
    > Administrator?
    >
    > As you can see I have many questions. I think I am
    missing a few key-thoughts
    > that will help me understand PHP and MySQL and make go
    "oh, now I get it!'
    >
    > Please feel free to point me to tutorials that you
    believe I will find helpful.
    >
    > Thanks for your help in advance!
    >
    > Rogier
    >
    Sounds like you need to export your database and then import
    it into
    your production server. Then upload the website, adjust the
    connection
    string so that its pointing to the correct server with the
    correct
    credentials and away you go.
    Steve

  • Mysql connection with flex

    how can i build a simple and add cart application with flex
    and mysql ineed step by step instruction. in ur smaples u defind
    some server path which one i need to edit for my application . and
    one more how can i uplode all these files to my server

    mysql part you still need to do on server side with whatever
    scripting language you have on server, you can actually use
    RealBasic to make it as CGI for multiple platforms....

  • Help, Flex, Flashbuilder

    I need help making what i thought was going to be an easy form type application in Flex. I need Drop Down List A to display a 2 pictures, populate a text field and select a specific option in Drop Down List B. Drop Down List B is also tied to one of the pictures so when you change Drop Down List B the picture will change.
    For example Drop Down List A is a type of car, when you select your car it displays a picture of the car and a logo of the car and it chooses a car tire in Drop Down List B. As you change Drop Down List B it changes the picture of the car to correspond to the specific tire you chose and will also change Drop Down List C based on the car you chose and the tire you chose.
    Here is what i have so far:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        actionBarVisible="false" creationComplete="srv.send()" tabBarVisible="true" title="Home"
                        splashScreenImage="@Embed('assets/splash.png')">
              <s:states>
                        <s:State name="State1"/>
                        <s:State name="State2"/>
              </s:states>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                        <s:HTTPService id="srv" url="assets/cars.xml"/>
                        <s:SplashScreenImage>
                                  <s:SplashScreenImageSource
                                            source="@Embed('/assets/splash.jpg')"/>
                        </s:SplashScreenImage>
                        <!--
                        <s:SplashScreenImage>
                                  <s:SplashScreenImageSource
                                            source="@Embed('assets/splash.png')"
                                            dpi="240"
                                            aspectRatio="landscape"/>
                        </s:SplashScreenImage>
                        Define one or more SplashScreenImageSource.
                        <s:SplashScreenImageSource
                        source="@Embed('assets/logoDefault.jpg')"/>
                        -->
                        <s:ContentCache id="imgcache" enableCaching="true" enableQueueing="true"
                                                                maxActiveRequests="1" maxCacheEntries="10"/>
                        <s:ArrayCollection id="arrColl">
                                  <s:source>
                                            <fx:Array id="arr">
                                            </fx:Array>
                                  </s:source>
                        </s:ArrayCollection>
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import spark.events.IndexChangeEvent;
                                  protected function dropDownList_changeHandler(evt:IndexChangeEvent):void {
                                            crop.text = "1.2x" + car.selectedItem;
                        ]]>
              </fx:Script>
              <s:SplitViewNavigator left="0" right="0" top="0" bottom="0" color="#212121">
              </s:SplitViewNavigator>
              <s:BitmapImage includeIn="State1" height="100%" source="assets/state1.jpg" width="100%"/>
              <s:BitmapImage includeIn="State2" height="100%" source="assets/state2.jpg" width="100%"/>
              <s:Image left="0" right="0" top="0" bottom="0" source="assets/state1.jpg"
                                   source.State2="assets/state2.jpg"/>
              <s:HGroup y="54" left="15" right="298" height="32"
                                    y.State2="54" left.State2="15" right.State2="127">
                        <s:DropDownList id="car" width="187" height="20"
                                                                change="dropDownList_changeHandler(event);" dataProvider="{srv.lastResult.list.car}"
                                                                prompt="Select a car"
                                                                width.State1="190" blendMode.State1="overlay" color.State1="#FFFFFF"
                                                                contentBackgroundColor.State1="#464545" enabled.State1="true"
                                                                width.State2="190" blendMode.State2="overlay" borderVisible.State2="false">
                                  <s:itemRenderer>
                                            <fx:Component>
                                                      <s:IconItemRenderer
                                                                label="{data.carSensor} {data.cropFactor}"
                                                                messageField="sensorSize"/>
                                            </fx:Component>
                                  </s:itemRenderer>
                        </s:DropDownList>
                        <s:TextArea id="crop" width="64" height="22" editable="false"
                                                      width.State1="60" autoCorrect.State1="false" blendMode.State1="overlay"
                                                      borderVisible.State1="false" editable.State1="false" enabled.State1="true"
                                                      fontFamily.State1="_sans" fontSize.State1="20" fontWeight.State1="bold"
                                                      paddingBottom.State1="0" paddingLeft.State1="0" paddingRight.State1="0"
                                                      paddingTop.State1="0" selectable.State1="false" textAlign.State1="center"
                                                      width.State2="60" blendMode.State2="overlay" borderVisible.State2="false"
                                                      editable.State2="false" enabled.State2="true" fontFamily.State2="_sans"
                                                      fontSize.State2="20" fontWeight.State2="bold" paddingBottom.State2="0"
                                                      paddingLeft.State2="0" paddingRight.State2="0" paddingTop.State2="0"
                                                      selectable.State2="false" textAlign.State2="center"/>
                        <s:DropDownList id="tire" x="10" y="52" width="62" height="20" dataProvider="{srv.lastResult.list.tire}"
                                                                prompt="tire"
                                                                width.State1="64" blendMode.State1="overlay"
                                                                width.State2="64" blendMode.State2="overlay">
                                  <s:itemRenderer>
                                            <fx:Component>
                                                      <s:IconItemRenderer
                                                                label="{data.cartire}"
                                                                messageField="cartire"/>
                                            </fx:Component>
                                  </s:itemRenderer>
                        </s:DropDownList>
              <s:HGroup y="54" left="364" right="172" width="13" height="32">
              </s:HGroup>
                        <s:DropDownList id="desired" width="61" height="20" dataProvider="{srv.lastResult.list.desired}"
                                                                width.State1="60" blendMode.State1="overlay"
                                                                width.State2="60" blendMode.State2="overlay">
                                  <s:itemRenderer>
                                            <fx:Component>
                                                      <s:IconItemRenderer
                                                                label="{data.carSensor} {data.cropFactor}"
                                                                messageField="desired"/>
                                            </fx:Component>
                                  </s:itemRenderer>
                        </s:DropDownList>
              <s:HGroup y="54" left="365" right="80" width="14" height="32">
              </s:HGroup>
                        <s:DropDownList id="actual" width="61" height="20" dataProvider="{srv.lastResult.list.actual}"
                                                                blendMode.State1="overlay"
                                                                blendMode.State2="overlay">
                                  <s:itemRenderer>
                                            <fx:Component>
                                                      <s:IconItemRenderer
                                                                label="{data.carSensor} {data.cropFactor}"
                                                                messageField="actual"/>
                                            </fx:Component>
                                  </s:itemRenderer>
                        </s:DropDownList>
              </s:HGroup>
              <s:HGroup includeIn="State2" y="127" left="206" right="175" height="32">
                        <s:DropDownList id="cam2" width="192" height="20" blendMode="overlay" dataProvider="{srv.lastResult.list.cars2}">
                                  <s:itemRenderer>
                                            <fx:Component>
                                                      <s:IconItemRenderer
                                                                label="{data.carSensor} {data.cropFactor}"
                                                                messageField="cars2"/>
                                            </fx:Component>
                                  </s:itemRenderer>
                        </s:DropDownList>
                        <s:TextInput id="crop2" width="61" height="22" blendMode="overlay" borderVisible="false"
                                                       editable="false" enabled="true" fontFamily="_sans" fontSize="20"
                                                       fontWeight="bold" paddingBottom="0" paddingLeft="0" paddingRight="0"
                                                       paddingTop="0" selectable="false" textAlign="center"/>
              </s:HGroup>
              <s:Button id="ShowState2" includeIn="State1" x="1" y="111" width="151" height="55" alpha="0"
                                    click="currentState='State2'" icon="assets/off.jpg"/>
              <s:Button id="ShowState1" includeIn="State2" x="2" y="112" width="147" height="53" alpha="0"
                                    click="currentState='State1'" enabled="true" icon="assets/on.jpg"/>
              <s:Image id="imaga" x="13" y="163" width="304" height="206" source="assets/singapore.jpg"
                                   fillMode.State1="scale" scaleMode.State1="zoom"
                                   fillMode.State2="scale" scaleMode.State2="zoom"/>
              <s:Image id="imagb" x="324" y="163" width="304" height="206" source="assets/singapore.jpg"
                                   fillMode.State1="scale" scaleMode.State1="zoom"
                                   fillMode.State2="scale" scaleMode.State2="zoom"/>
              <s:Image id="imagc" x="524" y="11" width="103" height="64" source="{data.image}" fillMode.State1="scale" scaleMode.State1="zoom" x.State2="524" y.State2="11" fillMode.State2="scale" scaleMode.State2="zoom"/>
              <s:Image id="imagd" includeIn="State2" x="524" y="84" width="103" height="64" fillMode="scale"
                                   scaleMode="zoom" source="assets/singapore.jpg"/>
              <!--
              <s:List id="list" top="0" bottom="0" left="0" right="0"
                                  dataProvider="{srv.lastResult.list.car}">
                        <s:itemRenderer>
                                  <fx:Component>
                                            <s:IconItemRenderer
                                                      label="{data.carSensor} {data.cropFactor}"
                                                      messageField="sensorSize"/>
                                  </fx:Component>
                        </s:itemRenderer>
              </s:List>
              -->
    </s:View>

    Hello Friends,
    I am still waiting for the solution.
    Guys was it really tough !! is it possible 1st of all ie what i am looking !! 
    I will make you understand in simple terms like, In a single line chart i  want to display 2 different shapes ie BoxItemRenderer &  CandlestickItemRenderer based on a condition. Line chart functionality  will be the same but i want to show the shapes in a different color for  differentiation. i have already shared the code also. 
    pls help me out. 
    Rajesh

  • 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?

  • Lost my flex book; should I wait for FlashBuilder 4 books?

    I don't know if things changed very much between Flex 3 and Flash Builder 4.
    Anyway, can any of you shed light on what is coming in the form of FlashBuilder books, training or education?
    Also, since I am a Flex/FlashBuilder 4 novice, I haven't found userful resources in Flex frameworks; similar to fusebox if you know ColdFusion.
    Greatly appreciate any information or future information if you know it.
    Thanks

    I'm not too well informed about Audible support so I won't commment. Creative is generally pretty tight lipped about further developments too so I wouldn't expect anyone to make an official promise.
    I DO know that bookmarking is enabled. You can store up to 0 bookmarks and I use it extensivly for the audio books and comedy albums I have in mp3 format.
    There was a big discussion about the jogging with the Mini and Micro. I think Creative is being a little more on the cautious side to prevent the player from sustaining repeated shocks. There were users who posted here saying that there is no problem when they go jogging or work out with their Micro. The Micro and Mini are pretty much the same arcitechture inside so being a little rough probably won't hurt too much. It's a matter of Creative being maybe a little too conservati've.
    I'd like to add that, since I've owned both, the Micro is an amazingly good player and it kinda blows the Mini outta the water in every way.Message Edited by fdreinthea on 0-8-2005 2:30 AM

  • Examples of using flashbuilder/flex tags

    can anybody recommend some resources for examples on using some of the flashbuilder/flex tags.
    as a cold fusion web developer, there are tons of resources with snippets or simple examples on using most the cold fusion tags and functions.
    liveedocs.adobe.com is a great reference guide but sometimes I need examples and snippets ; reference material is not very useful for learning.
    is there or will there be something similar with flex/flashbuilder?

    I assume you're asking specifically about Flex4 examples? There are tons of resources (Adobe and non-Adobe) for pre-Flex 4 coding, so I won't go into those. For some examples and info on Flex 4, you might check out the Adobe devnet site - we're recently posted some articles talking about various aspects of Flex 4, with sprinklings of code and demos to help illustrate the points:
    http://www.adobe.com/devnet/flex/
    Also, there were a few talks at a Flashcamp event a couple of weeks ago - it might be worth checking out the videos that were posted:
    http://labs.adobe.com/technologies/flash/videos/#flashcamp
    (more about the event and links to some of the slides here: http://www.flashcamp.org/)
    You can also follow some of the blogs out there that are talking about Flex 4. A few of us on the SDK team have blogs, but there are also non-Adobe bloggers out there talking about it and posting code and examples.
    Hope that helps.
    Chet.

  • Flex 3 - AMFPHP - Transparent Web Proxy

    Hello,
    I developed a Flex3 application with AMFPHP to communicate
    with PHP. At home no problem everything work but when I try to my
    office I have this type of error sometime :
    code:
    Channel.Call.Failed
    Message:
    error
    Detail:
    NetConnection.Call.Failed: HTTP: Failed
    I checked with the administor and this is an error with the
    transparent web proxy. (I work under MacOsX)
    I don't know if I can specify the proxy configuration
    somewhere. Please find below my service configuration file :
    <services-config>
    <services>
    <service id="amfphp-flashremoting-service"
    class="flex.messaging.services.RemotingService"
    messageTypes="flex.messaging.messages.RemotingMessage">
    <destination id="amfphp">
    <channels>
    <channel ref="my-amfphp"/>
    </channels>
    <properties>
    <source>*</source>
    </properties>
    </destination>
    </service>
    </services>
    <channels>
    <channel-definition id="my-amfphp"
    class="mx.messaging.channels.AMFChannel">
    <endpoint uri="
    http://www..nouveausens.fr/Services/gateway.php"
    class="flex.messaging.endpoints.AMFEndpoint"/>
    </channel-definition>
    </channels>
    </services-config>
    Someone had this problem ? or can help me ?
    Thanks a lot,
    Marc

    maybe because
    http://www..nouveausens.fr/Services/gateway.php
    has 2 points after
    http://www. :-)

  • Flex - AMFPHP - Transparent Web Proxy

    Hello,
    I developed a Flex3 application with AMFPHP to communicate
    with PHP. At home no problem everything work but when I try to my
    office I have this type of error sometime :
    code:
    Channel.Call.Failed
    Message:
    error
    Detail:
    NetConnection.Call.Failed: HTTP: Failed
    I checked with the administor and this is an error with the
    transparent web proxy. (I work under MacOsX)
    I don't know if I can specify the proxy configuration
    somewhere. Please find below my service configuration file :
    <services-config>
    <services>
    <service id="amfphp-flashremoting-service"
    class="flex.messaging.services.RemotingService"
    messageTypes="flex.messaging.messages.RemotingMessage">
    <destination id="amfphp">
    <channels>
    <channel ref="my-amfphp"/>
    </channels>
    <properties>
    <source>*</source>
    </properties>
    </destination>
    </service>
    </services>
    <channels>
    <channel-definition id="my-amfphp"
    class="mx.messaging.channels.AMFChannel">
    <endpoint uri="
    http://www..nouveausens.fr/Services/gateway.php"
    class="flex.messaging.endpoints.AMFEndpoint"/>
    </channel-definition>
    </channels>
    </services-config>
    Someone had this problem ? or can help me ?
    Thanks a lot,
    Marc

    maybe because
    http://www..nouveausens.fr/Services/gateway.php
    has 2 points after
    http://www. :-)

  • Data services for connecting 2 mysql bases

    Hi all,
    I start to learn the php services function for mysql querry in flex 4.5 and all seam to be ok.
    But i don't find anny help or tutorial to create service that call a sql querry with joint to tables, like this :
    Select table01.fieldA table02.fieldA WHERE table01.fieldC LIKE table02.fieldC
    Are there a way to do that in flashBuilder creation services interfaces, or not ?
    Does we make a special value Object and all the AS3  classes and not use the template opperations ?
    Thank's for your help or link
    fbm

    matamel, thanks for the reply.
    The point is that there the app does not crash, so there is
    not much information in the log.
    First, after the execution of
    public var model : ShopModelLocator =
    ShopModelLocator.getInstance();
    there is a log message: "didn't find all selected items"
    and later after execution of
    CairngormEventDispatcher.getInstance().dispatchEvent( new
    CairngormEvent( GetProductsEvent.EVENT_GET_PRODUCTS ) );
    there is a message issued by
    Alert.show( "Products could not be retrieved!" );
    So there is not much to analyze so far.

  • Problem About using AMFPHP 1.2.1 Version

    Hi Everybody,
    First of all I would like to thanks to all of the developers
    who open the Flash Remoting for open source source world.
    So I download the AMFPHP 1.2.1 version. So I install the
    AMFPHP to my local environment and test the gateway by accessing
    the gateway.php. Everything is work fine. Then I move to the hello
    world tutorial and test is ok in my local environment(
    http://localhost).
    Then I upload all the files to the live server and test the
    gateway.php. it work fine.
    Then I change my gateway url to
    http://eallth.com/flashservices/gateway.php
    in flash movie and test the same flash file but unfortunately it
    didn't work. In flash output panel it gives me an error "Error
    opening URL "
    http://eallth.com/flashservices/gateway.php"".
    I am using Macromedia Flash Professional 8. But I coudn't
    solve the problem. There is no error in the NetConnection Debugger
    panel.
    For your reference and test purpose I list the urls to Flash
    remoting gateway and url to download ZIP file which include the php
    class file and amfphp_prod_test.fla file. Please check these URLS.
    URL to Flsh Remoting gateway:-
    http://eallth.com/flashservices/gateway.php
    URL to Service Browser:-
    http://eallth.com/flashservices/browser/
    URL to Services directory:-
    http://eallth.com/flashservices/services/TestService.php
    URL to Download ZIP file (contains
    amfphp_prod_test.fla,TestService.php in services folder):-
    http://eallth.com/amfphp_test.zip
    Please help me to solve this problem. thanks.
    Anuruddha

    hi,
    i have an idea where the problem could come from.
    I'm working on a project with flash 8/amfphp/mysql.
    In apache : "Listen 192.3.3.30:80"
    "Listen 127.0.0.1:80"
    in fla : gateway :
    http://192.3.3.30:80 (localhost
    works fine too)
    I took a look at your files. indeed, there's a problem with
    the gateway, even it's functioning.
    You've tried the IP address instead of eallth.com ?
    What happens if you try to put "localhost" back again as
    gateway?
    I tried such things in the past but don't remember how flash
    reacted.
    What's your apache config? ( I had troubles with that
    before)?
    Do you do the test online? Or locally with online gateway?
    Oh, I forgot another thing... Replace all " " with ' ' (
    double to simple). That can help too.
    tell me

  • Indesign Script Opening Flex App / Tab Handling

    Hi,
    I am working on a  FlashBuilder 4 application that is opened from, and interacts with, an  Indesign CS4 .jsx script. I have added a TitleWindow that  provides for login processing (there is a backend database) to the Flex application. The login  window is opened from the method that is registered as the  initialization method for the Flex application. The flow works nicely.  The application, with its presentation of a TabNavigator holding the  core panels, visually appears then the login TitleWindow opens modally.  The id / password is entered, then the web service is called that  handles verifying login. The event handlers that receive the callback  from this then populate the controls on the application if the user is  verified.
    The problem I am having is with tabbing on the  TitleWindow. No matter what I do (tabEnabled / tabIndex settings, etc.) within Flex,  the TitleWindow will not receive tab presses and react to them. Tabbing  seems to cycle through the Indesign application in the background.
    From a  ScriptUI perspective the Flex application is opened as a Window (I've  tried Palette with similar results. I need it to be non-modal). Not only does the first tabbable  field not get focus, even when explicitly coded to do so, if you try to  tab off of it, which doesn't work, then click on the  second field on the TitleWindow to force focus, the first keystroke you type into the text field is ignored.
    If  I test the application from FlashBuilder directly, without being invoked  as a ScriptUI Window / FlashPlayer, the first field gets focus, tabbing  works, etc.
    Can anyone tell me how to make the login window behave such that I can set focus on field 1 and have it respond to tab  presses to cycle to the second field? Is there something I should do in the FlashBuilder application's invocation within the .jsx?
    Here are the operative lines from the script:
    var res =
    "window {        \
        fp: FlashPlayer { preferredSize: [1100,650], minimumSize:[800,450], maximumSize:[1200, 850] },    \
    var importFlashWindow = new Window (res,"Import Stories", undefined, {resizeable:true, independent:true});
    importFlashWindow.onShow = function(){
        var movieToPlay = new File (mySWFFile);
        try {
            //This function must be declared before the swf file is loaded as the flex panel calls it
            //from its init method.
            this.fp.getBaseUrl = getBaseUrl;
            this.fp.loadMovie(mySWFFile);
            //etc.
    I have posted the same basic question in the Flex / FlashBuilder forum with no response. I'm hoping someone here might know what I need to do to get the FlashBuilder application to receive the tab presses instead of the Indesign application behind it.
    Any help appreciated.
    Thanks,
    David

    Hi All
    I'm doing somthing similar.
    I have many textArea in my SWF file and I can't copy and paste text in it using shortcuts.
    If I paste contents using the Indesign menu commend, all works fine.
    Someone can help me?
    thanks
    Ivan

Maybe you are looking for

  • Server 2008 crash - black screen with mouse cursor

    dell poweredge 2950 with Perc 5/I RAID, ESXi 4.1 host, Windows Server 2008 R2 SP1 VM After swapping out a failed raid5 drive this vm began displaying inpage operation error popups while checking folder permissions.  event viewer errors:  The file sys

  • Persistent VPN between PIX 501 and ASA 5505

    I am a networking newbie with 2 small retail stores. I would like to create a persistent VPN between the stores. I already have a PIX 501 firewall, and I am looking at getting an ASA 5505. Would I have any problems creating a persistent VPN between t

  • Multiple errors in Apex 3.1.1 help (EBS mod_plsql issue?)

    Hello everybody, I am having a couple of problems with the online help in Apex and I cannot figure out how to solve them. First problem: Whenever I open the help from the Application Builder I get an error "Forbidden You don't have permission to acce

  • My formatted with videora video will not transfer from itunes to ipod??????

    PLEASE HELP ME I HAVE BEEN THROUGH HOURS OF FRUSTRATION GOING THRU THE INTERNET TRYING TO FIGURE THIS OUT. i DOWNLOADED VIDEORA FROM THE INTERNET, THEN I TOOK THE VIDEO I DOWNLOADED FROM LIMEWIRE AND FROMATTED IT WITH VIDEORA THEN I PUT IT ON ITUNES

  • Problems with Basic 3D Filter in Motion 2.0.1

    Hello helpful people, when I apply the Basic 3D filter to a layer the layer becomes a little fuzzy. With no settings on the filter changed. If I put the filter on only a piece of the middle of the timeline my object goes from sharp to fuzzy and then