Data Communication between flash 8 and php (facebook)

I do have knowledge on php and flash 8. But it is my first
time in trying to analyse the facebook architecture and have to
admit I am a bit confused. Ok I have figured out the communication
part between php and facebook but I failed to understand the
communication when flash 8 comes into the picture.
1) Client logins in to facebook (Client PC -> Facebook
Server)
2) Client click on my game application and waits (Client
Request->Facebook Server->My Server)
3) My php script checks for client audentication using
facebook params and load flash 8 application to client PC via
facebook iframe OR FBML (My Server (.php) -> My Server (.swf)
-> Facebook (Iframe or FBML) ->Client PC)
4) Client starts to play.
----------> Ok step 1 to 4, I know how to do it. But it is
this following that I am confused.
5) Client make some changes in the flash 8 application (For
example: He is preparing for an invasion and have included total
soldiers needed and generals needed and click 'invade') and click
the button to save the datas to my server. The problem here is how
to do this while ensuring $fb_params is consistent?
(a) Can I just use sendandload via POST and my php side will
received the POST data as usual($_POST['soldiersneeded'])? Or do I
miss out anything?
(b) Can I use amfphp as usual so as to prevent the
application from refreshing itself everytime it loads in the new
data?
Hope there is a facebook expert who could explain to me in
regards to this problem. Please do take note that I am using flash
8 and not CS3 or CS4. Thanks in advance and have a nice day
everyone! ^_^

Have you read this manual?
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

