flex

Flex builder 3 or Flash builder 4?

Mainly my project was to create some UI interaction. Degrafa supported Flex 3 and FXG supported Flex 4. Which would you choose in term of performance in UI and AIR 2.0? ...

flex: what is the best way to create multi window web application?

I am using flex4, I am seeking the answer to create multi window web application. My application is some sort of complex, currently I only know using PopupManager to create a new window. Should I create each MXML for each window that I want to instantiate? And then load the mxml and put it into the stage? Is there any tutorial describing...

Flex AdvancedDatagrid populating with groupingCollection based on xml

Hello everybody, I'm currently trying to populate an flex 3 AdvancedDatagrid with xml received from a HTTPService with id="produktMatrix_data". The layout is as follows: http://pastebin.com/NqFqgj86 The result should look like: The further rows like KID, M.., etc. will be populated by other sources, be hardcoded, or by user input and a...

Accessing a swf from another domain

When trying to load a swf from a domain different from my swf's domain, I get this error: * Security Sandbox Violation * SecurityDomain 'file:///C:/Documents and Settings/Welcome/My Documents/Flex Builder 3/SwfLoad/bin-debug/SwfLoad.swf' tried to access incompatible context 'http://mydomain.com/crossdomain.xml' loading of class ...

wrong protocol for crossdomain.xml in flex app

Dear All, I've changed the protocol for my flex app from https to http and flashplayer still wants to download the crossdomain.xml using https though with the port for http. the app is accessed at http://domain01:8080/flex and it wants to get https:..samedomain..:8080/crossdomain.xml (at https:..samedomain..no_port/flex it works fine). ...

Flex 3.5a - Using a programmatic skin as the VerticalSeparatorSkin for a DataGrid

Hi there, I am trying to create a dotted line (1 pixel width, 1 pixel black/3 blank alternating along the line) as the vertical separator in a datagrid. I understand that you can use a ProgrammaticSkin to create skins for Flex, but I can't seem to get it to display the line I create. Here is my skin at the moment: package mypackage.sk...

How to access to Object property When the propety I want to access to it's in a String variable

Hi Experts It's too complicate to explain but I'll give you an example I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like: event.result.name or event.result.age ..... and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.resu...

Flex Video Player fullscreenButton override

I'm using mxml to create a spark video player with controls. When I click on the "fullscreen" button in Chrome, it goes full screen on the browser but I am unable to go back to normal size. In Internet Explorer, the whole screen is filled up but the zoom on the video is too big and thus my controls are no longer visible. Is there any wa...

Keep selection when refreshing datagrid in ActionScript

I'm working on my first ever AIR application with flashbuilder - just so you know. I've bound a mx:DataGrid component to a DataProvider which is a mx:HTTPService fetching an xml file with items. To keep the data up to data I'm polling the webservice on a given interval. My problem is that I loose the currently selected item in my DataG...

custom validator against remote object

I have a need to validate a field against our database to verify unique-ness. The problem I seem to be having is that the validators doValidation() exits before we've heard back from database. How can I have the validator wait to return its payload until after we've heard from the DB? Or perhaps a better question might be (since I t...

How do I disconnect a subrscribed stream from the publisher of the netstream?

I have a publisher who publishes a netstream using stratus p2p. This is then connected to by player who subscribes to the netstream. I believe one can reject the subscriber when the stream tries to connect by using the onPeerConnect method of the netstream's client. However, I would like to boot the subscriber after they have been conne...

I took this code from another question, what to do to make it work

function getWeek(date:Date):Number { var days:Array = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var year:Number = date.fullYearUTC; var isLeap:Boolean = (year % 4 == 0) && (year % 100 != 0) || (year % 100 == 0) && (year % 400 == 0); if(isLeap) days[1] ; var d = 0; //month is conveniently 0 indexed. for(...

Two problems with scrollbar in List component

I want to hide/remove the up and down arrows from the scrollbar - how can i do that? the scrollbar is to fat - the skin i am using is not that fat. How can i make the scrollbar thiner. thanks ...

Is Object the preferred Associative Container in AS3?

I've been using Object as a way to have a generic associative array (map/dictionary) since AS3/Flex seems to be very limited in this regard. But I really don't like it coming from a C++/Java/C# background. Is there a better way, some standard class I've not come across... is this even considered good/bad in AS3? ...

Flex: Remove all space around text in label

If I create a mx:Label or mx:Text control in Flex and then set an opaqueBackground to it, I notice that there is some space around the text. I would like to be able to get rid of that space to where the text is completely flush to the top and bottom of the label. Changing the gap, padding, and leading didn't seem to help. Is it possibl...

flex 4 button down state

I have skin a button with up, down, over, and disable states. I hope to know if there a code enable a button to keep press (down state) when the user press and hold a specific key link to that button. Something like down_button state. ...

Flex - How to change xml attribute name ?

For example i want to change <item id="1"/> to <item code="1"/> thanks. ...

Forcing JAWS to read FLEX content "on-demand"

I'm trying to make an existing FLEX application section-508-compliant, by getting it to work smoothly with the JAWS screen reader. It kinda sorta works, but one immediate problem is that when you first go to the login screen, your cursor ends up in the userid field, but JAWS doesn't read anything useful (like the label of the field you'r...

Flex 3: How do I reference the Modal Button in a Custom Component?

Hi, I've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click Custom Component: <mx:TitleWindow showCloseButton="true" close="closeHandler(event)"> blah blah... <mx:TitleWindow> In the main app: I've got a variable called popWi...

Using ICC Profiles in as3/flex

I am creating a flash site where someone can customize a canvas. Then they can preview this canvas on the product. Because of the way monitors display colors, we wanted to try to embed an icc color profile in the previewed image so the user can get a better idea of what the end product will look like. For instance, if they upload somethi...