I have an HBox with a fixed Width and Height and a Border. In that HBox I have a viewStack with a few different views.
When the viewStack changes views, I want the HBox container to keep resizing to its content. Currently it stays at the fixed width.
Is there any way to do that with an HBox setting?
...
I wanted an animation to dispatch custom events as it cycled. It became apparent that not even trace() was running. After some searching, I found the following at Adobe:
http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html
"If the SWF file contains any ActionScript code, Flex prints a warning during compilation and then s...
I am creating a SWF file using a MXML file. The MXML file define several MX:Button and uses an external stylesheet to style them.
There is a problem I am facing at the moment, I am aiming to style the buttons in a way that is similar to the way I can style HTML button elements. However, I could not achieve such look and feel. For examp...
I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so.
Is there a better way to do it?
...
I've been writing in actionscript 3 using flex builder 3 for a couple of weeks now and never encountered the need to use anything like MXML. I code all layout and design in pure actionscript.
I am not sure why, but many people immediately expect me to have written a lot of MXML when I say that I'm using flex builder.
Is MXML really rec...
I have a page made of custom components. In that page I have a button. If I click the button I have to call another page (page.mxml consisting of custom components). Then click event handler is written in Action-script, in a separate file.
How to make a object of an MXML class, in ActionScript? How to display the object (i.e. the page)?...
I want my custom button to look like the button sample below.
More specifically, I want the width of the button to be determined by the width of the largest word in the label (i.e. width of "Elongated" in my example). The label must wrap, not truncate.
And I want only one pixel between the top edge of the icon and my button's top edge.
...
Is there a way to get the measured-width of a button label in flex based on its style properties at runtime?
...
Hello and thanks in advance for any help you can provide.
My AIR application queries a webservice to see what components to build. A sample of the XML returned is:
<item>
<type>EventList</type>
<url><![CDATA[http://dashboard/cgi-bin/dataService.pl?type=ManagedEvents]]></url>
<index>4</index>
<title>Index 4 eventlist</titl...
I want to create a component that has a couple of "holes" that are to be filled in differently on each use. Currently, I'm doing it like this (using the Flex 4 framework in this example --- it would look almost the same for Flex 3):
public var fooComponent : IVisualElement;
public var barComponent : IVisualElement;
override protected ...
Should programmatic logic be inserted into an MXML Attribute? I have a few Buttons which may or may not dispatch events based on the state of related components (e.g. DataGrid or List), and I'm trying to figure out if the logic is simple enough to simply embed in one of the Event attributes in the MXML.
Here's how I've been doing thing...
When the dataProvider for an DataGrid is an array of objects, how do I set each column's dataField to a property of the object.
I have an ArrayCollection (say a) where each item is an object
For example a[i] = data:Object
Where the object data has some subproperties - data.name, data.title, data.content etc.
I have a DataGrid in which ...
This question is similar to the post:
"Move Button into grid space of a TabNavigator’s tabs in Flex Builder."
http://stackoverflow.com/questions/1150835/move-button-into-grid-space-of-a-tabnavigators-tabs-in-flex-builder
but with a slight difference. I wish to have a button that adds a child (tab) to the TabNavigator in the grid spac...
Hi there.
I'm trying to propagate an assignment to the data parameter of a sub-component through it's parent component's setter. Like this:
<CustomComponent
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="components.*"
>
<mx:Script>
<![CDATA[
public override function set data(val:Object):void
{
...
I have two buttons in my flex app next to each other, ButtonA and ButtonB.
When the user does a mouse roll-over on any of the two buttons, I want the roll-over skin (overSkin) to show on both buttons, i.e. Button A and Button B.
I tried to do it using this when user rolled over Button B:
ButtonA.dispatchEvent(new MouseEvent(MouseEvent.R...
I am creating the documentation of my flex project using ASDoc and having some issues with the bindable metatag.
ASDoc doesn't document public Bindable values unless the Bindable tag has an event name associated with it.
For example:
//This is documented correctly
[Bindable("someEvent")]
/*
* public bindable with event name
* */
p...
In a flex tileList, is there a way to get the cell-address of a given item? i.e. for a given item, get the row/column location for that item in the list.
...
I'm trying componentize one of the pieces of UI in an AIR application that I'm developing in Flex. In this example, I want to display file information on a single line (which has an icon, some text/link and the size).
My code looks like this (component is called FileDisplay):
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx=...
In my TileList, I want to select the TileList items on rollover, as opposed to the click event. I already have the TileList setup to allowMultipleSelection = "true".
...
In a tab navigator, I need to find out the x and y coordinates of each the tabs.
Is there a way to do that?
I am using HBox as Tab in the TabNavigator.
...