flex

Listen to any change in the values of an Object in Actionscript

Hi All, I have an Object in actionscript which has a few dozens of properties each of which is defined to be bindable and has its own change event. I would like to listen to any changes made to this object without having to add a listener to all of its properties. Is there a way in actionscript using which I can listen to any change in ...

Changing the default color on flex validation errors

The examples I've seen seem to show how to change the color that shows when the user actually hovers over the textinput field. However when the validation fails, a generic textInput border qill have a red line over it. My CSS file uses a border skin for the textInput, so I can't see this line. I was hoping there was a way to highligh...

Alternative to google map api, so that I can use it on a HTTPS/SSL encrypted website.

I did find a solution for this on Google map api page, and I made the following changes as mentioned in it. 1.Use Google Maps API for Flash version 1.9a or later. 2.Add the following to your Flash application before the map is instantiated: Security.allowInsecureDomain("maps.googleapis.com"); Ref:http://code.google.com/apis/maps/faq....

Please Kneecap My Bug-- XML Parser Error using Flex 3, OpenX in IE

Hi, I'm trying to get Flex 3 and OpenX to work together. Everything works great in Safari and Firefox. But, I get an XML parser error in Internet Explorer, which makes me want to rip my hair out and drink turpentine. I've tried to simplify the problem as best I can. Basically, I take the adReturn and then turn it into xml. adReturn ...

Setting the gap of layout

I usually set the layout like this <s:Group> <s:layout> <s:VerticalLayout gap="10"/> </s:layout> </s:Group> but not sure how to specify the gap if I want to use new VerticalLayout ...

How to add an EventListener to a moiveClips/Sprites's scaleX change event?

How can i trigger an event for the scaleX property change of the movieClip or Sprite in Flash AS 3. ...

Force Decimal Regex

Hi, I'm looking for a regex or a way to format the NumberValidator so that only decimal places are allowed. The domain="real" allows you to put integer values, but I need to force the user to but in 2.0 if they want an integer. This is because they pass through a Castor mapping file, it complains if it gets an integer when it expects...

Setting the Panel Owner

Hi, I've got an application that allows a panel to popup to allow the user to edit some properties. How do I set the panel owner so that it is on top of all the other components on the page without actually disabling them like you do with an alert box? ...

Flex 4: Popup Anchor : Right to Left Display of Drop down

Hi, I customized flex 4 combobox to display popup in an auto width layout. But combobox shows dropdown list from Left to right as you can see in the Left side of image. I actually want to display dropdown starting from right side, as described in the highlighted image. Thanks ...

RegExpValidator never matches

Hi, I've got a class that's meant to validate input fields to make sure the value is always a decimal. I've tested the regex here: http://livedocs.adobe.com/flex/3/html/help.html?content=validators_7.html, and it looks like it does the right thing, but in my app, I can't seem to get it to match to a number format. Class Definition: p...

How to get ability to start up multiple same Adobe Air applications?

How to be able to start up same Adobe Air applications multiple times? How to make it to my app? ...

Regex in Flex 3: How to Wrap Quotations Around a Dynamic String?

Hi, I need some Regex help. I need to find beacon_ followed by an alphanumeric code and then wrap it in quotation marks. For something static, like the example, below it's straight forward. myReturn = myReturn.replace( 'id=beacon_80291ee9b3', 'id="beacon_80291ee9b3"'); But, my problem is that the part after beacon is a random alpha...

scaleX scaleY increasing left, top margin, and line spacing

If you have Text with a font that is 72 point for example (and scaleX scaleY = 1) you can achieve the same size with a font size of 12 and scaleX,scaleY = 6. For reasons that would take too long to explain I am applying a large scale factor as in the latter example. The problem is, even though the text is the same size, the line spac...

Linking AS code to symbols defined in an external SWC?

(apologies ahead of time, I only really know Flash; my Flex experience is basically nil. There may be a very standard and obvious workflow solution that Flex people know about) I have a number of UI elements that are graphically quite complex (they're not components, they're just Sprites). Since it takes a long time to compile them, I'v...

Power function fit to data set

I have a set of data (in ArrayCollection) and I need to fit a power function { f(x)= B + x^alpha } to it, before display in LineChart. As result I need the alpha and B paremeter. How to do this with Flex? ...

Calculate the sum of a datagrid's rows

I have this datagrid which has columns with a NumericStepper as an itemEditor where the user can change the number of items he wants to buy. How can I calculate the sum of all cells when the user updates datagrid's values? EDIT 1 My datagrid is about colors and sizes of a product. The columns are generated dynamically from this functio...

What's the best JSF implementation?

Hey everyone, I currently have a medium size Java web application sitting on top of Spring MVC. As much as I like (no sarcasm) coding straight HTML, CSS and JS, it's not possible for me to develop as fast as I'd like. I'm looking at different RAD frameworks to speed up my development. I'm looking at JSF implementations and component l...

Not Understanding Basics Of Dynamic DataBinding (bindPropety) In Flex

I need to dynamically bind properties of components created at runtime. In this particular case please assume I need to use bindProperty. I don't quite understand why the following simplistic test is failing (see code). When I click the button, the label text does not change. I realize that there are simpler ways to go about this...

Item Renderer having trouble updating

I have a list ItemRenderer that has 2 states. When it initializes, I set it to 1 state and listen for an event that switches it to state 2. protected function onCreationComplete(event:FlexEvent):void{ currentState = "state1"; addEventListener(CustomEvent.Event1, switcherfunc); } protected function switcherfunc(event:FlexEvent):vo...

Flex customized Horizental List

i have customized Horizontal List (items are image and some text) of a reel with some no of clips . i have customized highlight , un highlight and select style , which will be implemented dynamically and mouse over and out. now pproblem is to make un highlight previously playing clip. <mx:HorizontalList id="clipsRepeater" dataProvide...