flex

handling ctrl + key event in IE browser

Hi all.. I'm using hotkeys (ctrl + key) in my flex application. getting problem when my app is running in IE. when i press ctrl+D, im getting 'Add a Favorite' window of iE. How should i override the default behaviour of the browser if possible give me some example... thanks in advance ...

Method for exporting drawn flash/flex UIComponent to vector based print file

Hi, I am creating a flex application where I am using the built in graphics package of flex 3 to draw shapes and things to a UIComponent. I want to be able to export this vector image UIComponent to a vector based file, pdf, eps etc. Are there any tools, libraries, or methods for doing so? I looked at AlivePDF - which works very sl...

Making a dynamically-created label in Flex/ArcGIS a clickable hyperlink

I have an ArcGIS map created with Flex. The labels created dynamically are the towns on the map. We have some PDF files that have some information about the towns on the map. Is there a way to make those town labels clickable so that they can display the PDF information on a new page? ...

Help me design a flex selection list, please.

Let me briefly describe the problem I'm trying to solve, and see if somebody can provide a better solution than I have. At the bottom of it, I'm trying to craft a UI that allows the user to select a subset of a set of columns; there is a set of columns M that the user has to choose from, and they can choose 0..m of these. Additionally,...

Generating A Consistent ID For A Given Computer In Flex/Air

In C++ I Can Read The MAC Address Of The NIC and Use It To Generate A Unique Identifier For Each Computer That Interacts With My Web Service. Even If The User Deletes Their Cookies, And Temporary Internet Files, Reformats Their HardDrive And Installs A Different Version Of Windows, That Computer Still Generates The Same Unique ID. How ...

[RPC Fault faultString="Error #1090: XML parser failure: element is malformed." faultCode="Client.CouldNotDecode" faultDetail="null"]

Hey all, I get the following error message when I try to perform an update in flash builder 4 beta: [RPC Fault faultString="Error #1090: XML parser failure: element is malformed." faultCode="Client.CouldNotDecode" faultDetail="null"] at mx.rpc.http::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::processResult()[E:\dev\gu...

.NET MVC Controller action not invoked by GET or POST from Flex app

A flex app running in a view of my .NET MVC app can load data fine from another route, but submitting data via either POST or GET never invokes the controller action. Interestingly, the only way I can get the action method to fire is by passing intentionally malformed post variables in the http request. Odd. Content type is application/...

scroll tabs in flex 3

Hi, I need to make a tab navigator in flex3. If no. of tabs increases then i need to show scrollbar to navigate over the tabs. I am trying to do this using tabBar. But if no. of tab increases it puts scrollbar around the parent of tabBar and its content. Whereas i need to scroll only tabs not its content like in firefox. Could anybody...

Access to speaker devices in adobe flex

Hi, by default adobe Sound mixer sends eveything to the default speaker device. I have 3 speaker devices and would like to configure where to direct the sound. Similar thing that we can do right now with microphone is Microphone.getDevice(name) where i have a freedom of choosing my microphone device. Similarly i want the freedom to sel...

Why does flex builder insist on a Main class in the root of the source folder?

Why does FlexBuilder insist on a main class in the root of the source folder? By insist I mean that if I create an Actionscript project called MainTest. A file called MainTest.as will be placed in the root of the src folder. if I now create a package/folder called some/package and place the MainTest.as in it (and adjust the package s...

[OT a bit] Flex+JEE what is it good for?

Ok so sorry for being, I guess, a bit off topic but still I think this is the best place to ask. My new semester just started (don't worry I won't ask you to do my homework) and this time we have a rather cool subject about www programming in general where we have to do a web service, web abb - whatever as long as it's "web". Here's the ...

Unit testing a library with AsUnit in Flex Builder

I've been trying to setup a working method for unit testing flex libraries using Flex Builder. I have tried setting up a standard flex lib project and using Ant to compile and run the units tests. But this means that when something does go wrong and I want to use the flex builder debugger I cannot do so. So my next plan is to setup the...

Slow sorting on datagrid column with custom item renderer

We have a Flex DataGrid with 3 columns of which one of them has a custom inline itemrenderer that renders an icon in the cell via an Image component, depending on the data in the row. The problem is now that sorting this column is incredibly slow. It's OK when we only have a few rows of data in there, but as soon as we have a few hundre...

How can I trigger a transition effect when a child control is added or removed in flex?

I've got a custom component that has children components dynamically added and removed to it depending on what button the user clicks. What I would like to do is trigger a transition effect that moves the child component onto the stage when it's added and then moves it off when it's removed. Does anyone have a good example on how to acc...

age calculation in Flex

I'm trying to calculate age in flex. I've found this previous question http://stackoverflow.com/questions/41763/what-is-the-best-way-to-calculate-age-using-flex I'm sort of leaning towards this private function calculateAge(dob:Date):String { var now:Date = new Date(); var ageDays:int = 0; var ageYears:int = 0; var ageRmdr:in...

Add checkbox to tab in Flex

How could you add a checkbox to a tab in a tabnavigator or a tabbar in Flex? Or would you have to create your own tabbar? ...

flex: Refrashing cusom mxml component on button click

Hi! I have defined small MXML component which calls web service which returns random number on request, then my component displays the number. How do I refresh the MXML from main application control, so it will recall server again? ...

[Flex] XML HTTPService Result and for each...

Hi! XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure. I want to solve it elegantly. Any recommendation. Example: this illus...

How do I access the dataGridColumn from it's itemRenderer?

I am using a custom componenet based off of text as an itemRenderer for a dataGrid that is displaying an XMLList. I want to be able to re-use this itemRenderer for multiple columns, how do I access the dataGridColumn so I know which field to assign to the text value? super.data gives me the whole XML item, super.parentDocument gives me ...

How can I determine a function's argument count at runtime in Flex 3?

I want to pass an optional data parameter to some callbacks, but only to callbacks that support a single parameter; right now, I have a moderately-sized code base of callbacks that cannot accept a parameter at all. How can I check what parameters a Function object supports? ...