Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Flex :: Horizontal Align Components Inside HBox

Is there any way to set horizontalAlign from Action Script not from mxml?

View 1 Replies (Posted: Oct 17 09 at 17:46)

Sponsored Links:

Related Forum Messages For Flash category:
Flex :: Center Align A Button In A Hbox?
I have a VBox inside which I have 4 HBoxes. The second level HBox is initially hidden.When I click the label, 'Show more Options', the second level HBox is displayed.Now I have the space occupied by the 'second level HBOx' empty and the 'search' button appaers below the space.My first question is, Is there a way to position the Search Button in such a way that, the space is not there and after the 'Show more Options' label is clicked, the 'Second Level HBox' appears?And the second question is, Can I position the Search Button at the center of the page. Is there any method to center the contents of a HBox of a VBox?This is my code:

<mx:Form x="47" y="219" width="80%" >
<mx:VBox id="searchBox" >
<mx:HBox id="searchTitle" width="100%" height="20" backgroundColor="#2680D5">


Posted: Oct 7 09 at 5:44

View 3 Replies!   View Related
Flex :: Any Way To Bottom Left Align Components?
Any way to bottom-left align components? An <HBox .../> nested in a <Canvas .../> doesn't work because the elements in the HBox are top-aligned instead of bottom aligned.

For example, I'd like my components to be aligned like this:
+-------------+ <-- container
| components |
| | V |
| V +--+ |
| +-+ | | |
| +-+ +--+ |

Posted: May 4 10 at 19:05

View 2 Replies!   View Related
Flex :: MX Text Doesn't Vertically Align, But Other Components Do?
I have the following code layout in mxml. The button will be positioned correctly in the middle, but the text remains anchored to the top. This is not the behavior of the spark component label, but I need multiple style runs in the text and have found the mxText component to be the best solution...

<s:HorizontalLayout verticalAlign="middle" gap="0" />


Posted: Jun 13 11 at 16:34

View 1 Replies!   View Related
Flex :: Flashbuilder - Align Components Left / Centered And Right
I have a Flex app. and have a top banner where I have one graphic I want left aligned, one graphic I want to hug to the right, then some text I want always centered in between the two. Which layout do I use to do this?

Posted: Feb 21 at 18:01

View 1 Replies!   View Related
Is It Bad Design To Nest Components Inside Components Using Flex 4
Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?



Posted: Sep 15 10 at 8:23

View 1 Replies!   View Related
ActionScript 3.0 :: Set Stage.align To Center (vertical And Horizontal)?
How do you set stage.align to center (vertical and horizontal)? StageAlign only defines corners and edges, but I know that centered is possible because that's the default behavior?

Posted: 07-09-2010, 06:25 PM

View 4 Replies!   View Related
Flex :: Use Repeater For Components Inside Swc?
I build a swc file by Flash CS5 contains some interface component like TextInput, Label.And then I use it in a flex program.

But I meet the problem when I want use flex repeater for this component.

Following is the a component defined by myself in swc file using Flash CS.[code]...

Posted: Nov 4 11 at 10:46

View 1 Replies!   View Related
Flex :: ExtJs Components Inside A Driven Page?
I am working on a page which mainly consists of Charts and Grids. Thought that Flex would be the best fit with some cool effects. But however, I now feel that ExtJs grid looks better than Flex data grid.

My question is whether there is any possibility / mechanism to embed Ext JS grid into a Flex page. Lets say my main page has a Flex tab panel. In first tab, I would like to see 'Flex Chart' and in second tab I would want to see 'ExtJS grid'.

I would also want to know of any Flex Data grid plugin (if exists), which looks/works just like Ext Js grid.

Posted: May 7 10 at 11:25

View 1 Replies!   View Related
Flex :: Components Inside A Repeater Not Resizing As Expected?
I have an mxml panel in which I'm using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like:

<mx:TitleWindow xmlns:mx="" layout="vertical" ...>
<!-- scripts and some controls -->
<mx:VBox width="100%">


Posted: Jun 3 10 at 16:20

View 2 Replies!   View Related
Actionscript 3 :: Flex/AIR: Resize All Components Inside A WindowedApplication?
It's interesting. If you set stage.scaleMode = StageScaleMode.EXACT_FIT; all components are resized when you resize the window, BUT there is a grey stripe at the bottom of the window that is not.By the way, is it possible to take that grey line/stripe off from the window?Try to resize this window and you'll see what happens:

<?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx=""
xmlns:mx="library://" xmlns:local="*"


There is also a timer just for checking if the Stage's size is the same as the application window's one.

Posted: May 14 11 at 9:42

View 2 Replies!   View Related
Flex :: Add Event Listener To Components Inside A Repeater
I want to add an event listener to each component inside a repeater, but don't know how. Here's some code I have tried:

<mx:Repeater id="rp" dataProvider="{dataProvider}" width="100%">
<mx:Button id="attach" creationComplete="addListeners(attach[rp.currentIndex])"/>

This doesn't work. creationComplete is not called until the repeater has finished instead of (as I expected) when the creation of the button is complete. I'm not sure how to accomplish this.

