flex

How do you change the filtering mode of images in a Flex application?

I have an Image control in my Flex application: <mx:Image id="img" source="@Embed('img.png')" percentHeight="100" percentWidth="100" /> Because the image is scaled, there are a lot of scaling artifacts. Can I change the image to use a different type of filtering? ...

htmltext of TextArea in Flex 3 disappears when embedding fonts!

hello, I have textArea which gets the text through user input in runtime. User input comes through Richtexteditor so it is html I save the html text from Richtexteditor to textArea's htmltext property. everything seems to be fine! till I try to embed fonts!! (I need to embed fonts because I apply a fade effect to the TextArea.) With em...

Number of items in a combobox in Flex

HI, How do i retreive the total number of items (count) of a combo box in Flex? ...

Managing the interval for horizontal axis in flex

Hi Guys, Em having one major problem with the graph creatio i.e. the data points of the chart (seen when you mouse over the chart) don’t line up with the position on the axis that they should, and are instead offset to the right by some variable amount so that they appear in the middle. No amount of trolling through the documentation p...

How can i implement AJAX functionality in Flex

Hi, I have a requirement like when I type 2 characters in email field if that email id exists in DB then I need to show remaining emails starting with those characters needs to display in dropdown list. Like Tags part in stackoverflow.com site, Is it possible in flex this functionality? Please suggest me thanks in advance ...

FLEX, VideoDisplay: how to autoload without autorunning

I'm using videoDisplay MXML component for my Flex app. I would like to autoload videos (in order to display the first frame) without automatically run them. What's the easiest way to do it ? thanks ...

Security behaviour in Adobe Air

Hi everyone! I am trying to load external SWFs in my Adobe AIR App. The loaded SWF is trying to access an URL to retrieve some informations via XML. When starting the SWF by itself it works fine. When loading the SWF from the File.applicationStorageDirectory i will get an Security-Error because the loaded App is executed in a local-with...

how to get highlighted item in flex 3 tree component?

hmm... subj! need to get item that is highlighted and add some listeners on it. the problem is that i don't know how 8( ...

How to create an image from array of pixel colors? (Flash, Actionscript 3)

I have a Width and Height parametr. I have been given an array of colors in such format: [r, g, b, a, r, g, b, a, r, g, b, a... etc] Data can be acsessed by something like this for(var y = 0; y < height; y++) { for(var x = 0; x < width; x++) { r = data[y*width + x + 0] g = data[y*width + x + 1] b = data[y*width...

imports and package structure in as3/flex

I've got a problem how to organise files and packages in AS3/Flex project. A short intro to the problem: The files structure in the project is (and should stay) like this: libs/Class1/src/<files> libs/Class2/src/<files> libs/Class3/src/<files> The amxmlc compiler source-path variable points to: libs/ I need it because I have to ...

Unwanted binding

The situation is simple. I have a datagrid that gets its data from a webservice. When data from the webservice is retrived it calls the following function: private function onListReg():void { arrRegOld = WSAutoreg.list.lastResult as ArrayCollection; arrReg = WSAutoreg.list.lastResult as ArrayCollection; dgReg.dataProvider ...

Get the position in a Grid from a dynamic object.

Hi On GridItem object there's a colIndex and on GridRow a rowIndex. But both are declared internal so I do not have acces on that information. Is there another way to get the position of an object in a grid. cyrill ...

Flex Problem Enabling and Disabling Button in List

I have a list with a dataprovider, it lists out buttons encapsulated in an item renderer. All I want it to do is have a skin that it changes to when it is clicked. I can get this to happen, but then it just goes back to its up state. I want it to stick on the down state, which I have to do by disabling the button. So I tried this: bu...

Getting rendered font dimensions in Adobe Text Layout Framework

I'm currently struggling with implementing text floating in TLF. It does not support it natively, and the only solution I've found so far is to use linked containers and then combine controllers using flowComposer for single textFlow. However, I need to implement Dropped Initial letter feature in my column layout. Initial is just a firs...

Flex: cannot resize player back from Full Screen

hi, The key event is not listened by my Flex app. Since it is really simple code, I cannot understand where the problem is... init() { stage.addEventListener(KeyboardEvent.KEY_DOWN, escHandler); } private function escHandler(event:KeyboardEvent):void { debugF.text = "ESC pressed"; } thanks ...

flex accessing children of a list component

when I try to loop through the children of a List component that has buttons in it, I can't seem to access those children. I try for(var btnNum:Number = 0; btnNum < myList.numChildren; btnNum++) { trace(myList.getChildAt(btnNum); } but it is giving some other instance, not the button instances. and the weeklist <mx:List id="m...

HTTP Request Error in Flex

Hi, I am getting a HTTP request error in Flex. Not always but sometimes. However I do see that the HTTP request was successfully sent to the backend. I am printing the "HttpService.lastResult.Error" which has this String. How can I get the root cause of this problem ? Apart from "HttpService.lastResult.Error" are there any other Flex ...

Flex video player Seeking with RTMP?

Am working in flex video player with RTMP. My Question is.. How to skip the video file to the middle of a video without having to download the whole file using RTMP. I have some basic questions in flex video player with RTMP. Where i want to put the Video file(FLV). Red5 server location or any other folder. Where i want to put the fl...

Compile Eclipse Project With Ant

I don't have eclipse on my system at all, but I have on my hands an eclipse project (flex) that I would like to compile and I was wondering if there was any way to do it with minimal to no changes having to be made. Is this possible? ...

Actionscript 3 (Flex) - How do you clone an object including copying the event handlers/listeners?

I want to clone an object of a class (whose source code I do not have) and copy all of the associated event handlers from the original object to the new cloned object. Does anyone know how I can do that? I know how to copy the properties from the original to the new, but can I iterate over all the event handlers and add them to the new o...