flex

How to write a custom component to wrap and resize text automatically (in Flex)?

I'm aware of textAlign property of the Text component. But it doesn't do what I'm trying to achieve: I have a Text component which is 500x100 (the size does not change). The default font size is 80 px. The text, however, keeps changing. What I want is to resize the text to "fit" inside the textfield. Let's say the text is changed to: ...

air: Problem. No text showing up in compiled air app

i've been testing a small Air app on different systems and found out that on one of these systems text does not show up, at all. Other (older) applications are fine, but this one does not display any text. I've been frantically trying to solve this with text embedding. To no avail. Could the system be missing a font? system: air 1.5.2...

Passing flashVars when testing in Flex Builder

I can pass values from HTML to a SWF when running my own HTML file, but I cannot see the way to do this within Flex Builder. Creating my own HTML file with an extra param in the object tag works fine: <param name="flashVars" value="greeting=Hello"/> Then I can use this ActionScript to get the value in Flex: blah = Application.applic...

flex builder new projects with syntax errors

Hi, I'm a junior developer and I'm having some problems with my flex builder 3. Every time I make a new project, flex builder detects syntax errors like: 1084: Syntax error: expecting rightbracket before leftbrace. FotoBeheer line 23 1084: Syntax error: expecting rightbracket before public. FotoBeheer line 22 1084: Syntax e...

horizontalCenter parameter discarded in flex 4 vgroup

Hi, No matter what value I put in the horizontalCenter property of the "Browse" button, it just follows the horizontalAlign property of the VGroup. Why is that ? Thanks <s:Group width="100%" height="100%" left="0" right="0" top="0" bottom="0"> <s:Panel id="mainPanel" title="File uploader" width="75%" height="75%" horizontalCenter=...

Can I do conditional GET requests from Flash / Flex / AS?

I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't. I haven't seen any headers in the Flash Player's...

When using a container powered by itemrenderers, is there a way to make the rendering not stall?

I'm developing on Flex 4. I have a datagrid container and custom itemrenderer with a text field, a button and a few boxes. Every time some data is displayed, the app stalls for a second or two before rendering completely. Is there any way to make it render more fluidly or render one after another...? ...

Installing Adobe Flex builder in Ubuntu/Linux?

Is working fine?, i found instruction in Adobe site confusing and i am not confident at all since it says that only works with eclipse 3.3 (actual version should be 3.5 or close) There is any special instructions to do it well. Thanks! ...

Flex tooltip positioning incorrectly

Let's say I'm trying to place a tooltip on the left side of a component on my view. Layout may look similar to this: <mx:HBox> <mx:Button id="btnBack" label="Back" click="btnBack_click();" /> <mx:Button id="btnFirstLoadDemo" label="First Load Demo" click="btnFirs...

AdvancedDataGrid does not displays object properties

I have following data: var data: ArrayCollection = new ArrayCollection( [ { name: "ProductA", user: {login: "loginA", email: "emailA"} }, { name: "ProductB", user: {login: "loginB", email: "emailB"} }, { name: "ProductC", user: {login: "loginC", email: "emailC"} } ]...

POST data to a Flex/Flash (mxml) application

I have Flex application requiring to filter users depending on there database groups. Depending on which group they are, the're is a config.xml file that is use to populate the swf. Here is how I figure how to do this : 1. The client comes to a .aspx page with a form requiring a username and a password. 2. On the server side I confirm...

Does Actionscript expose the XML in a web service faultEvent? How can it be accessed?

Hi folks, I have a Flex 3 client interfacing to an RoR webservice for a POST request. When the webservice returns code 201 Created, Flex fires a resultEvent and everything is cool as I'm able to parse the XML response as you would expect. However, when there is a problem with the data sent in a POST request, the webservice returns 422 ...

Disable all dates before the currentDate in DateField

How to create a DateField in flex, that would disable all the dates before today's current date. <mx:DateField id="dateField2" yearNavigationEnabled="true" disabledRanges="{[ {rangeEnd: new Date(dateBeforeCurrentDate} ]}" color="0x000000"/> I understand I will have to do sometime like the code above. But I don't know...

[Flex 3] Updating runtime created arraycollections, they all have the same source

Hello. I have a source collection (now a simple Array). At run-time I create ArrayCollections using the same array as the source (each collection show the same source, but they are differently filtered). My problem is, when a new item added to the source, the already created arraycollections wont updated if one of the property of this n...

flash.media.Sound not sending HTTP request headers

I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But flash.media.Sound object ignores the headers set in fla...

Writing to a file in as3 flash develop

Ive been doing some research and I cant seem to find anything on writing to a file. My initial question was writing a array to a seperate file. But now I am looking for resources on how to write any data such as XML or a array to a file. What I want to do is create a game editor. I want to eventually save that data to a file to be opened...

choose random xml node from xmllist according to a condition

Hello, I'mm using flex builder 3. I have an xml file that looks like this, notice the flag property. It can be either 0 or 1: <question id="2"> <short>OMG</short> <meaning>Oh My God</meaning> <hint>OMG did you hear they broke up?!</hint> <flag>0</flag> </question> <question id="3"> <short>BTW</short> <meaning...

Change State with a Function - Flex

I'm just wonder if its possible to change States via a function in flex? How would I go about doing this? Thank! ...

[Flex] How to print out an object memory address at runtime? like this.toString() in java.

How to write an AS3 object's memory location for example to a label? I need it for debugging purposed. Thanx ...

Compile a Flex CSS file into a SWF using the command line

I understand that in Flex builder we can right click on a CSS file and choose 'compile to swf' and our CSS SWFs will automatically be compiled along with the main app. Is possible to compile the CSS file only (not with the main app) from the command line? I want to : Give clients a Flex CSS file to hand edit Allow them to upload the ...