flex

Flash Builder 4 is suggesting mx1 instead of mx! why?

I just bought and installed the Flash Builder 4 after having the Beta for a while. The same code is giving me compile-time errors and suggests using mx1 instead of mx! If I make it mx1 the compile error goes away. Here is the top of my component. <s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xm...

setting variables to false

I am working in flex and I am just setting a variable to false. It doesnt do anything in the program but everything breaks when I put this line of code in: somevar = false; Does anyone know why? ...

Adobe Air upload progress without FileReference

I'm deploying a small application with Adobe Air. My application will do batch upload from filepath which stored in a text file. For example, in a text file name "list.txt", there is a string "C:\myfiles\IMG_0001.JPG". Now I want to upload this image file, keep tracking of upload progress :-< I want to use FileReference to get the upload...

can we add system icons into the flex application

can i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly. ...

what is the procedure followed to divide the background into squares like facebook supercity, farmvillie.

I have planned to develop a game in flex in which the users will build buildings on a plain surface. I want to divide those lands into pieces and allow the user to build the buildings on the pieces of the surface. How do i divide the land into pieces. I have seen face book application supercity, farm vilie etc. I want to develop same as...

Flex Nested Drag And Drop

i have a canvas where i can add layout say another canvas.So both the canvas have drag enter and drag drop event . I want to toggle this events .. i.e when outer canvas will accept drag inner will not accept and when inner will accept drag outer will not.I am facing a problem in nested drop events..Inner drop event is not working..Pleas...

Error premature end of file pops up when accessing a URL

Hi, I am using Coldfsuion 8.0.1 and Solaris 10 and when i try to run this URL, http://IPADDRESS/flex2gateway/http I am receiving an error message "Premature end of file". Please help me out if i am missing any installation/fix. And when i hit the same URL from browser it shows: <amfx ver="3"> − <body targetURI="/onStatus" responseURI=...

ResizeEvent Looping?

Hello all, I am having an issue with an actionscript event that I am firing every time a flex component resizes. In the event, I am altering the height of the flash object within its html wrapper via an external javascript function. This in turn causes the component to resize and the event to loop in upon itself and continually add heig...

how to embed image into flex grid column

Is there an easy way to embed an image into a flex grid column? Something similar to: <mx:DataGridColumn width="23" src="images/testimage.jpg"/> ...

How to handle events within the accordian control in flex

Inside of accordion panel, we have some containers like canvas,vbox etc. within that containers have some components like button,link button etc. How to raise events for button and link buttons using addeventListener ` <mx:Accordion width="100%" height="100%" id="crmEntities" > <mx:Canvas id="CompanyView" label="Company" width="...

Flex: How to get the image size of an Image?

Give an Image component, how can I tell the size [width and height] of the bitmap image that the Image is containing (not the size of the Image component) Also I want to know this as soon as possible, so I think this needs to be in the Event.COMPLETE event? Thanks!! ...

FLEX: I'm looking for a component doing this

Could you suggest me a good Flex component for the widget shown in picture ? http://dl.dropbox.com/u/72686/timeline.png Functionalities: - range selection - scalable time period on x axis - histograms areas thanks ...

Applying styles for custom TextArea in ActionScript 3

I have the following code to create and apply a few styles for a custom TextArea in ActionScript 3. public class MyCustomTextArea extends TextArea { override protected function createChildren():void { super.createChildren(); this.styleSheet.setStyle("sup", { display: "inline", fontFamily: "ArialSup", fontSize:"12"}); thi...

Flex: tag cloud component ?

hi, is there any Flex component displaying tag clouds ? (Each array item is composed by - tag name - populairity value http://dl.dropbox.com/u/72686/tagClouds.png It is very important the tags do not override each other, to keep it readable. thanks ...

flex strange problem with namespaces.

I'm trying to understand what is going on with my namespaces since I upgraded to flash builder 4. xmlns:mx="http://www.adobe.com/2006/mxml" in the application and in the stylesheets: @namespace mx "library://ns.adobe.com/flex/mx"; Everything seems to be recognized correctly, however, I get a warning that says "borderThickness" is on...

Set height of Flex Accordion to height of tallest child

By default the height of an Flex Accordion container is the height of the initially selected child. I'd like to be able to set the height to the tallest child so that no resizing or scrolling is necessary when other children are selected. I do not want to use the resizeToContent property. I want the size of the container to stay const...

Unable to use background-position: center for VBox in flex

Hi I am trying to use css to have a background in a VBox which is positioned to the top of the container. my css style looks like below: <mx:Style> .agendaDateVBoxStyle { vertical-gap:0; corner-radius: 10; border-style:solid; border-color: #7191ba; background-col...

Flex/Air/AS3 Selecting and Populating a unFocused tab.

I'm having a problem displaying data from a function to text box within a tab. If you run the code and click "Select Tab 2 and Fill..." I get an error; "TypeError: Error #1009: Cannot access a property or method of a null object reference." I'm guessing this is because "Tab 2" is/was not rendered yet. Now if I run the code, select "Tab 2...

Flex 3 and soap response?

I want to insert data into a SQL Server, but I keep getting this error: "RPC Fault faultString="SOAP Response cannot be decoded. Raw response:faultCode="DecodingError" faultDetail="null"] " I can get data all day, but why can't I input any? Code: <mx:Panel width="100%" height="100%" title="Data Tables" x="10" y="30"> <mx:D...

How do I make this linkButton custom component work?

package { import mx.controls.LinkButton; import flash.text.TextLineMetrics; public class multiLineLinkButton extends LinkButton { override protected function createChildren():void { super.createChildren(); if (textField){ textField.wordWrap = true; textField.multiline = true...