flex

flex combobox backspace or delete key does not delete highlighted text

Context: I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st' 1) the data provider is filtered to show all items starting with 'st' 2) text is set to auto-suggest string such that the un-typed part is highlighted. So for instance, the combobox...

Why can't I get textWidth from my Text component?

var txtIt:Text = new Text(); txtIt.text = full_array[t][0]; txtIt.width = 700; txtIt.buttonMode = true; txtIt.mouseChildren = false; txtIt.selectable = false; txtIt.y = t * 30; trace(txtIt.textWidth); myCanvas...

AS3 serialization of Vector of custom objects

What is serialization support like for the new Vector class? I have a Vector.<GameMove> which I'd like to serialize into a ByteArray. GameMove is a custom class. I presume it's necesssary to call registerClassAlias() on GameMove, but do I also have to register Vector.<GameMove>? It's it it's own distinctive type, or is it kinda composed...

Flex Overwriting my .HTML wrapper

When I make changes to a Flex project and rerun the project, it seems that FlashBuilder4 rewrites my html wrapper that embeds the SWF. But I have additional javascript code in the html wrapper and don't want to keep losing my code. I had to re-write the code once and it was a pain in the neck. How do I stop it from re-writing the html. ...

How can I make background fades when a custom component is in focus in Flex

I created a custom component that is a s:SkinnableContainer. I want the background and other items to fade out when this component is visible. Something similar to what happens when calling Alert.show(..) so the Alert box is in focus and everything else is faded out. ...

Flex: adding 1 day to a specific date

how can i set a date adding 1 day in flex?? ...

Flex - add UI componets to mx:Button or sparks:Button

Hello :) I would like have button containing other components (example:TextAreal, Image). I have found Flexlib with CanvasButton but in Flex4 id didn't work. Any ideas? ...

Flex - combined bold and normal label in Button component

Hello :) It is possible to bold some part of label in standard Button? example: ICON - normal_normal_text BOLD_BOLD_text Thanks for help :) ...

How to play MOV,M4V, M4A files using flex or flash?

Is it possible to play these files in Adobe Flex or flash? ...

Is there some property like 'visible columns' in advance data grid flex

Hi friends, I want to some how control the visibility of some columns in my advance data grid. I have a data provider with 115 coumns out of which I want to hide few columns. I know the column index and header field of these columns. Is there some property in Advance data grid where I can specify this directly? Thanks in advance. ...

3D charting in Flex (surface)

Do you have any recommendation for a free 3D charting library in Flex. To be more precise, I only need to draw surface (for now). Basically, I just need a chart that displays three axes (one should be timeline, and two should be linear axises) and the surface. From what I have seen so far, two most popular free Flesh 3D libraries are Pa...

Is it possible to run a Java program inside a Flex application?

I would like to be able to incorporate a simple game, written in Java as a component within a Flex Application. Am I crazy? Flex can display HTML, and SWF, it can also call JavaScript - but can I incorporate an applet somehow? I do NOT mean kludging it in as a sister component within a browser, but actually within the flex application...

Flex - Increase timeout on a PHP service function call

I'm using Flash Builder 4 Beta 2. I have it connecting to a PHP service. The way I set this up was using the wizard, so I didn't actually write the code to connect to it. The service looks like this: package services.flash { import mx.rpc.AsyncToken; import com.adobe.fiber.core.model_internal; import mx.rpc.AbstractOperation; import val...

Drag and Drop from Flash/Flex to HTML and Vice-Versa...

Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser? I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however. ...

Flex Tree Control - How can I reference icons by URL?

I have a collection of objects that are displayed in two places - spatially as icons on a map, and in a tree control. I'd like to know if it's possible to use the image URLs that I use for displaying the icons elsewhere in a tree control. I've tried simply using the name of the field that contains the URL as the iconField on the tree co...

Loading a SWF dynamically causes previously loaded SWFs to misbehave

I have run into a very strange problem with Flash and Flex. It appears that under certain circumstances, movie clips from a SWF loaded at runtime (using Loader) cannot be instantiated if another SWF has been loaded in the mean time. Here is the complete code for a program that reproduces the error. It is compiled using mxmlc, via Ensemb...

Flex VideoDisplay reconnect after idletimeout

I have a VideoDisplay that is able to connect to a source and play. After the connection times out I want the connection to be re-established when my play button is clicked. Right now when I reset the source and play the videoDisplay, it gets stuck in the loading state. ...

Unable to display Google Map through API in Flex SDK

Hello, I am using the mxmlc to compile the examples from google to get started in using Google Maps API in Flex 4. But after compiling the swf file the map does not load. I've registered for an API key Downloaded and included the Maps SDK in the xml config file used at compile time C:\sdk\flex4\frameworks\flex-config.xml <external-lib...

Is it possible to do a #define in Adobe Flex?

I'm looking for a way to do something similar to a c/c++ #define in adobe flex. I'd like to have lots of different paths a project build can take depending on wither or not something was defined. Does such a thing exist in flex? I know there is ways to set global variables but that wont really suit my purpose. being able to have struct...

Convert String to DateTime

What is the best way to convert a string to DateTime? The format of the string is dd/mm/yyyy hh:mm:ss. Thanks a lot, Vincent ...