flex

How do I know when a spark itemrender is recycled vs data updated?

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup? I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned t...

Flex - prevent tooltips from hiding. Persistent tooltips

Hi Folks, I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups. Can anyone suggest a way to persist a tooltip? The intent...

Flash click event

If I plan to implement 100 objects on stage to be listen to mouse and keyboard input, is using "function" call responsive enough? How good does eventlistner work? ...

Trouble with Flex 3 PopupManager

I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened .. private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject { var p:IFlexDisplayObject = IFlexDisplay...

flex builder 4 step by step tutorials how to use it ?

hello i am new to flex and need to learn how to use the flex builder 4 IDE is there a step by step tutorial to learn 2ndly i need to know about the following: event model validation cycle display list List-based controls, item renderers, AdvancedDataGrid, list interfaces thanx in advance. ...

Adding fixed Gridlines Chart in Flex

Is anyone know how to adding fixed gridlines chart in flex, for example: I have a vertical axis which has a minimum value 0 and the maximum value 100 but I only want to display gridlines on values 30 and 70. So please me.... thx ...

flex data grid visibility when empty

Hi, I have data grid that measures the height according to the rows it has, but i need to disappear/ make invisible when i have no data, so the header will not just appear alone. ...

Flex desktop application: How to position elements relative to the window size

I am creating a desktop application with Flex for the first time. I am having problems with the position and size of the elements in the screen. For instance Elements with 100% width do not resize when the window is resized or maximized Elements positioned relative to the bottom of the window do not move when resizing or maximizing the...

Flex 4: Item renderer and setting values for named objects (Odd Bug)

Hi, I have a custom component as an item renderer. In this renderer there is an item called dlFirstChoice. Now when I add more items to this list and force the list to rebuild itself something odd happens. Part of the creation of the renderer I set a default selection for the DropDownlist as follows: dlFirstChoice.selectedIndex=0 Th...

Using Flex HTTPService to send http POST to webhook

Hi all, I've used the Flex HTTPService to connect to a backend blazeDS service without any problems at all. The question I have is, can I also use HTTPService to send a HTTP POST message to a server (with basic authentication)? Specifically I'd like to be able to interface Flex with Notifo (https://api.notifo.com) and to interface with ...

Adobe Flex: toolTip of a spark component with enabled=false

I have a Spark Component (a Group) which doesn't behave as wanted. The tooltip is only shown when the component is enabled=true which the following example shows: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"...

flex tree itemclick event, doesn't work

Hello Stackoverflowers, i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands. My problem is that i don't know how i can get the listener function to fire. What i would like to do is create the tree completely...

Creating RobotLegs Module within a PureMVC Shell Application

I'm working on an existing modular project that was built in PureMVC. Instead of converting everything over to RobotLegs, I want to create a new module using RobotLegs and plug it into the pureMVC shell. Currently, when the module loads, I get the following flash error: ReferenceError: Error #1065: Variable IMediatorMap is not defined. ...

Spark ComboBox click issue

I'm using a spark combobox in my AdvancedDataGrid, as an itemEditor. At some point I noticed that clicking on the scroll bar arrows would close the CB - very annoying. After much research I found this on Stackoverflow which completely solved my problems - awesome! One more and last lingering issue left though: when selecting an item fro...

Getting the global coordinates of the visible area of a component

I am trying to determine the global coordinates of the visible rectangle that is currently rendered on the stage. Specifically, if a canvas has an explicit height and width and is a child of a panel that has a scrollbar, the scrollbar can "hide" a part of the canvas. ContentToGlobal(x,y) provides the global position of the content at th...

Calling JavaScript function from Flex 4 web application

Hi, I need to call javascript function from Flash 4 based web application. When I run it in Debug mode it runs perfectly but when I make release build or run same application on other machine it does not call JavaScript function. For testing I am just calling sample Alert function of JavaScript. Can someone help me what I am missing ? ...

Flex poker game scaling in Google Apps Engine vs Amazon EC2

I have a server side code written in java and client side code written in flex. As client makes a request roughly every 3 seconds to the server, then I'm pretty sure I'm running into scalability problems at some point. As far as I can see, I can host the application either in Google Apps Engine or Amazon Cloud. As I understand Amazon of...

Force Flex 4 Spark Hslider snap to certain values?!

I remember using values array on good old mx:HSlider, is there any workaround for s:HSlider?! Basically I need slider to choose values between 300 and 2500 in following steps 300,500,1000,2000,2500. <s:HSlider id="franchiser" value="1500" skinClass="components.HorizontalSlider" x="0" y="0" minimum="300" maximum="2500" /> ...

Newbie question for Flex Remoting with WebOrb

Since Flashbuilder does not support WCF over https, i am considering to use weborb remoting as alternative, but not really sure how flash is going to know weborb location, if they are sitting on different servers. Looked at destination, source fields, but not really find a field called url in remoteObject in Flex. Has anyone done similar...

How to get individual creationPolicy on Canvas child of a TabNavigator?

Having read about Container creationPolicy (thanks all the references in StackOverflow) I have a problem/question: I have a TabNavigator and AS code in the initial Tab needs to reference components of second tab (a Canvas with multiple children). But the components of the second tab are null until that Tab is rendered. According to th...