flex

Difficulty accessing Google Search API with Flex

Hi - I am trying to get the number of incoming links to a page through the Google Search API. It is not working (just returning Null) Here is the code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();" width="320" height="480" backgroundGrad...

Access a custom property in a custom class

Hi everybody, I guess I have a newbie question, but I couldn't work it out yet... package components { public class templateSelection extends VBox { static public var tempSelectionBag:Dictionary; public function templateSelection() { super(); } } } I want to have a custom class tempSelec...

Dispalying popup by clicking on cell

I have datagrid with data populated.when user clicks on one particular cell of one column ,popup window has to be dispayed.And also same requirment is there for another column also.I could not find how to do it for cell.doubleclick and click properties are applicable to row selection.Can any one give solution for this requirement. ...

Order of evaluation of conditionals in actionscript 3.0 (Flex)

var btn:Button; if(btn != null && btn.label != '') { mx.controls.Alert.show("d"); } In the above if clause, is it guaranteed that the first condition(btn != null) will be evaluated before the second condition? ...

Flex Cairngorm - How to update the model without losing focus in Datagrid ?

Hi, In my Flex Project using Cairngorm, I have a model that stores a bindable ArrayCollection displayed by a DataGrid. My problem occurs when the model is updated by the responder (from a Java service, after an "update" event), because the focus located in a cell of the DataGrid is lost (the scroll position il also lost). So, I retrieve...

How to make datagrid selection and hover effect (blue color) programmatically

Hi everybody, I have two datagrids which should do everything synchronic except the data entry. I already managed to make them scroll synchronic by using the scroll event. My question is now how to select a item of a datagrid only programmatically, and how to get the mouseover effect and underlining the corresponding row with a bright b...

Integrating Alfresco Flexspaces with JBOSS portal

We're working on a development of a JBoss portal. As part of the functionality, we need to integrate it with Alfresco, using a portlet. Both (portal and Alfresco) will connect to the same LDAP directory to get the users, to guarantee that the same users can access to both systems. Right now that part of the implementation is not complete...

Best way of generating revenue from a flex application?

Hi all, I'm currently in the planning stages of an app which I'm leaning towards Flex to build. I've looked at the market for the software, and am fairly convinced that in its niche, it should do well (potentially large market, and nothing really of note that compares with what I have planned). rWhat I'd like to know, as this would ...

flex and jsf access the same instance of bean

i integrate a flex app in a jsf-icefaces app (in a jspx site with the ice:outputmedia-tag) and want to access the same instance of a bean from flex by remote, that jsf inject. i already connect with blazeds to a java-bean. this bean - like all other beans - get other beans by injection of jsf, but when i access the bean by remote from f...

Flex: Replacing a node in a XML object

I have looked at some of the related posts on this subject but i can't figure out how to solve my problem. I guess it has something to do with the fact that its monday. Well, here goes. i have a XML object containing: <root> <page> <text> <style properties=""/> <label> Text one</label> </text> <te...

Adobe Air - packaging an air installation file with ant

I’m having problems packaging an air application with ant. Adobe references taken from: http://help.adobe.com/en_US/FlashPlatform/develop/air/building_apps/WS5b3ccc516d4fbf351e63e3d118666ade46-7f66.html I run ant using java classes inherited from org.apache.tools.ant.Task. This builds up the argument list for the adt tool e.g. Java ...

Fast way to set text format for a range of Text using TLF

Hi, i have to set the text format for some tokens in a plain text. I'm trying to use the Text Layout Framework to improve the speed of the operation but i've founded that TLF is far slower (10X in my tests) than the old setTextFormat(). For each token i call this function: public function setTextFormat(format:TextLayoutFormat, begin:int...

Find out if Flex component (tree) ist scrollable?

How can you find out if a Flex Component (in my case the tree) is scrollable? I tried it like this if (_listOwner.height < _listOwner.measuredHeight) { // so stuff } from within the tree's item renderer but didn't succeed. Access to the tree's scrollbar is private so that I can't get the info that way. ...

BlazeDS Servlet not responding through Proxy

Hi everybody, I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. :-) Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5. The Webapp is balze ...

Flex : Detect "tab" key press from the last cell of a DataGrid

Hi, In a Datagrid, how to detect when the user press the key "Tab" from the last cell ? With KEY_DOWN event the selected cell is unknown, with FOCUS_OUT we don't know the key pressed. Thanks in advance ...

flex datagrid custom tab behavior

Hello, I have two datagrids and I want to override the behavior of the tab-key event, so that it goes to the next datagrid, when the cursor reaches the end of the first datagrid columns. Any hints are appreciated! Markus ...

flash builder (flex 4): how can i add facebook-actionscript-api to my project

Hi. I'd like to write a program using the facebook-actionscript-api. The google code's website of facebook api shows that it provides .swc files for flex 3.4 or the sources. how can I add them to my Flash Builder project ? Do I need to compile the sources ? How can I use the swc file in my project ? any information regarding this sub...

Flex module no more a module when extended?

I have created a module in Flex like below: modules/ModuleBase.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"&gt; // components here </mx:Module> So far so good - when this file is saved ModuleBase.swf is generated. Now I extend the above and create another class: ModuleChild.mxml...

Flex + CheckBox + Dataprovider... quite possibly the easiest question you will answer today.

Hey All, Maybe I didn't get enough sleep last night but I am encountering a bizarre Flex 3.4 issue. Scenario: I have a class that acts a dataprovider to my entire application named "DataProvider.as": package { public class DataProvider { [Bindable] public static var email_enable:Boolean = true; } } In an mxml form, "S...

Get list of running processes, get active process (and it's application) Flex/AIR

Hello, just a quickie (or maybe not:] ): Is it possible to get somehow list of running applications/processes and, while running in background, check which process is active? Additionally - if somehow, the answer was yes, is it possible to react for change of active window / application react just as if it was Event, or bind to it cust...