flex3

How to hide view stacks in AIR application ?

I have two viewstacks one for Main menu and another one for submenu. I want to show viewstack page infomation at the time only one viewstacks . Another one hide . if i click submenu viewstack then Mainmenu viewstack will be hide . How can i do that ? I dont know whether it will be correct or not . If you have any other option for addin...

Text input fields in flex when full screened does not work

Hi all i have a problem where if my application is full screen i cannot click on any text input component and i cannot input any text into the fields. i have tried creating the text input fields at run time and i have tried creating them on the canvas when on the gui design window in flex builder. however they both give the same results ...

Flex + Drupal Sharing Data

I've looked around a bit and I can't seem to find the answer to this problem: in fact, this may be a stupid question and there isn't an answer. So anyway; here's my problem. I have a website that runs off of Drupal. So, I've also started to mess around with Adobe Flex to create a few fancy drag/drop webapps that I'd like to embed into...

Flex 3 event propagation on a composite custom component?

I have a custom component made up of a selectable control (radio button) and a text input. I want to perform some logic in response to the change events from both of those controls, but after that I want anything that is registered on the composite component's change handler to have a change to handle the events as well. The problem is...

Unable to select custom item renderer (flex)

Hi I have made the following item renderer in mxml, but when I use it in a list for some reason I can not select it. Am I doing something wrong? <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off"> <mx:Script> <![CDATA[ import com.pbsmedia.kanpeki.domain.calEvent.CalEventType; [Bindable] private var calEvent...

How do set size of state After moved child state using AIR ?

In my air project i used current state size is width="441" height="358" . i have link button like Singin then move to singin state (currentstate='singin') <mx:State name="signin"> <mx:SetProperty name="height" value="616"/> <mx:SetProperty name="width" value="919"/> So application resize into 616,919 . After that...

Binding to function in custom control in flex

Cannot seem to get the binding to work between the user control and the Model. This is my first attempt as I am just playing around with flex as an alternative to Silverlight This is my model <mx:XML format="e4x" id="searchCriteria"> <searchCriteria> <surname>{ surNameCtl.currentSearchTypeValue }</surname> <surname_criteria>{surN...

Can I change the 'Default Application' class of AS3 projects in Flex Builder 3?

When creating an Actionscript Project in Flex builder 3 an application class is automatically created and dropped in the root of your source folder. In my case my source folder is called src/. Is it possible to change the default application class to a class which is not directly in the root of the src folder? It seems when right-clicki...

Actionscript 3: Walk through/read object variables, possible?

For an open source project I am looking for a way to send multiple variables to methods. These variables are, for example, variables I want to directly pass onto an object I'm creating. I figured an object would be a good way to go, as I can send as many variables as I like without having to think about every possible variable beforehan...

Apply Filter to Everything in AS3

I'm trying to add a filter in AS3/Flex SDK. I can add a filter just fine to any one single object - but I want to apply the filter to everything that is a child of a certain object. Think a pause window pops up, and everything below the pause window goes blurry. Applying a filter to each individual object (eg: iterating through a list)...

How do I programmatically associate a RadioButton with a RadioButtonGroup in ActionScript3?

I have a UI component that, for various reasons, I have to construct programatically. The component is a table of radio buttons grouped by column. Right now, I'm constructing the column groups like so: private function createGroupsForItemList(items: XMLList): void { for each (var item: XML in items) { var rbGroup: RadioBu...

dynamic xml reading in flash

Hi all, i want to read an xml file in flash that is returned from a php script. i have it all sorted apart from one thing the attributes that are returned in each row vary (anything from 1 to 100). below is the code to explain what i mean for(var ii:int = 0; ii < tempXML.record.length(); ii++) { for(var b:int = 0; b < numAttributes;...

Flex 3 - What Component to extend for drawing application

Hi all, I wonder which component to extend in Flex 3 in order to make a drawing stage. ...

Flex Custom Component problem

Hello, I've made a custom component based on MenuBar. This is the code <?xml version="1.0" encoding="utf-8"?> <mx:MenuBar xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" labelField="@label"> <mx:XMLList> <menuitem label="Website" /> </mx:XMLList> </mx:MenuBar> The problem is that the "Website" isn't displ...

Flex profiler isn't showing me what I expect... Am I doin' it wrong?

I'm trying to profile the performance of my Flex code, but I'm not getting the results I expect: the wall clock says that my application takes about 30 seconds to load, but when I sort the profiling* results by cumulative time, the numbers don't add up: there is one method, [enterFrameEvent], which has a cumulative time of ~8000ms, then ...

How do I programmatically move an item in a Flex 3 AdvancedDataGrid?

Is there a way to move a row in an AdvancedDataGrid in response to an external event? In this case, I'd like to have a toolbar button that moves an item or items selected in the grid either up or down. The problem as I see it is keeping the hierarchical data source in sync with the array of item renderers and selection data on the grid...

Flex: Where do ChildConstraintInfo objects come from?

Profiling my app I observe a fair amount of ChildConstraintInfo objects that consume almost 10% of app memory. I'd like to understand where these objects come from. Couldn't find anything in Flex help. My assumption is they are created with each V/HBox or Canvas. Any info is appreciated that would also help me understand how to minimiz...

how to make source path dynamic

hi, i'm new in flex.Here is my problem <mx:HorizontalList id="horizontalList" height="100" columnCount="6" dataProvider="{arr}"> <mx:itemRenderer> <mx:Component> <mx:Image width="100" height="100" source="../../user/mahedi/weeding/album/{data}"/> </mx:Component> </mx:itemRenderer> </mx:HorizontalList> i want to make sour...

How to force Flex validation when a container is displayed

I have a Flex 3 app with a view in a viewstack, and that view must only be created when requested. I have declared validators for each of the controls on the view and I have created a method called checkAllValid() which runs Validator.validateAll(). This works great when I'm actually using the controls (using the change or focusOut event...

Flex, resize children when parent is resize

Hi I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size. <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:m...