flex

Flex components at runtime.

<mx:Repeater id="rep" dataProvider="{headingData.component}"> <mx:HBox id="panel" label="{rep.currentItem.title}" width="100%" height="100%"> </mx:HBox> </mx:Repeater> protected function creationCompleteHandler():void { //Alert.show("init2"); var components:Array = getComp...

Putting validataionds on datagrid column data using flex

Can any one tell me how to put validatations on datagridcolumn data using flex 3.I found restrict attribute bt it is applicanle to only text input component.plz help me if anyone knows it ...

Diffrent values of alpha for different regions of a sprite(Flex/Actionscript)

Here is my problem : I have a Sprite covering the entire screen. Other than a certain rectangle of this sprite I want the rest of the sprite to have alpha = 0.5. And for that particular rectangle, I want alpha = 0. Is it possible? How? ...

Drag and drop between List control and Chart

Hi All, I am trying to implement a drag and drop function between a list control and a columnchart in Flex3. List items should, when dragged and dropped on the chart, be displayed graphically in the columnchart. Alas, dropping the listitems on the chart does not seem to result in a proper graph. Here my code till so far with regard to t...

access mxml component from external actionscipt file

hello, i'm trying to access an mxml component from my external as file. e.g main.mxml: [mx:text id="myText" />] file.as: var mainM:main = new main(); mainM.text.visible = true; i get the following error: [TypeError: Error #1009: Cannot access a property or method of a null object reference] any suggestions on hw to approach it ...

JSON as HTML data in Flex - Hyperlink Rollovers

I am using JSON to parse HTML data with customized html tags in Flex. Flex's support for HTML is pretty minimal, so I am wondering if it's possible to do a simple font color change rollover effect on these links. Currently I have found that Flex only supports a few HTML tags, but also supports CSS through Flex's whack CSS methods. C...

AIR: make taskbar item flash?

Is there a way to make the taskbar item flash in an AIR app? like it does in other applications to alert the user of a change. Thanks!! ...

Flex: RichTextEditor -- get and set RICH Text?

Given a rich text editor, I want to save the "rich" text to a database, and load it later. So how can I get and set the rich text? I looked at the API and there is a property called text which is only PLAIN text, not what I need. There is another property called textSnapshot which sounds like maybe thats what I need to use, but its REA...

Adding a popup context menu to words in a Flex TextArea

I'm trying to figure out how to add a popup context menu to words/groups of words in a flex. Basically I'm trying to achieve something similar to the red underline MS Word adds underneath misspelled words. I'd also like to be able to add controls other than menu items to this context menu (checkboxes, lists, buttons, etc...). Thanks f...

How do I create a VBox that will grow to fit all the children rather than use a scrollbar?

I have a Canvas with a VBox in it. As I add items to the VBox, I want the VBox to grow, I want the scrollbar on the Canvas to control the visibility. How do I accomplish this? ...

Dynamic Flex verticalaxisrenderers

Hi, I've created a linechart in flex using pure as3. I need now to convert it to a dynamic multi axis chart. What I mean by dynamic, is that I can programmatically add or remove axisrenderers from the verticalaxisrenderer array at runtime. It seems i can remove axisrenderers at runtime by simply doing this: verticalAxisRenderers = vert...

Flex - How to change open DropDownList height

Using FB4, I want to change the height of an open spark DropDownList. By default, it shows up to 6 items before scrolling. My dropdownlist contains 7 items, so I want to change the height of the open dropdown list to fit all 7 items without scrolling. As a workaround, I've changed the font size of the items so that they are smaller and a...

How to have constants in Flex CSS files

Hello, How can I have a constant in a Flex application which I could apply at several places in a Flex CSS file? For example I may have a background color which is the same in several UI components and then I would like to have this color set in only one place and reused in all style clauses. Something like ... public static const myCo...

Sizes of datatypes for actionscript 3

Anyone know any good resources or personal experience that help explain how much memory (and swf size) the various built-in data types take up in actionscript 3? I'm specifically interested in int, Number, and (dense) Arrays or Vectors. I'm working on a project where I need to embed large amounts of structured array data, which is alrea...

Flash UI blocked during flex rpc.soap.Operation::send

I've got a Flash UI that does a periodic server call to get some updated information. The call uses the flex sdk's rpc.soap.Operation class. It looks something like this: var wsOperation:Operation = Operation(webService.getOperation(SomeOperation)); wsOperation.addEventListener("fault", wsError); wsOperation.addEventListe...

Air: Possible? Writing into installed application package

This is probably a bad idea or whatever you wan't to call it. Nevertheless, curious to know if Air can write inside it's own installed package. I'm referring to the OSX '.app' files found in great numbers in the applications folder. Since every one of these can be opened as a regular folder, i'm guessing that's what they are. What other...

Actionscript: How to obtain stage property in added children ?

I am trying to trace stage.name in child view after addChild: import flash.events.Event; import flash.text.TextField; public class TestView extends TextField { public function TestView() { addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage); } private function handleAddedToStage(event : Event) : void { ...

Tomcat startup (web.xml) issue

I'm using Tomcat 6 with eclipse web tools to publish an application. When I deploy the j2ee application I'm getting this error via tomcat logs: Feb 18, 2010 9:50:33 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not fo...

AIR App that Loads and Runs Existing AIR swf

I have an existing AIR app whose main content is App.swf. I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication. Here's the code for the 2 AIR projects (imports are omitted for brevity): // App AIR Project -> App.mxml -> App.swf (it's just a window) <?xml version...

Key navigation in advance data grid

I am using advance data grid in my project and i have made a separate component for datagrid. I have set the property 'selectionMode' to single cell.I am also using some text boxes in cells.Now I want when a user navigate through keyboard using UP,DOWN,LEFT or RIGHT arrow key and selected cell have textbox then at that time navigation st...