flex

Flex 3: How to Access a Component's Grandchildren

Hi, I need to access topBox's grandchildren and determine whether they're buttons or not. This function below (thank you Flextras.com) grabs topBox's immediate children which are the HBoxes. How do I go one level lower to topBox's grandchildren? Or is the only way to do this is to run this function on each HBox? for (var i : int =0; ...

How to confirm text input in Flex actionscript

What TextInput event can I listen for to throw an Alert when a number is entered? The scenario is : a user enters a number into myTxt1. An Alert appears that says "Are you sure you want to enter that number?". If the user clicks Yes, do nothing/continue. If the user clicks No, leave focus on myTxt1 so he can change the number. Problem i...

How to make a custom item renderer in flex 4 without extending the ItemRenderer class?

How to make a custom item renderer in flex 4 without extending the ItemRenderer class? I need this because I want to use a custom class that is extended in all my components. as this item renderer for me is like a component, i would like to extend that custom class. Thanks ;) Now im having something like this: imageList.itemRenderer =...

Pointing to a tab within a Flex application

Does anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then? ...

Job scheduling service library for flex (similar to quartz in java)

Hi everyone, I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application: Try to ping to website xyz every 15 minutes Every first monday of a month try connect to website abcdefg .. So I am searching for a library like...

Keyboard navigable UI in Flex?

So I know that there's support for keyboard navigation a la 508-compliance or accessibility in Flash/Flex, but that's not what I'm after here. I'm going to be building a ten-foot UI (an on-screen UI for a device connected to a large television, to be used in a conference room with a remote control). I'm looking for an elegant way to na...

determine system icon size with Flex, AIR or ActionScript3 ?

Each system - whether it is win, mac, or linux - displays (desktop) icons at a user selected size (e.g., 16x16, 32x32, 48x48, etc.) How can I find which size is being used by the local system from within Flex or ActionScript3? thanks, Mark ...

nothing displays when i add a UIcomponent to canvas?

i am trying to add a uicomponent which contains an object of a custom class the extends UIcomponents and i want to display this uicomponent to canvas i have done no error compile or run time but it does not display the Uicomponent. here is code; var item:RecordRanderer = new RecordRanderer(); item.randerItem(child); it...

ActionScript: how can I get xml nodes by attributes

I have XML below <node id="id1"/><node id="id2"/>... <edge id="eid1" fromId="id1" toId="id2"/> <edge id="eid2" fromId="id3" toId="id1"/> <edge id="eid3" fromId="id2" toId="id4"/> Now I need get all edge base on nodeId, nodeId = id1 -> eid1, eid2 nodeId = id2 -> eid1, eid3 nodeId = id3 -> eid2 nodeId = id5 -> Null ...

Can e.target use to a button

Rather than assign to every buttons with MouseEvent, I assign to AIR application with: private function init():void { this.addEventListener(MouseEvent.MOUSE_DOWN,mpressKey); } However, I only want the mouse_down to execute if it detect a "button" property instead of Demo0.WindowedApplicationSkin2.Group3.contentGroup.g4 (g4 is an id)...

How to reflect changes in the list.selectedItem in the itemRenderer?

When I change the: list.selectedItem.name = 'name2' then in my item renderer the dataChange event is not fired! and I can't update the label with the name property... any help? ...

Menu key not working on Firefox and Chrome

I have a flex application that has to be accessible (keyboard navigation, screen readers, etc.). My problem is that the right click menu (context menu) that is displayed when you right click on the application is not available without using the mouse on certain browsers. I'm talking about the menu key on windows keyboards or the shift+F1...

Problem while loading a module inside another in Flex.

Hi, I am facing this problem with my AIR application. In my main application I have a main module loader(mainModuleLoader). In this I'll be loading different modules. At one point in my application this mainModuleLoader will dynamically load another module subModule.swf. This subModule again has a module loader subModuleLoader it will ...

How to use strongly typed remote service objects in Flex with Mate Framework?

I am relatively new to the Mate framework, but so far really like what I see. My application makes a lot of use of the <RemoteObjectInvoker> tag to call my BlazeDS/Java service methods on the back-end. However, it is bothering me that I must enter the string name of hundreds of remote methods into my EventMap because errors are not di...

Flex - SWF being used referenced on many Domains... HOW?

I have a swf hosted on "aaa.com", this swf is super smart and takes all kinds of HTML vars which change it's features and functions. I need to be able to allow other domains, "bbb.com", "ccc.com", ect to be able to paste the HTML code that references my swf on it's hosted site "aaa.com" and have it load up on any domain the reference i...

When using PopUpManager to instantiate an mxml component, How can I call a public function of that component to pass the component data?

Basically I am poping up the following component: PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false)); I need to call RegionExperienceDetailPopUp.generateData(passIntArray); What is the syntax to do this? ...

change font size in flex4 datagrid dynamically

how do i change the datagrid's font size on the click of a button. size will be an input from a text box. ...

FLEX/amfPHP ActionScript error 2048

Hello guys. Sorry about the mishmash of words in the title, but that's how confused I am. I can't even summarize the error I'm getting in a simple sentence. This flex/amfphp application works fine on my computer, even though it accesses an Oracle database on another server. However, when I try to access it from another computer, this is...

flex4, flash player 10.1 in debugger hangs up the movie

hello experts, My flash swf generated in Flex4 has a strange behaviour: When it is runs in the Flash Player Debugger, it hangs the flash player : Flash player is then taking 25% of CPU and I have to CTRL ACT SUP kill it. When it runs in the Flash Player, it works normally. This only happens with 1 of my devlopment which is a kind of M...

Flash Projector with multiple windows, each with a new flashPlayer instance.

Does anyone know of a flash projector 'project' or 'framework' that uses a new flashPlayer for each window? We've used mProjector, which works well to a point, but I'm very disappointed in the fileIO patterns they use. It is very buggy with regard to reading and writing files. mdm zinc uses multiple windows, but it is all sits on one ...