flex4

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...

How do I receive messages in Flex via GraniteDS from dynamically created JMS topics?

I have Java programs running on various machines (A) that should send messages via server (B) to Flex clients running on other machines (C). The server is running a Grails (Java) application on Tomcat with standalone ApacheMQ and the whole setup is currently working nicely using GraniteDS to communicate between Grails and Flex. (The way ...

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...

Does spark List have something similar to itemsChangeEffect in mx list?

I'm trying to animate a list as I delete the top row. All the examples I can find use itemsChangeEffect to bind to the effect, but this property exists only in MX lists, not spark lists. Any idea how I can get the same effect done in Spark Lists? I'm trying to remove the top most item in the list with a slight fade out effect before t...

Flex command line tools into GUI

Hi there - desperately need your help... Specification: ["Our plan is for you to write an application, built with AIR, to drive some command-line tools supplied with the Flex SDK (http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK). These would make use of AIR 2's NativeProcess API (http://www.adobe.com/devnet/air/flex/quickstart...

Can we got a dynamic cursor in Flex 4 with the CursorManager ?

Hi, I want a custom cursor I can edit in the .mxml file. For the moment I got a static one with a class extends Sprite. Is for a SketchPad application, the cursor will be the color and the size of the user choice. Let me know if it possible and how. Here the class in a .as file : package project { import flash.display.Sprite; ...

Flex custom component doesn't accept Script: Multiple initializer values for default property, 'text', of type 'String'.

I'm using Flex 4 and Flash Builder 4. I just want to learn to create components and I created an mxml component as follows and included it in my application: <?xml version="1.0" encoding="utf-8"?> <s:TextInput xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="libra...

Passing flashvar into flex 4

I am trying to let the user set the background color of my flex 4 app by setting the colour in the flashvars variable of the calling javascript. However, I don't seem to be able to access the flashvars at all, the best result I can get (from trace) is undefined. The javascript looks like: <script type="text/javascript"> var flashv...

Flex 4 richeditabletext word wrap

Hello, I'm trying to word wrap a richeditable text but I'm having some problems: I want it to wrap vertically so I can avoid the horizontal scrollbar. The Air app only has a spark list and the itemrenderer used is this: <?xml version="1.0" encoding="utf-8"?> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" ...

Event Handling from a custom ItemRenderer event in a DataGroup

I have a MXML application with a DataGroup as follows: <s:DataGroup id="productSelector" dataProvider="{products}" itemRenderer="renderers.ProductLineupRenderer" > <s:layout> <s:HorizontalLayout/> </s:layout> </s:DataGroup> I want to know when items in my itemRenderer are manipula...

adobe flash builder 4: css type selectors are not supported in components spark.components.Label

Hiya. I created a new MXML component that contains some labels and the following style: <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace local "*"; s|Label { font-size:12; font-weight:bold; color:white; } #timeLeftHGro...

Re add mxml element once it has been removed from display object

I have some MXML elements which i would like to remove and add to a parent element. Unfortunately I am constrained to removing the MXML object as this is handled by the custom component. So is there any way to reinstate a removed MXML element back into the display list? Sorry if this is an old question, or am i missing something obvious...

Implementing toolstrip in flex

Hi, I am new to Flex programming. I want to implement a custom toolstrip for an app. This tool strip will include a menu bar (or a customized equivalent) to display the common menu items such as File, Edit, etc as well as a search box. It should be flexible enough to include other menu items such as bookmarks, etc in the future. Can some...

What value does WebORB add when accessing a .NET service?

I've been reading about WebORB, and am wondering: if I just need to call methods on a .NET web service from my Flex app, does it add any value? ...

Which one is best for UDP applications?

Hi all, I'm working on file transfer project using UDP. Server side CPP. I developed an application of client end in Flash builder but its not giving the proper result. There is no multi threading in Flash, this is also one reason. Can anybody tell me which one is better than this and which supports multi threading. I'm looki...

problem with undocument feature adobe air 2 (FLEX)

Hi I'm writing a piece of code that take an object in an HTML page using web kit (air) well the odd thing is when I get element by name air return me __HTMLScriptObject ?? and inside there's 2 "structure" of data that I can't understand what really are... Can anyone explain where I can find __HTMLScriptObject doc and how 'extract' the ...

Can't apply filter to Sprite

I have this simple class: import spark.effects.GlowFilter; public class Letter extends Sprite { private var glowFilter:GlowFilter = new GlowFilter(); public function Letter() { filters = [glowFilter]; } } And in gaves "Error #2005: Parameter 0 - incorrect type. Should be type Filter" in runtime. If I change par...

Flex 4 css cheat sheet

Hello, Is there any cheat sheet or something similar that shows me all the Flex 4 CSS styles available? Thank you ...

How to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu 10.04 ?

I want to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu. There are two methods I know to achieve it. 1. Use fb4linux. 2. Use wine and follow these steps http://diariolinux.com/2009/06/22/how-to-install-flash-builder-on-linux/ Second method gave me errors while installing. First method is good and installs...