flex

Does window.open not work inside an AIR html component?

I have a component in AIR like so: <mx:HTML id="html" width="100%" height="100%" location="https://example.com" locationChange="dispatchLocationChange(event)" /> The page it loads contains this: <a onclick="alert('onclick')">Alert</a> <a href="javascript:alert('js')">Alert</a> <a onclick...

Flash: How to dispatch a click event at the top of a loaded .swf?

So I'm trying to build a tool that will allow me and other users to all open the same .swf, and then I as the Admin user am able to interact with mine while they all see my mouse movements and button clicks etc on theirs. I'm using BlazeDS to manage this and I'm getting data sent back and forth etc - no difficulties there. The issue I'm...

Acess itemRenderer in List

How to access List itemRenderer and its properties (Spark - Flex 4)? I want to iterate through list and do something like (note it's pseudo code): for (var i=0;i<NUMBER_OF_ITEMS_IN_LIST; i++){ myList.getItemRenderer[i].property } ...

Dynamic Google Maps API InfoWindow HTML Content

I am working in Flash Builder 4 with Google Map's ActionScript API. I have created a map, loaded some custom markers onto it and added some MouseEvent listeners to each marker. The trouble comes when I load an InfoWindow panel. I want to dynamically set the htmlContent based off of information stored in a database. The trouble is tha...

How can I programmatically display a dataTip in a Flex 3 chart (without hovering with the mouse)?

I would like to show a dataTip on a flex chart by setting the selectedIndex property of the AreaSeries. For instance, if selectedIndex = 2, then a dataTip appears over the third item in the series. Is this possible in Flex 3.5? Thanks. ...

Determining linkage dependencies in Flex applications

I have a large Flex project with two Applications in it. A lot of code is shared between these Applications. However, the smaller of the Applications does not require much of the code that the larger one does. I'm trying to ensure that code that isn't required by the smaller application isn't getting compiled into it. Is there an easy w...

[Flex 4] Anyway to change the style of datagrid??

Hello I am trying to change the header color and the row color of the datagrid. Apparently, its not a spark component so can't apply skin on it. Anyone knows how to style it? Thanks. ...

Reading xml within xml as String in flex/AS3

I'm getting XML input that looks like this <?xml version="1.0" encoding="utf-8"?> <data1>this is data 1</data1> <data2>this is data 2</data2> <data3> <3a>this is data 3a</3a> <3b>this is data 3b</3b> <3c> <TextFlow xmlns="http://ns.adobe.com/textLayout/2008"&gt; <p direction="ltr" > ...

Flex HTMLLoader component not raising mouseDown events for all mouse clicks

I have built a Air 2/Flex 4 kiosk application with Flash Builder 4. Currently I am implementing a touch screen browser to enable users to navigate company training videos. In an attempt to improve the usability of the website on the touchscreen I have placed the HTML component in an adaption of Doug McCune's DragScrollingCanvas (updated ...

Flex datagrid headerColor style is not working....

Hello guys. I am trying to change the datagrid header color by editing headerColor style. I could change the font size, font family...etc except the headerColor. Would someone help me about it? Thanks a lot. My code Mxml <mx:DataGrid id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{cityinfoRes...

How do I skin an Adobe Flash Player Settings pop up and is it even possible?

I am trying to create a professional chat application using Flex. Unfortunately, the security window that pops up asking the user to allow or deny the application access to the web cam, (the Adobe Flash Player Settings Window) doesn't really look that great and I'd like to be able to skin it. I'd really love to make this window look n...

Flex Error:- 1151: A conflict exists with definition obj_inst1 in namespace internal.

I have wrote a function like , private function addSelectedFunc():void { /** * Adds newly selected privilegs to assignedPrivileges */ var obj_inst1:Array = obj_inst.selectedItems; for each(var obj_inst1:Object in obj_inst1) { objInstance1Array.addItem(obj_inste); } } <ov:HPList id="obj_inst" ...

Flex: Constant strings in metadata

I have something like public class Controller { [Observer("fetchEmployeesEvent")] public function fetchEmployees() : void { //doSomething } } and I want something like public class Controller { public static const FETCH_EMPLOYEES_EVENT : String = "fetchEmployeesEvent"; [Observer(FETCH_EMPLOYEES_EVENT)] ...

Flex 4: Traversing the Stage More Easily

The following is a MXML Module I am producing in Flex 4: <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()" layout="absolute" width="100%" h...

amCharts issue with Flex

HI I am working with amCharts at the moment and was wondering if somebody could give me some sort of guidance on the matter. I am using Flex to call a server side php file which then returns some xml data. This works perfectly and efficiently. I then add this data to the chart will also works quite well. However as I try to use the scrol...

Paste image from clipboard in TinyMCE

I need to be able to paste an image from the clipboard into TinyMCE. I do not want to use a Java applet, hence http://lassebunk.dk/2009/08/04/clipboard-java-applet/ would not help, but I want to use Flash / Flex / AIR. Of these three, only AIR has functions to get images / file objects from the clipboard. I am working on Drupal to creat...

Min. Flex Module size is ~30kb and contains Framework classes. How to remove them?

Compile the following module with all framework SWC-s excluded in release mode in Flex 4: <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"/> The SWF size will be 35,658 bytes. Now generate link report via -link-report for this SWF and load it...

I/O between AIR client using Native process and executable java .jar

I am using Adobe AIR 2.0 native process API to launch a java executable jar. I/O is handled by writing to the input stream of the java process and reading from the output stream. The application is event based where several events are fired from the server. We catch these events in java code, handle them and write the output to the outp...

Flex: How to scroll page to bottom?

Hello; I have a Flex application, I want to scroll the page to bottom when a button is pressed. Scroll bars is added by browser, they do not belong to flex app or component. I can do this by javascript but is there a way to do this with action script? Thanks. Enes ...

How to detect all the browsers that are installed in a system?

Hi guys how to detect all the browsers that are installed in a system.By using Flex ...