flex

Flex: Create custom stroke on LineSeries?

You can easily set a stroke on a line series like this: <mx:LineSeries yField="apple"> <mx:lineStroke> <mx:Stroke color="0x6699FF" weight="4" alpha=".8" /> </mx:lineStroke> </mx:LineSeries> This will set alpha for the entire stroke to .8 But I want...

Zend AMF implementation and AMF protocol security

I have a Flex frontend connecting via RemoteObject to Zend Framework's Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework). Some ways I can address security are as follows: I can address TLS by using mx.messaging.channels.SecureAMFChannel in...

Flex: Forcing an array to contain only a specific class?

I'm trying to create a class that contains an array. However i want to require that the items in the array are themselves of a specific class. Im told there is some sort of tag you can add to do this, but for the life of me i cannot find what it is. What i hope for is something like: public class myClass{ public var foo:String; ...

Custom Event Not Captured- why?

I am having a problem where I dispatch a custom event but the listener does not receive it (i.e. myHandler() in the code below). If I put everything in one mxml file, it works. When I separate the responsibilities in to separate classes, it fails. It is not clear to me what I am missing. Any help you be appreciated. Here is my code ...

horizontal scrollbar issue on list and tree component

Hi In the following example there is no horizontal scrollbar shown. As soon as I change horizontalScrollPolicy="auto" width horizontalScrollPolicy="on" it works fine. Anyone an idea whats wrong with this example? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <m...

Flex TextArea Unicode chracters with control key

Hi Experts, I am developing a Flex based window application. In that I have used a textArea, Now when I type some characters like ctrl+b, ctrl+e or ctrl+q, it shows some square characters in text area, I think these are some unicode characters but why these are being entered. Unlike in simple textArea control on adobe example when I pr...

Populate a datagrid from a Loop

I'm just starting to learn flex and AS3 I'm trying to get information into a datagrid that originates from a mathmatical formula. For example if I have 100 and I subtract 5 from it and continue to do so until it reaches 0 so my grid would be something like: 100 | -5 95 | -5 90 | -5 ... ... 5 | -5 0 I'm guessing that it needs to do so...

What is a good 3D library for Adobe Flex?

I need a 3D library that works well with Flex... NOT Flex Builder - the free Flex SDK. ...

Possible to have Flex dataTips on Canvas rather than Chart objects?

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDa...

How to reference Flex elements added during runtime?

This feels like a newbie question, so brace yourself. I am having difficulty getting a reference to elements added after compile-time using the 'id' property. I have seen a few forum topics suggesting that this isn't possible, and that getting a reference to elements added this way is trickier, but never just exactly what that trick is...

How can I programmatically enter the edit mode in a Tree Control inside a Flex Application

Hi everybody, I have a Tree Control inside my Flex Application which I want to edit on a doubleclick on a tree item. I found the properties doubleClickEnabled="true", doubleClick="startEditMode()", and editable="true". With these functions I can detect a double click and I can change the editable property to true based on a double click...

Speedup setTextFormat()

Hi, i've a text with a very long list of words to highlight and calling setTextFormat() one for each word takes ages. There's some way to speedup this operation ? i've tried with a TextField not instantiate in the DisplayObject's list, to bypass the rendering stage but i've founded that the performance are the same. Any ideas ? ...

underline line thickness always one pixel...

...regardless of font size. Its an mx:Text object. (The Text object is actually being used as a mask so don't know if that's the problem.) If underline is set with the <u> tag in Text.htmlText, or Text.textField.setTextFormat, the underline thickness is always just one pixel which is not acceptable. (There are other problems with <...

How do I create variable paths using e4X?

I need to know how I can parse a variable path in Flex 3 & e4X. For example, I have two XML strings where the name of one element is the only difference. <NameOfRoot> <NameOfChild1> <data>1</data> </NameOfChild1> </NameOfRoot> <NameOfRoot> <NameOfChild2> <data>2</data> </NameOfChild2> </NameOfRoot> Cu...

Exporting MXML using Flex

I've been having trouble exporting Adobe Flex using Adobe Air. I can't find the runnable application Air, and so when I export something to be opened in air it can't be opened. I'm on a Mac Powerbook G4 running OS 10.5.8. Help? ...

underline cont.

This is a continuation of the question below. Basically I discovered its no problem at all to draw lines or shapes or whatever directly onto an mx:Text object using its graphics property (Text.graphics.lineTo, etc.). If just displaying that text, then any such drawn lines are displayed as well. However, if that Text object is used a...

Building a SWC from IntelliJ Idea without resorting to ant?

First, here's what I want to do: * Compile my library code into a SWC * Do not staticly link the Flex framework At first, I tried just setting up a Flex module, clicking the "library" and "use framework as an RSL" buttons. This however doesn't compile any of my code into the SWC, and it basically just compiles a new SWC of the entire ...

RTMP with between Flex and C# using FluorineFx

Hi, We have an application that uses messaging to send real time data to the flex client from .NET (this data is real time status of some devices). I have three different classes that serve real time data of three devices that are connected (this may increase in future). I call these functions when the page is initialized in Flex and wh...

Flash as3 process XML Doctype Entities

Hi there, i've got a XML similar to the following example: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE descriptor-layout [ <!ENTITY prefix "http://www.myurl.com" > ]> <xml> .... </xml> the prefix Entity is used in several tags like this: <child src="&prefix;/mypath/mydata.xml" /> So my question is, wether there is any...

Drag&Drop in Advanced DataGrid

Hi, I have a Advanced DataGrid for displaying the number of rows from the Database and one row strictly should not allowed drag option. Is is possible? Please share one sample example. Thanks, Ravi ...