flex

sending entire columns of Datagrid from flex to PHP

My Main.MXML <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:mate="http://mate.asfusion.com/" width="100%" height="100%"> <mx:AdvancedDataGrid sortExpertMode="true" id="baselineGrid" dataProvider="{dataSource}" headerSeparatorSkin="mx.skins.ProgrammaticSkin" headerSortSeparatorSkin="mx...

Controlling which VBox gets the scrollbar

I have the following application and I am trying to put a scrollbar somewhere inside the TabNavigator, preferably on the innermost Vbox, but the scrollbar always ends up on the Panel. Is there some kind of property which controls this? I thought height=100% would have controlled it but it doesn't seem to work. Sample is here. You can vi...

How to get a collection of UIComponents based on a stylename in Adobe Flex

Does anyone know an Actionscript equivalent of the javascript getElementsByClassName. What I would like to do is add a custom 'stylename' to various components which I can then use to get a collection of these objects and therefore process their visibility property. The idea is I want to hide various components based on what roles a ...

How do I change the appearance of nodes in a Tree control in Flex using an extended TreeItemRenderer?

I'm using a tree control that I want to customize. The data items in the tree's dataProvider have a property name that should be used for labeling the node, and a property type that should be used to select one of several embedded images for use as an icon. The simplest way to do this is by using the labelField and iconFunction propertie...

How to add Flowplayer to a Flex Application?

I have a Flex application and I would like to add the FlowPlayer to it. I have downloaded the flowplayer.swc file, but I am not sure what to add to my MXML to include the flowplayer. ...

Flex Compilation - Strange Behavior of metadata tags

I'm trying to move the build of a Flex Builder workspace from the IDE into an Ant task, and I'm having some trouble with the behavior of some custom metadata tags in the projects. I have one library project which is compiled as a .swc, which includes several classes that read metadata off of classes passed to them. An application depend...

how to avoid flickering when changing the source of an mx:Image in flex

Hi, in my mxml file I have images declared like this: <mx:Image x="0" y="0" source="assets/bigpicture.png" id="picture1"/> and at some event I do: picture1.source = "assets/bigpicture2.png"; However this results in flex removing the picture, and when it has loaded it will show it again. How can I make the mx:image make so that it...

Flex Component Lifecycle: validateNow, validateDisplayList, invalidateDisplalList, commitProperties, etc.

I am extending VBox to make a Calendar component. What method should I override to add the code to draw itself? What is the difference between all these methods? Is there something I should be putting in each one, or is there a specific method I can just override, add my drawing code, and have it work? Thanks! ...

In Flex, is it posible to identify if the code is runing on Web or AIR?

Im doing an app that runs both in the web and on AIR, to avoid copying code arround, I figured I should do 3 kinds of proyects on flex builder: Library, Web and AIR proyects. So all my code is on the Library proyect. I have accessData.as that extends EventDispatcher to fetch web services and return them as an event, I plan on using thi...

Flex: changing Flex component styles in AS3

Hi, in MXML, there is a Button class which you can instantiate like so: <mx:Button id="something /> but what if you wanted to dynamically build this in AS3 and add it to the Flex app dynamically, without the use of components (just AS3) and then modify Flex's styles, for example, here you access the Button's properties and set them: ...

AS3 Memory Conservation (Loaders/BitmapDatas/Bitmaps/Sprites)

I'm working on reducing the memory requirements of my AS3 app. I understand that once there are no remaining references to an object, it is flagged as being a candidate for garbage collection. Is it even worth it to try to remove references to Loaders that are no longer actively in use? My first thought is that it is not worth it. He...

Multiple text areas with different rotation values causes borders to be very very wrong

If you have two textareas, one has a rotation value besides 0 and the other has no rotation value or a value of 0 and you 'tab' focus from the one w/rotation to the one w/out. The border around the textArea w/out rotation will be rotated. If you set the rotation value of the non-rotated text field to a non-zero number, even 0.01, it fi...

How to specify the location of a remote machine's file in the URLRequest parameter? - Edited

Hi now I have found how to give a relative path in URLRequest paramate and download that file. I found it from this particular stack overflow post . Thanks to Christian Nunciato and heri0n. so now if If give my machine's relative path, C:/sample/DefectList.xls it works. Now I have to access an xls file kept in the server machine or any ...

External linking of flex 3 app, where did it come from?

I'm feeling the topic isn't the best one, but here goes. I've made a flex 3 app that is sitting on my web server. People will be able to link to this flex app on my web server on their own sites/blogs/forums and so on. Is there any way I can log where a user that clicks on it comes from? Example: the URL to the flex app is http://www...

Flex install badge inside a Flex Application?

I have created a flex SWF file for my web page. I also have a AIR application. Is it possible to use the install badge that is available for HTML pages inside my Flex web application? Or any alternative ideas / suggestions? Thanks. ...

Text Input restrict in Flex3 Air

Hi, I need to restrict the user and allow only first character as + or - or 0-9 and other character as 0-9..how can i do this in regular expression validator the below expression works but i need in restrict field. <mx:TextInput id="txtTop" restrict="[0-9+-][0-9]*$" /> Valid values are +023 -123 23 0 invalid +-123 fsaf -+2...

Preventing validator from firing after bound value changes

Hello Everyone, I am working on a product options form whose contents should be cleared by a clearOptions() method each time the user adds an option. The option name TextInput is bound to a value object that is reinstantiated each time the the user adds a product option. The problem I am having is that the StringValidator fires each t...

3D, AS3, Flex - Convert degrees of rotation to visible height

I need to know what the visible height of a display object will be after I change it's rotationX value. I have an application that allows users to lay out a floor in 3D space. I want the size of the floor to automatically stretch after a 3D rotation so that it always covers a certain area. Anyone know a formula for working this out? E...

WebOrb/Flex: How to call a method on a RemoteClass returned by a RemoteObject

I have a RemoteObject returning a 'Schedule' class. I've created a client side RemoteClass to map to it. All properties of the class instance are coming in fine. I just not clear on how I go about calling methods on the class. How would I call a setter on startdate? package classes.remote { [Bindable] [RemoteClass(alias...

flex 4: custom css value.

is there any way to create a custom css value for a component and have it available to the skin class that component is using? for example, if i define this in a css file: s|Panel{ skinClass: ClassReference("PanelSkin"); myCustomValue: #CCCCFF; } is there a way to make myCustomValue available in the PanelSkin ? ...