BTW - I also tried placing the creationComplete on the parent component to the repeater, but it would only be called the first time the component was rendered (the data inside the repeater sometimes changes) so that didn't work.

Posted: Oct 11 11 at 15:09

View 1 Replies!   View Related
Flex :: Hbox HorizontalScrollPosition Not Working?
I am applying hb.horizontalScrollPosition = value and it does not work withhorizonalScrollPolicy = on/off. Is there any other way to achieve this?

Posted: Jan 12 10 at 5:14

View 1 Replies!   View Related
Flex :: Set The Hand Cursor On A HBox?
I'm trying to set the hand cursor on a HBox. I've tried buttonMode and useHandCursor but have had no luck. This example displays the busy cursor. how to make it display the flashPlayer's hand cursor?

<s:Application xmlns:fx=""
xmlns:mx="library://" xmlns:components="com.dn2k.components.*" >


Posted: Aug 12 11 at 18:07

View 4 Replies!   View Related
Flex :: Change Size Of An HBox In Flex To Fit It's Container?
I create an HBox, fill it with a grid of buttons, and set the scroll policy. When I resize the window, the stage changes size, and so does the HBox ... to a point. Once it reaches the height of the Grid it contains, it stops shrinking, like it has a "min-height". This ruins the scrollbar that I'm trying to establish in this case.

I've set the height to 100%, shouldn't it always take the height of the stage, it's parent?[code]....

Posted: Jul 28 10 at 21:14

View 2 Replies!   View Related
Flex :: Fill An HBox In From The Right - VBox From The Bottom?
I only really need the HBox answer but figure that if we get a good answer in here I'm trying to do a similar thing with a VBox. It would be nice to know this in both actionscript and MXML. So I have an HBox that I want some text aligned from the left and some radios from the right. Like so:


Posted: Jan 27 10 at 22:17

View 2 Replies!   View Related
Flex :: Button Behind Transparent Hbox Unclickable?
I have a HBox with no background, but with some children. Behind the HBox is a button which need to be clicked. The button is unclickable at the moment because the HBox is on top of it. I need the button to be clickable and still have the HBox on top of it

Posted: Feb 15 10 at 9:16

View 1 Replies!   View Related
Flex :: Wrap Buttons In The HBox Instead Of Seeing Scrolling Bar?
I have a HBox and I dynamically add Buttons into it. I want to distribute such buttons horizontally, however I would like to place there on more rows if there is not anymore horizontal space, instead of seeing the scrolling bar.How can I do that ?

<mx:HBox id="tagsPopup" visible="false" horizontalAlign="center" width="100">
<mx:LinkButton label="Tag1" />
<mx:LinkButton label="Tag2" />
<mx:LinkButton label="Tag3" />
<mx:LinkButton label="Tag4" />

Posted: Apr 18 10 at 18:34

View 1 Replies!   View Related
Flex :: Change VBox To HBox Dynamically
I am in need of a strange solution. I have one requirement in which I am displaying two components in a VBox. But on click of the main container I need to maximize that and need to display the components in horizontal. I was just wondering whether I can change the VBox to HBox and viceversa dynamically using actionscript or some other way.

Posted: May 4 10 at 10:37

View 1 Replies!   View Related
Flex :: Change Background Image Of HBox?
I have assigned a logo image of my software to HBox as follows [code]...

Now I need to change the backgroundImage to some other image on a event.

Posted: Oct 25 10 at 12:20

View 1 Replies!   View Related
Actionscript 3 :: Create HBox With Only The Top Corners Rounded In Flex?
I'm trying to create an HBox in flex that has only the top corners rounded. HBox (and all the other flex containers) have a cornerRadius style, but it applies to all corners. I'm not seeing a way to specify the style of individual corners.

Is there any built-in way to do this, or will I need to write my own custom drawing code to draw the background with rounded corners?

Posted: Oct 27 09 at 14:55

View 2 Replies!   View Related
Flex :: Fcreate HBox Component With Default Values
I want to create an HBox component; for example HLBox that behaves exactly like an HBox but has as default width and height 100%.

Posted: Dec 7 09 at 11:44

View 1 Replies!   View Related
Flex Custom Event - Dispatch An Event From Inside Two Nested Components And Receive
I am having trouble using a custom event in flex. I need to dispatch an event from inside two nested components and receive it in the main application file. The basic set up is a main application file importing a custom "gallery" component.


Posted: 04-12-2009, 05:02 PM

View 1 Replies!   View Related
Actionscript 3 :: Flex 3 Make Text From 2 Labels In A Hbox Look Like One Word?
I'm adding dynamically labels to hbox, and i need to remove all spaces between the text of 2 nearby labels

i did horizontalGap = 0 for Hbox
padding left and right = 0 for labels

anything else i could do ? or maybe some other component


Posted: Nov 2 09 at 5:18

View 1 Replies!   View Related
Flex :: Create Wobble Effect For A Component (VBox/HBox)?
how can we create a wobbling effect using flex 3?I need something like the effect which is show in ubuntu when we see an alert or move a folder.

Posted: May 11 11 at 10:11

View 1 Replies!   View Related
Copyright 2005-08, All rights reserved