flex

Full image in Background in a vBox in Flex.

I was wrote the following code to set the background image in one vBox. vBox.setStyle("backgroundImage", "PreviewBackground.png"); vBox.setStyle("backgroundAttachment", "fixed"); Where the height and width of vBox was 250 x 350 and the height and width of background image was 400 x 400. The problem is that the background image doesn'...

Flex client disconecting

Hi! I am using BlazeDS. Does anybody know how to disconnect client from server? Client must be informed about this event. Thanks for help. ...

Flex Builder 3 or Flex 4 (Flash Builder 4 aka Gumbo)

In order to learn flex as a beginner, which version should I go for or start i.e. Flex 3 or Flex 4 ? As you might have noticed that both have different components and architecture. Kindly advise it in details ...

Flex portlets hides menus/pop-ups of other jsp portlets

Hi, I have added flex portlets side by side with JSP portlets. The issue that I am facing is that, the menu/popup from other portlets are partially hidden by the flex portlets if the popup/menu overlaps flex portlets. Do any one know how to resolve the issue? Regards Vishal G ...

use a style sheet in flex using no MXML

Hi, I have a few styles that I want to apply to a slider. I'm aware of the MXML method of definig a mx:Style tag <mx:Style> HSlider{ } .SliderHighlightTrackSkin{ } .SliderTrackSkin{ } .SliderThumbSkin{ } </mx:Style> Instead of doing it this way I want to ...

changing "enabled" value of a button during runtime in flex

i want to make a button disabled if a datagrid is empty and it should be enabled when there is atleast 1 entry.the entries in the grid are made at runtime.I tried this this is the button: <mx:Button id="update" label="Update Contact" enabled="{isButtonEnabled()}"/> and the function is defined as where dg_contact is the datagrid: publ...

Flex Chart duration x days

I was given the task of building a flex 3 chart that relates each day(ex: 15/06/2010) of a pre-determined period with a time in hours (ex: 03:34:45 -> that would be 3 hours, 34 minutes, 45 seconds). In other words, a certain amount of time in hours for each day. I've managed to set the 'days axis' using DateTimeAxis. But I'm clueless ab...

Implementing zLib compression in Flex and Java

Hi I am sending some JSON data from my Flex application to the Java side for business processing. Now on top of that, I have added some code to compress(zLib) the data at Flex side and then pass it through Request and uncompress the same at java side. But at the java layer, the uncompressed data is still not in readable/usable format. ...

How do I get a list of the classes compiled into my Flex app?

I have several Flex applications in a project, and I would like to know if there's a way to get a list of the classes (and ideally, other assets) that are being compiled into each one. I want an easy way of making sure I've kept things separate and there aren't unnecessary dependencies. Any ideas? I'm running Flash Builder 4. ...

ComboBox in Flex

Hi, I have a combobox with multi selection. when i click on add button, which ever data is selected in the Combobox, those data has to be displayed in the another comboBox. Please check the code and Can anyone of you please help me on this. <mx:HBox> <mx:Label width="140" text="{resourceManager.getString ('resources', 'settings_con...

Flex RTE handling image IOError

You know you can edit basic html with RTE (Rich Text Editor) Flex Control. If your html code contains <img src="" /> tag, it will try to load that image from src. But how to handling IOError? or is it possible to disable the automatic image loading feature? Thanks ...

Advantages/Disadvantages of AIR vs Flex/Web

Hi all, I'm tasked with writing an application for placing and connecting objects (sort of like a room planner where you can place furniture). I've made a demo using Flash Builder 4 and built it for AIR as a desktop app. Now the client wants the full app, but they and I am unsure whether to continue building it as an AIR app or transfor...

How should I format an HTTPService result in Flex so that it is accessible for a pie chart?

I feel like this should be simple, however everywhere I look online someone does something different. I am doing a small charting application to track download statistics, and want to put the data into a pie chart. I am new to Flex, so if my code is horrible I apologize. <s:HTTPService id="service" url="admin/stats/totalstats.php" ...

Type 1046: Type was not found or was not a compile-time constant: NetworkInfo.

Hello, Just started playing with the new AIR functions NetworkInfo and NetworkInterface, but can't build ... This is the example I started from: tourdeflex But these lines cause errors: var networkInfo:NetworkInfo = NetworkInfo.networkInfo; var networkInterfaces:Vector.<NetworkInterface> = networkInfo.findInterfaces(); Any ideas on...

How to set utf8 in the auto-generated PHP code of flash builder 4 ?

HI, PHP problem here (I think): I've just created a Flex (Flash Builder) project with a datagrid linked to a database - the database is all utf8. When I run the project using the auto-generated code in flex4, the non-English part comes like ????? while the English part comes fine. The auto-generated PHP code uses mysqli. I've tried: ...

Why doesn't Flex support threads?

Why doesn't Flex/ActionScript currently support threading? ...

Flex Blaze DS not passing OpenSSO authentication cookie?

I have a set of RESTful web services. These services are protected on a Glassfish server by OpenSSO. When I attempt to call the RESTful services directly from a browser, OpenSSO intercepts the request, then forwards the request to the REST service once the user's credentials are authenticated. OpenSSO utilizes a session cookie on subs...

How to access the selected text in a Flex TextInput control

I'm using Flashbuilder 4. I have a Spark TextInput control, and I'm implementing a "Copy" button that will copy the selected text only from within this control to the clipboard (pretty much like the RMB Copy does). How do I do this? Thanks, Paddy ...

Hide Flex Component From SWFLoader

How can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file? ...

New project created with Flex Mojo's archetype throws Cannot Find Parent Project-Maven Exception

This is probably a silly question but I just cant seem to figure out. I'm completely new to flex and maven. Maven 2.2.1: Maven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0: Installed Created a multi-modular webapp project using flexmojo: mvn archetype:generate -Darch...