flex

Embed image with a String variable which contains a filename

Hello! I try to embed images in a mx:tree: <mx:Tree labelField="name" id="tree" folderOpenIcon="@Embed(source='assets/images/test.png')" folderClosedIcon="@Embed(source='assets/images/test.png')" defaultLeafIcon="@Embed(source='assets/images/test.png')"> </mx:Tree> This works fine, but I will embed the images with a Stri...

Looking for simple flex component for audio playback

I want to add a simple audio control (play/pause/seek/volume) control to my flex application. Please suggest some free , preferably open source component. ...

Prevent tab from changing to other cell in Flex Datagrid

Hi, I have a flex editable datagrid mx:DataGrid and when I press TAB key, it changes to another cell when I am editing a cell. I don't want it to change to another cell when I press TAB. How can I stop this behavior? Thanks, Philip ...

flex4: how can i add a GlowFilter to a mx:DataGridColumn ?

Hiya. I'm building an application using flex 4. Using <mx:DataGrid> to display a table. I would like to add a <s:GlowFilter> to a DataGridColumn. how can I do so? thanks! ...

How can I access data from a .fla file using Actionscript 3, Flex 4 SDK, and FlashDevelop?

Someone sent me a .fla file containing several art assets, with instances all configured to be displayed properly and in the right positions. However, since I'm using FlashDevelop with the Flex 4 SDK, I have no idea how to access these instances in code. Some of the objects are MovieClips that I need to modify the size of, and others are...

Flex background not changed after changing theme

So I am pretty new to flex. I am developing an AIR application and I want to change my project theme to one of the additional included themes that is packaged with Flash Builder 4. So, I went to the Project Theme and changed it and it looks like it is supposed to in the Design View. When I run the application, the components (eg: a butto...

Flex - objects floating at the top of a canvas?

Hi, I want to have a canvas with some "floating" property. Basically when I add child to it, the child should float at the top. When I add the second child, it should float above the previous one. For example the canvas width is 100, and I have two VideoDisplay with width 100 and height 75. canvas.addChild(video0); // Or canvas.addChi...

Problems setting alternatingItemColors from CSS style (Flex)

Hopefully simple question: I'm trying to set the alternatingItemColors on a datagrid via some values that I set in a CSS file but nothing seems to work. the CSS file looks something like this: .FACS0 {color: #B0B0B0;} .SACS0 {color: #A6A6A6;} .AICS0 { alternatingItemColors: #B0B0B0, #A6A6A6; } I tried a variety of different th...

How to dynamically load image for drag and drop?

I am implementing drag and drop from a DataGrid onto a List in a Flex 3 AIR application. I would like to have the drag image be a photo (jpg) referenced by a String field in the data grid item, named 'imagePath'. I'm having trouble getting the image to show up during dragging. I have triple checked that it is not because of an invalid pa...

Difference Between Class Reference And Class Instance

Given that both of these calls to getQualifiedClassName return the same thing (mx:Label), how would one go about programatically differentiating between an instance of a class and a reference to the class... var lab1:Label=new Label(); var lab2:Class=Label; var qcn1:String=getQualifiedClassName(lab1); var qcn2:String=get...

Optimal way to enable user to pick style at run time - Flex

What I'm trying to do: allow a user to be able to select a color palette for a custom component by selecting from a drop down menu with a variety of icons. I have the drop down menu part down, but I'm trying to understand how to best handle the various styles in my code. Ideally I would have liked to be able to load styles at run time, ...

Trouble compiling flashbuilder project with sdk 3.*

Hi everyone, I have a series of projects that we have been using Flex3/Flashbuilder to work with, but I've recently been trying to move over to Flashdevelop for most of my development but I have hit a snag with a certain project structure that Flex/FB can handle but FD/mxmlc can't with sdk 3.* What I have is something like this: proje...

Adobe Flex Timer Event

Hello everyone, I just have a one quick question on Timer and TimerEvent (flash.events.TimerEvent & flash.utils.Timer) of Adobe Flex. I am currently working on a project wherein I need to occasionally change speed, stop and play an swf animation (loaded to a loader and instantiated as a ByteArray). Example, I have a moving car (swf ...

VideoDisplay cannot load local flv files

I have noticed that I have to put flv files in the same or sub-directories of the application file, for example myproject/bin-debug/flvs/1.flv, and use videodisplay.source="flvs/1.flv" to load. If I put it in myproject/flvs/1.flv, I cannot load it in VideoDisplay, using videodisplay.source="../flvs/1.flv". However the metadata (duratio...

Flex extending ComboBox

I created a class CustomCombo.as that extends ComboBox. What is happening is that the CustomCombo combobox is showing as being editable. I do not want this and I cant find the properties to set the editable to false. I also tried setting the combobox's textInput.editable control to false, but to no avail. Any help would be greatly appr...

Need to know more about image Editing in flex

Hi, I need to know how to manipulate the images I am a very new at flex and AS3 progragramming.Can you help me out of clearing things like I want to use as3corelib and imageprocessing libraries in flex. ...

Flex 4 - Wrapping text around an Image

Is it possible to wrap text around an image? Here is a link of what I would like to do with Flex, not HTML as in the example. Will it be possible to use the textFlow component like we tried here? <s:TextArea width="100%" height="100%" editable="false"> <s:textFlow> <s:TextFlow> <s:img source="imageLocation" width="80" height="80" ...

flex 4 list ItemRenderer: how can i have different itemrenderers for different rows ?

Hiya. I'm creating a list of scores for a game. now most of the list i need to have the same ItemRenderer. but in one specific row of the list where the user who's playing is listed, it should show different information and with different background color. how can i achieve this ? update I already tried to resolve the issue with state...

Best way to organize a Flex application for compile performance?

I'm preparing to reorganize & refactory a Flash Builder application. The goals of the reorg are 1.) keep compile times for the part of the project I'm working on as fast as possible, 2.) keep the unrelated parts separate for code reuse. Goal #1 trumps goal #2 if there's a trade-off. Currently, the app has assets in one project, core fun...

Rubyamf with attachment_fu problem.

This my class test. has_attachment :storage => :file_system, :max_size => 1.megabytes Rubyamf_config.rb ClassMappings.register( :actionscript => 'TestVO', :ruby => 'Test', :type => 'active_record', :methods => ["created_at","has_attachment"], :attributes => ["id","document_uri", "lock_version"]...