flex4

Flex Spark: How to add a Cancel button on the TabBar Button?

Hi All, I'm trying to add a cancel icon to my TabBarButtons in Flex 4.0 (Spark), and I've gotten close, but now I'm stuck on getting the icon to be "clickable" I have seen other approaches, like FlexWiz Blog (http://flexwiz.amosl.com/flex/spark-tabs-with-close-button/), but was hoping to figure out something cleaner. Using the similar...

Error when converting a site from Flex 3 to Flex 4

I'm moving a Flex 3 site to Flex 4, but when I run the application, it attempts to download a .swz file from Adobe, and gives the following error: *** Security Sandbox Violation *** Connection to http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz halted - not permitted from http://localhost/Fl/CityGIS/main.swf Er...

Programmatically Select Items in a spark List using service results?

1 spark List 1 Combo Box One service populates the list. getAllCDRTiterations() One service populates the Combo Box. getAllSystem() One service passes a variable containing a systemID from the selectedItem in Combo Box. getCDRTbySysId() I'm trying to set the list selectedIndices to the result of getCDRTbySysId(comboBox.selectedItem....

Only in Internet Explorer, Flex 4 PrintJob gives Error #2057

I am having an issue with printing with the PrintJob class in Flex 4. Basically it should print 3 pages, each with a colored square. It works for me in Chrome and Firefox, but if I test it in IE I get the following error: Error: Error #2057: The page could not be added to the print job. at Error$/throwError() at flash.printin...

How to override child node controls in a Flex Tree control

Hello, I am currently developing a dynamic LineChart in FLEX 4. I am implementing a Tree control next to my LineChart, which will filter the LineChart dataprovider and lineseries. The tree control has several branches and ultimately 5 children (leaf nodes) at the bottom of the last branch. I need the leaf node/children to be displayed ...

dispatch events between two advancedDataGrids

I have two separate advancedDataGrid instances (let's call them A and B). What I'd like to do: when clicking on grid A I'd like for grid A to handle the click normally (i.e. default advancedDataGrid behavior) for grid B to receive a click event a certain location and handle such event using advancedDataGrid default behavior (i.e. with...

flex 4 title window + custom component + skin problem!

I'm trying to put my components in a window container that can be closed by "x" moved on the stage, resized and so on. And I wonder which is the best way to do it. I want to use a skin class and the component class. The "solution" that is not working looks like this: take a look at this and if you have a better idea on how to implement ...

How do I find the bounding rectangle of a LinkElement in a Flex4 TextFlow?

The link elements I'm talking about are single words, so they are not wrapped inside the container, which means that they should have a single bounding rectangle. But how do I go about finding this rectangle? I'm familiar with Flex3 but don't know enough about the new Text Layout Engine in Flex4. Can someone help me please? Thanks! ...

flex 4: custom component that has a TitleWindow as wrapper

I want to have a custom component skin that has a s:TitleWindow that actually works! <s:skin (...)> <s:TitleWindow> (...) </s:TitleWindow> </s:skin> but this title window is not draggable and can't be closed. how to fix it? thanks ...

Passing a parameter from flex main to a flex(4) component with data binding

I have a main mxml file (flex4) and want to pass a parameter (user_name) to a component in a directory called components. When I run the program, the user_name is NOT being sent from the main to the component file. (Interestingly, if you make the component visible, you can see the parameter has been passed) New to flex/actionscript and...

Can Adobe AIR 2+ mimic the Mac OSX behavior for "Hide Window" when providing a custom native menu?

In my Flex 4/Adobe AIR 2 application I am using a FlexNativeMenu on my WindowedApplication to set a lot of customized menus. I would like to keep the original "Hide " menu option from the applications root menu in OSX. Without it my app breaks the expected behavior for users and ends up frustrating me. I see there is a function called...

How can a spark Label be skinned ?

I would like to add some fancy drawing beyond the CSS formatting. How can I put a skin on a spark Label ? thanks ...

Autocomplete in Flex 4.0 not displaying items in dropdown list

Hi, I am new to flex, actionscript and flash builder (having to do an upgrade to an existing project). One of the problems I seem to have is that the Autocomplete component that seems to be part of flex extras is not displaying the list of items in the dropdown list. Basically, I get a list of blank items. I know they are there and they...

DualBinding in Flex with Number

Flex 4: I have an issue with dual binding 1067: Implicit Coercion of value of type String to an unrelated type int I have a custom component "Experience": Experience { var years:int; var months:int; } Please help :) ...

Adding permssions to Flex 4 UI without states.

I'm working in Flex 4.1, and I have a viewstack and tabbar as my main navigation. A user logs into the application and should then only be able to see what tabs are available to his user level. I am trying to stick with MXML as much as possible, since it works well with the framework. But I'm goin numb thinking about this. What are the ...

Embed Windows media player in flex

Hi all, I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in window...

Listen for any kind of event

Hi, I'm developping an application in which I need to set up a timeout. But I have to watch for a total inactivity. Is there anyway I could watch for any kind of event ? thanks ...

Flex - Date serialization

Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using: var dat...

flex 4: window system development ideas

My application will need some windows but I can't use the popUpManager to handle custom components so I'm thinking to implement a new window system. But I still don't know how to merge it with my custom components. Any ideas? My code: My login skin: <s:Skin(...)> <s:Group> (...login components...) </s:Group> </s:Skin> `...

flex 4: importing flash symbols from an swf that was fetched using URLRequest

Hello. I'm trying for several days now to properly import flash symbols into a flex application. i can't only @Embed because the swf file that contains the skins will not be available locally so i need to use URLRequest. This is what I've got so far. I created a flash file, lets call it foo.swf that contains several elements in the li...