Flex-PHP application using LCCS

I need to create an LCCS video/audio/text chat application which will be deployed on a website with PHP as back-end. Only 2 people can comunicate with each other. There are a few questions I have related to this:
Do I need to create different rooms for each user chat as 2 users can chat at a time?
Do I need to create these rooms on the fly using the PHP classes in LCCS SDK to enable dynamic room creations?
How do I interact with Flex and these Rooms? Do I need to create some PHP services which after creating a room, send the data to Flex, which Flex uses to initiate the chat application?
Any help would be appreciated and it would be good if someone can share URL to similar tutorial or example.

Thanks to all those links and comments were really very helpful. Regarding the Wiki link, point 6.c and 6.d mentions that
For each user and from your own system, get an user ID, a username, and an assigned role.
Generate an authToken by passing the required parameters to getAuthenticationToken. The token is a unique, signed string created from the your shared secret, the user's ID and username, and their assigned role.
Here we need to generate user ID and username on server side? Also how do I define roles using server side scripting?

Similar Messages

  • Closing FLEX current application using AS

    I use the following code to close the current application using Action Script and JavaScript:
    var urlString:String = "javascript:window.opener = self; self.close();";
    var request:URLRequest = new URLRequest(urlString);
    navigateToURL(request, "_self");
    Then I got the message: SecurityError: Error #2121: Security sandbox violation: navigateToURL
    Is there a way to solve the problem or should I use another way to close the current application from AS.
    Regards,

    I have try your code and I got the message:
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    at Error$/throwError()
    at flash.external::ExternalInterface$/call()
    at Maj_Temps_SouthShore_Desktop/keyPressed()[C:\Projets Développement Flex\Maj_Temps_SouthShore_Desktop\src\Maj_Temps_SouthShore_Desktop.mxml:215]
    Regards,

  • Save data while closing Flex mobile application using HTTPService

    On close of the Flex mobile application I need to save some information to the back-end by using HTTPService.
    On creationComplete() of the application I am adding :
    NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExit);
    On close of the mob application, the following method will get call.
    private function onExit(e:Event):void
        httpServiceCall("log event data");
    The request itself is not reaching backend. I have tested this by installing Wireshark, there is no entry if I close the application in wireshark(wireshark will just catch any kind of requests from frontend to backend).
    I am introducing delay to achieve this :
    public var closeTimer:Timer;
                private function onExit(e:Event):void
                    e.stopImmediatePropagation();
                   httpServiceCall("log event data");
                    closeTimer = new Timer(3000,1);
                    closeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, closeApp);
                    closeTimer.start();
                protected function closeApp(event:Event):void{
                    NativeApplication.nativeApplication.exit();
    The above code is not working. As soon as control comes to onExit() method, application is closing.
    According to my understanding, I have to introducesome delay before closing the application to achieve this requirement. How can I introduce delay in this case?

    Try opening Task Monitor and killing any existing "adl" process before launching.
    Does this help ?

  • How to move ahead with the flex/php application structure

    Hi,
    Its been a week since I strated learning Flex. I am a regular php web develeper.  Since starting the flex learning I have got one thing there is no concept of "pages" in flex like in a regular php web site..there is "States".
    Now I have  this project requireing a login and then as per login user role different screens.
    Lets say three loging roles 1) teacher 2)Student 3) Admin
    Screens for each role will be diffrent as each have diffrent dashboard feature. I am confused with the structure i have decided is correct or not. Please review or suggest how to accomplish this.
    The main.mxml will have login form.
    it will have three states teacher, student, admin. and then these three will have sub states for particular roles features.
    While going to one book I read a  mxml file has atleast 1 state so can the structure be like this. (Is this possible or not)
    main.mxml will have login form
    three mxmxl files for teacher student admin and each will have statets for their respective features.
    Please reply. I am trying to find out by reading the documentation properly. But your guidance will speed things up and help me  understand things quickly.
    Regards
    Siddharth

    ultimately you want to be aiming to use a MVC structure
    but this is a good tutorial to get started.
    The later videos work through a login/logged in states example
    http://www.adobe.com/devnet/flex/videotraining.html

  • How to display data from local csv files (in a folder on my desktop) in my flex air application using a datagrid?

    Hello, I am very new to flex and don't have a programming background. I am trying to create an air app with flex that looks at a folder on the users desktop where csv files will be dropped by the user. In the air app the user will be able to browse and look for a specific csv file in a list container, once selected the information from that file should be displayed in a datagrid bellow. Finally i will be using Alive PDF to create a pdf from the information in this datagrid laid out in an invoice format. Bellow is the source code for my app as a visual refference, it only has the containers with no working code. I have also attached a sample csv file so you can see what i am working with. Can this be done? How do i do this? Please help.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="794" height="666">
        <mx:Label x="280" y="19" text="1. Select Purchase Order"/>
        <mx:List y="45" width="232" horizontalCenter="0"></mx:List>
        <mx:Label x="158" y="242" text="2. Verify Information"/>
        <mx:DataGrid y="268" height="297" horizontalCenter="0" width="476">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:Label x="355" y="606" text="3. Generated PDF"/>
        <mx:Button label="Click Here" horizontalCenter="0" verticalCenter="311"/>
    </mx:WindowedApplication>

    Open the file, parse it, populate an ArrayCollection or XMLListCollection, and make the collection the DataGrid dataProvider:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_08.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html
    If this post answered your question or helped, please mark it as such.

  • Flex + PHP Application - Change endpoint

    I need distribute my applicatión between many clients and i need change the endpoint in every they.
    I need any tip about this because i can´t create many "Export release build" with the configuration on _serviceControl.endpoint for every client
    I have Flash Builder for PHP 4.6
    best regards

    Pass it runtime viaflashvars or make a service and call the service for each client to return the proper endpoint.
    C

  • Display PDF document in Flex Windows application

    Hi,
    I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.
    Thanks,
    adi2010

    Hi Everyone,
    I got the solution for my issue.We need to use HTMLLoader to load the PDF documents in Windows aplication for Flex.

  • Display PDF from flex windows application

    Hi,
    I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application from a netwrok drive or local pc.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.
    Thanks,
    adi2010

    Hi ,
    The solution for the thread is
    <mx:HTML id="pdfHtml" location="test.html" width="100%" height="100%" />
    var pdfFile:File = File.applicationDirectory.resolvePath(pdfHtml.location);
        pdfFile = new File(pdfFile.nativePath);
        var fileURL:String = pdfFile.url;
        pdfHtml.location = fileURL;
    Thanks,
    adi2010.

  • FLEX / PHP Interaction

    Right now I have a tilelist with some stuff and I wanted to
    know if it is possible to make it when a key is pressed it connects
    to a php file updates something on the mysql db and then reloads
    the tilelist with the newly updated information?

    I have plenty of Flex/PHP examples using Remoting and AMFPHP,
    SabreAMF or WebORB for PHP on my blog at
    http://renaun.com/blog.
    You can also use Flex's HTTPService or WebService components
    to communicate to PHP.

  • Calling Apex Application using a php script

    Hi guys,how can i directly call my Apex Application using a php script.i have apex 2.1 intalled on my system.i created an application and i want my application users to connect directly to the applications login page.I mean somthing like this
    (http://127.0.0.1:8080/apex/f?p=103)
    and i want users to connect using somthing like this
    (http://my system/index.php) or localhost/index.php?
    i can run a script query and access my data stored on the database,but what i really want is to connect directly to the login page of my application,so that the staffs in HR can connect direstly to there HR application while those in Sales Will connect direcly to there applications page so it will look like this
    http://my system/hr.php
    http://mysystem/sales.php

    Originally, I had problems w/ the file being placed in
    C:/whatever.ext b/c I wasn't using relative paths.
    This is the code I use:
    $MAXIMUM_FILESIZE = 1024 * 1024 * 2; // 2MB
    $newFileLoc = "./wherever/file.jpg"
    if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE) {
    move_uploaded_file($_FILES['Filedata']['tmp_name'],
    "./temporary/".$_FILES['Filedata']['name']);
    rename( "./temporary/".$_FILES['Filedata']['name'],
    $newFileLoc );
    chmod( $newFileLoc, 0777 );
    Modified from this article by Adobe:
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=17_Networking_and_communications_173_6.html

  • How to use custom HTML page in flex web application with out using iframe

    Hi all,
              I have to import a custom HTML page (that has got links to another html pages) inside my flex web application and i dont want to use IFrame. Can you please suggest me with best example.
    Please help me out as i'm new to flex.
    Thanks,
    Swetha.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • Control Flex application using presentation clicker

    I am building an application using Flex and need the ability
    to navigate through a "table of Contents" list using a presentation
    clicker, similar to navigating through a powerpoint presentation. I
    have been searching through the forum most of the day and haven't
    come across any information.
    Any help would be greately appreciated.
    Thanks!

    This is not a support forum for Flex.
    Try asking your question on FlexCoders:
    http://tech.groups.yahoo.com/group/flexcoders/

  • [svn:fx-trunk] 5604: Ensuring qualified class names are used in type selector cache keys for Flex 4 applications .

    Revision: 5604
    Author: [email protected]
    Date: 2009-03-26 14:00:26 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Ensuring qualified class names are used in type selector cache keys for Flex 4 applications.
    QE: Yes, this should address style issues for test cases that contain two different components with the same local name.
    Dev: No
    Doc: No
    Checkintests: Pass
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • What is the best font to use for Thai Language in Flex Mobile Applications ?

    Hi
    I am facing issues with Thai language in flex mobile applications. I am using Tahoma font and facing issues in TextInput
    Whith Tahoma font text Offset setting to far from the starting of the text input .
    Can any one suggest me the best font to use with Thai language ?
    Many thanks in advance for your help .
    Regards,
    Kamal

    Personally, I prefer uncompressed TIFF or PNG.  But many times it won't matter ... you'll be dropping the images into an SD Sequence, so they will lose resolution on output.
    -DH

Maybe you are looking for

  • Google Voice not working. Is the blame with enabling Advanced Calling?

    Have any Verizon users had more than the usual amount of trouble setting up Google Voice for voicemail? I previously used Google Voice as my voicemail on my Galaxy Note 4, which required the standard workaround to get it working with Verizon (calling

  • Nokia 701 call screen lock feature?

    Hi nokia community, was wondering if there is call screen lock feature in nokia belle? Because i couldn't find it any where in my nokia 701, even there is no option to edit the normal lock screen or button? Why there are bugs and such small and impor

  • How do i Enable Active X for viewing ADVANCE CHARTS

    how do i do these steps-- open internet explorer tools (select Internet Options) Click Security Tab Select Internet Click Custom Level Active x Control plugins --- Enable

  • Default Value for a column in matrix

    Hi, How to set default value for a column in matrix which is of type combo(Yes/No). The cell has combo in it Manoj

  • To set minimum size of flash panel

    I am developing a flash panel in PS CS5. I have tried many way to set minimum size of panel window, but they don't work. I have not idea how to do this now. I'm waiting for your HELP. Thank YOU!