Similar Messages

  • Data Communication between flash and different applications

    Is there a way to communicate between two different
    standalone applications, without using a HTTP server ?
    for eg: from Flash to JVM

    hi,
    I want to communicate between flash exe and director exe
    using local
    connection object. Can anybody help me in this, by telling
    the code for it. I
    tried a lot using it by different ways but I am not succesful
    in it yet
    Thanx in advance
    ANSWER :
    you should make an action script to the animation & etc.
    you made in your FLASH by a name as like as this : (I made a pause
    Button & named it gPause);
    on (release) {
    getURL("event:gPause");
    and then in youe director file make a MovieScript including
    the following code :
    on startMovie
    member("name of member you imported from Flash as swf. file
    ").model("Bip01").bonesplayer.pause()
    end
    on gPause
    member("name of member you imported from Flash as swf. file
    ").model("Bip01").bonesplayer.pause()
    end

  • Is there any way to spy the data communicating between the GPIB and the PC.

    HI
    I have a device communicating with my PC using IEEE 488 GPIB card. Do we have any way to spy the data exchanged by the device and the PC running a different application.
    I am trying to program an application that needs to gather data from a HP 54602A - 150 MHz - 4 Channel oscilloscope using a IEEE 488 add-on card. I am able to talk to the device and request the device number through MAX. I need to know the other commands to the oscilloscope. Can any one help me in this regard.
    With Regards
    S.Gopal

    Launch NI Spy (Start >> Programs >> National Instruments >> NI Spy). You may want to configure it to capture 64k of data instead of 64 bytes since the strings sent to the device may be larger than 64 bytes.
    Start capturing with NI Spy and then run the application. All of the calls made to the device will be captured in NI Spy. You can then look at the data buffers to determine what strings are being sent to your device.

  • Communication between flash and Director

    hi,
    I want to communicate between flash exe and director exe
    using local connection object. Can anybody help me in this, by
    telling the code for it. I tried a lot using it by different ways
    but I am not succesful in it yet
    Thanx in advance

    hi,
    I want to communicate between flash exe and director exe
    using local
    connection object. Can anybody help me in this, by telling
    the code for it. I
    tried a lot using it by different ways but I am not succesful
    in it yet
    Thanx in advance
    ANSWER :
    you should make an action script to the animation & etc.
    you made in your FLASH by a name as like as this : (I made a pause
    Button & named it gPause);
    on (release) {
    getURL("event:gPause");
    and then in youe director file make a MovieScript including
    the following code :
    on startMovie
    member("name of member you imported from Flash as swf. file
    ").model("Bip01").bonesplayer.pause()
    end
    on gPause
    member("name of member you imported from Flash as swf. file
    ").model("Bip01").bonesplayer.pause()
    end

  • What are the differences between Cartweaver CF and PHP?

    I am on my final step of finishing the webpage that I am building and saw Cartweaver for a shopping cart that is compatible with dreamweaver. But I looked into the site and hey didnt give an explanation between the CF and PHP version. So I would like to know the differences and which one would work best with Dreamweaver Cs6.

    Hi Kendall,
    As far as application differences, functionality wise, there is no difference. Both Cartweaver 4 CF and Cartweaver 4 PHP function and present themselves exactly the same. As far as implementation there are very subtle differences due the the way CF and PHP work, but they both are very close and use "includes" to place the Cartweaver functionality in your site penetration pages.  The web based store admins work exactly the same for both.  So you get the same results no matter which direction you go.
    Now what is the difference between PHP and ColdFusion?  That is a very important question as it will impact what platform you use from now on - for this site, and possably future sites you build so this is worth taking a little time to consider.
    Which is best?  Well this could lead to a discussion like which is best Mac or PC?  There are evangelists and zealots on both sides. The real truth of the matter is both are good choices, you just need to decide which is best, for you.  One poster said "what does your host support"  -  good point, but if you are new to working with dynamic web sites and are deciding what platform you want to go with there are more important factors to consider than what your current host supports. You can always select a different host.
    The biggest difference between CF and PHP is they way they are written - PHP is script pasted, much like JavaScript, CFML is tag based much like html. Because of this CFML is often a little easier to learn because it's a bit easier to look at something and figure out what it's doing.  So you may want to take a little time looking at this aspect. 
    Fact is though, with either one because Cartweaver does the vast majority of anything to do with code for you, learning the language is something you may not choose to do anyway.  An advantage to PHP is that it has much wider support, so finding developers to help out, or hosts can easier with PHP. So if you don't have any desire to dig in and learn code as you go and only want to learn what's necessary to get your shopping cart site up, then the steps and learning curve are pretty much the same and PHP may be a good way to go.  If this raises more questions than it answerers, let me know I'd be happy to discuss this more with you offline.
    So, back to the basics - from a functionality point, they are both the same. You only need to choose which platform you think will work best for you and go from there.
    I hope this helps. If you have any other questions at all, ask away.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Communication between non SAP and SAP

    HI,
    do you have some information about communication between non SAP and ERP (WebAs) SAP System ?
    I would like to receive an xml file or xml IDoc from a Java Plattform (non SAP) into our SAP ERP System as an own defined IDoc.
    remember: we don´t have a converter like XI.
    What about using a proxy (do you have some information/blog how to use that) ?
    What about using a webservice (do you have some information/blog how to use that) ?
    What about storing the xml on the application server (do you have some information/blog how to use that) ?
    How to transform xml to IDoc ?
    other methods ?
    Thanks for your help.
    Gordon

    Here is a link to connecting MS SQL Server with SAP using Open Hub connection.
    http://msdn.microsoft.com/en-us/library/dd299430(SQL.100).aspx
    This might give you some insight into connecting with Non SAP Systems.
    I have used the information from this link to export data from SAP to MS SQL Server.
    Good Luck.
    MP.

  • Remote Desktop cannot verify the identity of the computer because there is a time or date diffrence between your computer and remote computer

    Hello.....
    I'm not able to log into Windows Server 2008 r2 server thorugh Remote Desktop connection, receiving below error message.
    This issue is with only three servers in the environment
    "Remote Desktop cannot verify the identity of the computer because there is a time or date diffrence between your computer and remote computer......"
    The date/time is correct on the server when i checked in the console session of the server
    Can see below messages in event logs
    Event ID 1014:
    "Name resolution for the name XYZdomain.com timed out after none of the configured DNS servers responded."
    Event ID 1053:
    The processing of Group Policy failed. Windows could not resolve the user name. This could be caused by one of more of the following:
    a) Name Resolution failure on the current domain controller.
    b) Active Directory Replication Latency (an account created on another domain controller has not replicated to the current domain controller).
    Any thoughts ....

    Hi,
    Have you tried to connect these three servers with IP address instead of computer name or DNS name?
    Check Remote Desktop Connection settings: Option-->Advanced-->Connect from anywhere-->Settings-->Connection Settings-->Select “Do not user an RD Gateway server”
    For more information please refer to following MS articles:
    Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer
    http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/c1f64836-5606-49b0-82eb-56be7f696520
    Cannot connect via Remote Desktop
    http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2general/thread/5087e897-8313-468c-ad37-ef18b87d4dd6
    Lawrence
    TechNet Community Support

  • Error 2032 in communication between Flex Client and WCF

    Hi All,
    I'm trying to establish communication between Flex Client
    and WCF service.
    WCF service accepts gZip compressed data and returns gZip
    compressed results.
    So I used Flex ByteArray.compress() and
    ByteArray.uncompress() for this purpose. However, it throws error
    2032.
    The gZip compression/decompression uses MemoryStream class in
    C#. Based on my previous experience, memory stream communication
    between Flex and C# gives erro 2032.
    Is there a work around for this?
    Thanks,
    Vishal

    I read some thread in the forum, and found somebody had the similar problem with me. Just want to know how to settle this problem.
    In the client/server program. Client is a JAVA program and Server a
    VC++ program. The connection works, and the problem appears after some time. The Client sends a lots of requests to Serverm, the server seems receive nothing. But at the same time, the server is able to send messages to Client. The Client also can get the messages and handle them. Don't understand why there this problem and why it appears when it wants.
    The client is a Win2k platorm with JDK1.3.1 and the server is also a Win2K platform with VC++ 6.0.
    In the Client, using:
    inputFromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    outputToServer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
    Hope can get your help.

  • Flash cs3 and php problem (system error)

    Hi All,
    Been checking out a free utility, called Tell A Friend - followed the instructions to a t but still getting system error.
    Here is the php code:
    <?php
    $to = ($_POST['friend']);
    $link = ($_POST['link']);
    $subject = "Tell a friend";
    $message = "Your friend ";
    $message .= $_POST['name'] . " wants advice you the following link: ".$link;
    $headers = "My WebSite Name";
    if(@mail($to, $subject, $message, $headers))
    echo "answer=ok";
    else
    echo "answer=error";
    ?>
    The main swf has a main.as attached:
    * Flash Tell A Friend
    * http://www.FlepStudio.org        
    * Author: Filippo Lughi          
    * version 1.0                      
    package
    import flash.display.*;
    import flash.events.*;
    import flash.utils.*;
    import flash.external.*;
    import flash.net.*;
    public class main extends MovieClip
      private const PHP_URL:String="sendMail.php";
      private var checker:CheckEmail;
      private var timer:Timer;
      public function main()
       addEventListener(Event.ADDED_TO_STAGE,init);
      private function init(evt:Event):void
       removeEventListener(Event.ADDED_TO_STAGE,init);
       stage.frameRate=31;
       checker= new CheckEmail();
       addInputListener();
       addSendListener();
      private function addInputListener():void
       clip_mc.name_txt.background=true;
       clip_mc.name_txt.backgroundColor=0x999999;
       clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
       clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
       clip_mc.email_txt.background=true;
       clip_mc.email_txt.backgroundColor=0x999999;
       clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
       clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
      private function onFocusIn(evt:Event):void
       evt.target.background=true;
       evt.target.backgroundColor=0xFFFFFF;
      private function onFocusOut(evt:Event):void
       evt.target.backgroundColor=0x999999;
      private function addSendListener():void
       clip_mc.send_mc.mouseChildren=false;
       clip_mc.send_mc.buttonMode=true;
       clip_mc.send_mc.addEventListener(MouseEvent.MOUSE_DOWN,onSendDown);
      private function onSendDown(evt:MouseEvent):void
       if(clip_mc.name_txt.text!="")
        if(checker.initCheck(clip_mc.email_txt.text))
         sendEmail();
        else
         displayPhrase("Invalid Email");
       else
        displayPhrase("Invalid name");
      private function sendEmail():void
       clip_mc.send_mc.mouseEnabled=false;
       var variables:URLVariables=new URLVariables();
       variables.name=clip_mc.name_txt.text;
       variables.friend=clip_mc.email_txt.text;
       variables.link=ExternalInterface.call('window.location.href.toString');
       var request:URLRequest=new URLRequest();
       request.url=PHP_URL;
       request.method=URLRequestMethod.POST;
       request.data=variables;
       var loader:URLLoader=new URLLoader();
       loader.dataFormat=URLLoaderDataFormat.VARIABLES;
       loader.addEventListener(Event.COMPLETE,onMessageSent);
       try
        loader.load(request);
       catch (error:Error)
        trace('Unable to load the document.');
      private function onMessageSent(evt:Event):void
       var vars:URLVariables=new URLVariables(evt.target.data);
       if(vars.answer=='ok')
        displayPhrase("Message Sent!");
       else
        displayPhrase("System Error!");
       clip_mc.send_mc.mouseEnabled=true;
       clip_mc.name_txt.text="";
       clip_mc.email_txt.text="";
      private function displayPhrase(s:String):void
       clip_mc.display_txt.text=s;
       resetPhrase();
      private function resetPhrase():void
       timer=new Timer(1500,1);
       timer.addEventListener(TimerEvent.TIMER,hidePhrase);
       timer.start();
      private function hidePhrase(evt:TimerEvent):void
       clip_mc.display_txt.text="";
    Any help appreciated. This is a great viral marketing tool, when it ever works
    Kind Regards,
    Boxing Boom

    Never seen such an error, but if it's in the status bar of the browser then it shouldn't be Flash problem. You can check what's happening in your swf by creating a dynamic text field and setting it's text in every major action, that is: requesting PHP and getting back response, to what's just happened.
    So, on the Flash side you can see whether the browser error stops the PHP script and immobilizes further actions.
    What I'd do is create a new Flash file and PHP file and just send 1 variable to PHP, change it somehow and send it back to Flash and print it in a text field. That way you can check whether it's the method you're using to request PHP or just PHP or something else. Step by step adding complexity and checking on which of these steps the error occurs.
    I wish you good luck.
    Ps. It's probably a very rookie problem, we just don't know the source.

  • Data reconciliation between R/3 and the BW Systems

    How do we do data reconciliation between R/3 and the BW system for the following areas?
    Purchasing
    Controlling:
    Project System:
    COPA
    SD
    AP
    Trgards,
    Tony G

    Tony
    Have you looked these documents??
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/how%20to%20validate%20infocube%20data%20by%20comparing%20it%20with%20psa%20data
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
    Re: BW v. R/3 data reconciliation
    Hope this helps
    Thanks
    Sat

  • Communication between HP eprint and Google Cloud Print

    Hi,
    the communication between HP eprint and Google Cloud Print seems to be broken. At least for me.
    The documents do get printed when I print vio Chrome browser or Cloud Print dashboard -- but the status in cloud print remains as "submitted". It seems like somehow the HP eprint status doen't get reported back to cloud print. In HP eprintcenter the log says "printed".
    Well, I wonder who will take care of this problem ...  (Hope it will not result in fingerpointing only ...)
    Thanks for your support!
    Best,
    George
    This question was solved.
    View Solution.

    Are you able to log back in later and the status at Google Cloud print update to reflect the true outcome of the print job? Or does it just remain as "submitted". Otherwise, if it is printing and showing in the log at ePrint Center (EPC) as printed, the issue would not be on the ePrint side but on Google's
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Communication between a driver and application.

    Communication between a driver and application.
    I am writing a driver for a PCI card. I have found very good examples of how the driver should be build.
    Where do I find the information about how the user mode application should be talking the driver.
    So If you have any idea that will help me, please let me know.

    Hi,Sir
    This for your reference.
    It will create pci adapter device node at /devices .
    You can use AP function call ioctl to Communicate with your device driver.
    static int
    xxattach(dev_info_t *dip, ddi_attach_cmd_t cmd)
    int instance = ddi_get_instance(dip);
    switch (cmd) {
    case DDI_ATTACH:
    allocate a state structure and initialize it.
    map the device�s registers.
    add the device driver�s interrupt handler(s).
    initialize any mutexes and condition variables.
    create power manageable components.
    * Create the device�s minor node. Note that the node_type
    * argument is set to DDI_NT_TAPE.
    if (ddi_create_minor_node(dip, "minor_name", S_IFCHR,
    instance, DDI_NT_TAPE, 0) == DDI_FAILURE) {
    free resources allocated so far.
    /* Remove any previously allocated minor nodes */
    ddi_remove_minor_node(dip, NULL);
    return (DDI_FAILURE);
    * Create driver properties like "Size." Use "Size"
    * instead of "size" to ensure the property works
    * for large bytecounts.
    xsp->Size = size of device in bytes;
    maj_number = ddi_driver_major(dip);
    if (ddi_prop_update_int64(makedevice(maj_number, instance),
    dip, "Size", xsp->Size) != DDI_PROP_SUCCESS) {
    cmn_err(CE_CONT, "%s: cannot create Size property\n",
    ddi_get_name(dip));
    free resources allocated so far
    return (DDI_FAILURE);

  • Communication between the computer and the disc drive failed

    The disc can’t be burned because because communication between the computer and the disc drive failed (error code 0x80020022). This computer has been out of the box for less than a month and this has been a growing problem.

    My problem was FIXED at the apple store..... there was something wrong in the system preferences and the genius deleted something that recreated it's self. Surely enough we we're able to burn a 600 mb dmg of nothing onto a few test disks. For anyone having this issue...it's NOT The media, it's some configuration issue within the computer's preferences. I'm telling you all to take your machine to the nearest apple store and have them fix it, if your machine is still under warranty the fix is free. There was no hardware issue, so the optical drive was not replaced.

  • How can we do the data migration between Oracle Applications and SAP R/3.

    Hi All,
    How can we do the data migration between Oracle Applications and SAP R/3 system.What are all the possible ways to move bulk data from Oracle Apps to SAP r/3 system.
    Provide any 3rd party tools which supports data migration and also pls rpovide the SAP's own data migration tools with supports the above feature.
    Awaiting for best possible solution.
    Thanks in advance.
    Regards
    Dharmaraju

    the 3rd party tool is ETL , you can use ETL tool and the prepare the load files then you can use LSMW method to upload the data to SAP.

  • What's the Difference Between Flash Player and Shockwave?

    Hi,
    I was wondering what's the difference between Flash Player
    and Shockwave? And how do you know which one isn't working? I
    downloaded and installed Flash Player successfully but it did say
    that the plug ins might be in another file and may not work
    properly. There is one game that will work, but most everything
    else doesn't. I don't get pictures (like adverts, ect.) in my
    email. What is the problem?

    I have found this site helpful. Adobe has a "Test Adobe
    Shockwave & Flash Players" site. Here is the address:
    http://www.adobe.com/shockwave/welcome/

Maybe you are looking for

  • Problems with Pl/Sql JDBC

    Hello all , I have the following pl/sql function FUNCTION NEW RETURNS NUMBER(38) Argument Name Type In/Out Default? NAME VARCHAR2 IN PARENT_ID NUMBER(38) IN DEFAULT ITEM_ID NUMBER(38) IN DEFAULT LOCALE VARCHAR2 IN DEFAULT CREATION_DATE DATE IN DEFAUL

  • Updates not needed but marked as important

    I have 76 updates marked as imporant but when I click install: "Not needed" I know that you can do the updates manualy but coz the links are hard to find and sometimes imposible and coz they are 76 I wont do it manualy. I just reinstalled my Windows

  • Web service in Kava without Axis

    Hi, I need to build a web service in Java. I tried Axis API (version 1.3) from Apache foundation. It works but I fear that web service managed by Axis are slow. So I maybe can write my web service without Axis. How can I do this ? Is it possible ? Wi

  • Why do my custom swatches revert to RGB mode?

    Hi all, I'm a newbie to Illustrator. I have a few questions: When I create custom swatches, I choose the CYMK option in the drop down box. However, these swatches are appearing as "RGB" mode in my swatch palette. Why is that? How do I ensure my custo

  • Query language for XML that is going to remove use of database

    Friends, I want to know whether my idea is feasible or not. I want to make a query language similar to SQL for XML which is going to remove the need for database for a large extent. Their will be queries for making table,extracting data,making foreig