Flex :: Communication Between Two Apps?
Aug 11, 2009I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so.
View 2 RepliesI have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so.
View 2 RepliesWhat's the best way to communicate between 2 Flex/Flash apps on the same webpage? I need a 3rd party Flash app to call a function on my Flex 4 app (they are ready to customize their 3rd party app how I specify). I use ExternalInterface.call("javascript_function", arguments) extensively. I know there's a bridge to go from Javascript to Actionscript as well. So I guess I could go from their flash app -> javascript function -> flex bridge -> my flex app. Do I have to go through javascript? Is there a better way?
View 1 RepliesI have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...
View 1 Repliesim completely lost on how to do a simple multiline label. The docs say that labels are best used as single lined elements, but that alludes to it being able to do multiline if necessary. Anyone have any clarification on the subject?
View 3 Repliesbuilding a desktop app that can compile java, c, c++ files and display the results using the flex app
View 3 RepliesI have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from a server and then plays it. While downloading, it displays the "loading" screen.Its main defect is that it can load only one Flash application - the one which it is compiled for. Let's say it's named test1.swf.Is there any way to make the loader support more than one Flash app (for example test2.swf and test3.swf)? I mean by passing external parameters to it and not by creating another loader. Is using Javascript the only way to do it? I don't want my loader to require the Javascript support.
View 1 RepliesI know there have been similar threads in the past but I can't seem to find a decent definitive answer / workaround for the problem I'm facing.What I'm trying to do: capture ALT+SHIFT+something keyboard events. Pretty straightforward, right?
Issue: When pressing ALT+SHIFT doesn't seem to ever shoot an event. The only combination that seems to work with ALT is CTRL+ALT +something, as pointed out here.
Question: I've read that the browser catches some of the keyboard events, but this happens with the basic flash player too - maybe that catches events too? Would love to know if there is a solution that doesn't involve messing with JS.
Is it possible to have an AIR application built in Flex run as process or receive intents? For example if I wanted to make a calendar and each time there was an event at a certain time, have the AIR up which isn't running in the foreground, pop-up and inform the user that "it's time". Can it be done with the current stable versions of both AIR and Flex SDK?
View 1 Repliesi was developed one .net application. It contains flash animation in one of the asp pages. And i need to write action script code for playing and pausing that swf file. I am using flex builder3. However how can i execute the asp application from flex builder? How can i load asp page into mxml file?
View 1 RepliesI have a Flex app I built. It uses the BrowserManager class to listen for changes in the # part of the URL. When a change is made to the hash my application updates accordingly so you can link directly to a state of the application. Also inside my programming when a user clicks something, all I do is use the BrowserManager to update the # and then my listener will apply the correct changes once its finished. I believe this is the best practice way to doing this in Flex.
I have some issues though. When using the Back button in FF or IE, it gets "stuck". for example if the hash is like #state4 clicking the back button will take you to #state3 then #state2 but sometimes get stuck where you can be on #state3 click the back button, see it flicker to #state2 real quick then change back to #state3 preventing you from going back any further in your history.
[Code]...
I´m looking for any kind of information on this subject, kinda hard to find. I´m a ruby programmer and i´m looking for ways to create web apps with RIA, like Adobe Flex.
View 3 RepliesI've looked at a few demos from adobe that show apps built with Flex 4.5 running on iOS from simple list views to video capture. This has made me wonder if its an effective solution to build cross platform mobile apps.
For those of you who have taken Flex 4.5 mobile for a spin, what is your impression on the capability and performance on iOS. Is there anything you can't do with Flex 4.5 mobile that you couldn't with a native app? Are there any limitations?
I have two web applications written in Flex I would like to integrate. I would like one Flex app (let's call it application A) to invoke second Flex app (let's call it application B). Application A has access only to swf file of application B (not source code). When application A invokes application B, it should be able to pass some data to application B. After application B is invoked it should be able to pass some data back to application A. These two applications will be hosted on the same server, but will use different server code.
The easiest way of implementing this (or one of the ways to be more precise) would be to have UI element on app A (button, link, menu item, etc) that would invoke app B. But in that case, two Flex applications couldn't communicate directly (since only one is active at a time), and they would have to communicate through server code, which is something I would like to avoid.
In short application A should invoke application B, pass some data to it. Application B should do it's work, display some content, and have a mean of passing some data back to application A. I'm aware of LocalConnection, and I've seen similar question, but in that case I would have to have both application in the same browser window. This would be acceptable to some extend, but only if app B is contained in app A (not if they are both on the same HTML page). Would LocalConnection work in that case?
Do you have any recommendations on how to implement this kind of communication?
I always thought that separating the UI from the logic is the way to go like the use of class files in Flash CS3/CS4 or MVC in web frameworks but recently there are plenty of examples and posts using ActionScript embedded in MXML.
View 4 RepliesI've got an old flex builder 3 project that I imported into Flash Builder 4, and I want this project to run its web applications in my web browser. However, the apps persistently run in the Flash Player instead. This is causing no end of problems because of the flash player bug documented at [URL]..
View 2 RepliesI successfully did an application that uses Flex as a client as GAE as a backend.I would now like to public my application to a mobile device (galaxy tab) and still use my GAE application.
View 1 RepliesI have a task to make simple game that deployed as a facebook app using Adobe Flex. Like most facebook game, I need to show high score, compare score with friends and some other similar functionalities, which I think need some sort of database thing.
The problem is a had only little experience about database, only have tried simple things with MySQL and I don't know where to start.
I have an Actionscript 3.0 app that I've made using a trial copy of Adobe Flash Builder 4.5.
Now, Flash Builder license has expired. Is there any way to compile my code without using Flash Builder?
I read somewhere that there is a free compiler to do that. What about Flex? Is free? I can use my actionscript code with Flex
I need a custom multi-user multi-chatroom app to extend an existing Flex app that I have.
I obviously wouldn't like to develop it from scratch, but focus only on the customizations and integration.
Are there any products (free or commercial) that provide multi-chatroom functionality from which I could start?
My Flex person claims that now Flex can do for iPhone as well. Whereas my iPhone person says Apps done in windows environment cannot be acceptable by App Store. Does anyone expert in both can tell me real thing.
View 2 RepliesI keep getting an error when I try to run an app on BB Playbook that says Cannot create property editable on qnx.fuse.ui.text .StageTextInput.The same exact code works fine in Android and on the Flash Builder built in simulator, but errors on a physical Playbook and in the Blackberry Playbook Simulator. The area of code that seems to be causing the error is as follows:
<s:VGroup includeIn="login" top="10" left="10" right="10" id="loginForm">
<s:Label text="Email" />
<s:TextInput id="txt_email" width="100%" softKeyboardType="email" />[code].....
The popular debugging tool "Kap Inspect" [URL] Kap+Inspect Does this work with normal flash applications that have been built with Flash CS4 (and not Flex)? Their tutorials focus mainly on flex and mxml, etc.
View 2 RepliesOk, modules in Flex are popular but I have no idea why documentation and examples on the different uses of Flex modules can be so scarce.Anyway, for this question, I will take the classic Employee/Department example. I have a main.mxml that contains an mx:TabNavigator. Each tab is loaded by an s:ModuleLoader.Tables: Employees {empID,empName,deptID}, Deparments {deptID,deptName}The Tab Navigator contains only one tab (for our example) called Employee. I have an Employee.mxml module. In that module, I have a datagrid that is populated with Employee details. I use the getEmployees($deptID) function. This function, as you may guess, returns me an array of Employees who work in a particular department.
Outside the TabNavigator, I have a departmentDropDownList that is populated with departments.deptName.My objective is to load the Employee module when I select a particular department from the DropDownList. I have a changeHandler for the DropDownList that can give me the deptID.
protected function departmentDropDownList_changeHandler(event:IndexChangeEvent):void
{
MyDeptID=departmentDropDownList.selectedItem.deptID;
[code].....
Is there any way a Adobe Flash Builder could call methods from a java class? Without any servers? just like a API where i could call use methods from java clasees?
View 2 RepliesCan someone recommend me a good example of Adobe air and REST API communication and authentication?
View 1 RepliesI posted to the flash forum but really looking for feedback from flash, flex, AIR users as well.I'm looking for the forums thoughts and advice on which of Adobe's current technology set (CS5) is best suited for creating small interactive applications/packages by users who would not have any background in coding and very little interest in learning coding.
The idea is that users would know basic drag & drop development and maybe extend it to include some basic scripting to wire up elements of it. The ability to develope applications for a range of access points (website, mobile, desktop) would also an added benefit.The over arching idea would be to let the users create some apps/programmes/packages quickly on any topic they like but not bog them down with coding.Which CS5 technologies would be best for that
I use C# to read a string (BinaryReader.ReadString()) from the socket stream. But the problem is that flex doesn't writes the string in suitable format, so C# will be able to read that. C# reads a 7 bit encoded integer which indicates the length of the string, and just then reads the string. But flex doesn't writes a string in this format (I use socket.WriteUTF(), and even socket.WriteUTFBytes() didn't work), so C# can't read the string. Here's a little information of how C# reads/writes a string from a socket stream:
[URL]
I'm currently developing a Flex game which is a kind of table and cards game. Thinking about developing other games using entities from this one, I chose for creating my entities decoupled from the game and even from other game entities. As a result, I'm currently using events for communication between my game entities.
Game entities, in my case, refers for example a player hand component which can receive a card, or send a card to another unknown component by a custom requesting and dealing events. For instance, the same can happens to a deck of cards holder component. This approach appeared to be a good designer in the beginning, but after some time, my game controller class has a lot of event handler functions which started looking bad for me.
My current idea is to create a game event manager coupled with my game controller for handling events and cleaning the controllers code. Finally, I'm not sure about my design decision exposed above, so I would like to know about you folks which communication design would be indicated for this kind of a game.
I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we currently have; refresh buttons which have to be clicked to refresh data.So effectively the server needs to push data to the client when something changes. I can write the code that detects when something changes, but I'm not sure about the push side of things.
View 4 RepliesI have a Flex AIR app, and i am trying to get data from a Java Server. Can some one tell me if this approach will work?
Start a ServerSocket in Java and wait for a connection. Use Flex to connect to the same port. Write some data to the socket from Java Server. Read the data at the Flex end and process it.
I think i am able to get this working, but the data that i read back at Flex end seems to be empty.
My server code is :
socket = new ServerSocket(port);
client = socket.accept();
InetAddress address = client.getInetAddress();
[Code].....
My current problem is socket.bytesAvailable becoming 0 and therefore obj is coming up as "". So how to read data sent from the server using a Socket in Flex?