ActionScript 3.0 :: Flex - How To Read Height Of VBox

Nov 1, 2008

I have a VBox. I fill it with some children. Each children having a different height. I didn't specify any height to my VBox. So that it will resize to it's content. Ok. But how can I now read the height of my VBox? I mean how can I find out how much space it takes? I tried to use myVBox.getRect(this).height but it always returns 100 ...

View 11 Replies


Similar Posts:


Flex :: VBox Doesn't Add Child If All The Objects' Height Over The VBox's Height?

Jun 7, 2011

I have a VBox with fixed width and height, and I add image objects with fixed width and height. I find that if my objects' height exceed the VBox's height, it doesn't show the object. I tried validateNow(), but it doesn't work. The object is added, but VBox just doesn't display it, so it leaves a blank with a same height as my other object.

[Code]...

View 1 Replies

Flash :: Can't Autoscroll A VBox Unless Height Is Explicity Set?

Jul 10, 2009

I have a VBox who dynamically adds and removes children programatically. The height is set to 100% and verticalScrollPolicy=auto.When a user wants to add another child to that Vbox, I want it to autoscroll to the bottom of the VBox since that is where the child is added.

I've tried every solution I could find online, but no matter what, the verticalScrollPosition and maxVerticalScrollPosition are both ALWAYS equal to 0. Even if I manually scroll to the bottom of the VBox and press a button that alerts these numbers.(Even after 'validateNow()' as well).

The only time I can get these numbers to change programmaticaly is when the VBox height is set in pixels, which I don't want since the children all have varying heights.Plllease tell me that it's possible to set verticalScrollPosition without hard coding the height in pixels? Am I missing something totally obvious here?

View 1 Replies

Actionscript 3 :: Possible To Blur A VBox In Flex?

Aug 3, 2009

I want to blur a VBox component when my mouse is out of it and unblur it when my cursor comes back to the VBox region. How can I blur a VBox in Flex?

View 1 Replies

Flex :: Controlling Which VBox Gets Scrollbar

Nov 4, 2009

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.[code]

View 2 Replies

Flex :: Add Radiobutton Child To VBox?

Feb 2, 2010

I am having troubles adding a radiobutton to a VBox in actionscript.

var radioButton:RadioButton = new RadioButton();
radioButton.groupName = "source";
radioButton.label = "label";

[Code].....

I first created these radiobuttons in mxml and it worked fine, but now that the radiobuttons need to be dynamically generated in actionscript it doesnt work.

When stepping through in the debugger I get to a binding error (1009) when trying to execute the addchild statement and nothing shows up in the VBox.

View 1 Replies

Flash :: Add A Border To A Flex VBox?

Oct 4, 2010

How do I add a border to a Flex VBox? My VBox is the renderer of a List. I've tried the following without success (in particular VBox's borderVisible="true" borderStyle="solid" borderColor="0x888888"):

<mx:List id="myList" dataProvider="{myData}"
width="100%" height="100%"
variableRowHeight="true"

[Code].....

View 3 Replies

Actionscript 3 :: Flex Having A VBox With Vertical Buttons?

Jul 17, 2009

I am trying to get a left hand like panel bar in my application, one much like the OneNote left hand(notebook) panel.

I have been trying to use a VBox with Buttons and setting the rotation on the buttons to 90. The buttons seem to disappear when I do this.

An example of what I am trying to achieve is here:[URL]..

What is the best way to achieve Vertically stacked buttons like this?

View 2 Replies

Flex :: Displaying The Background In VBox While Using WindowShader

Nov 20, 2009

I am using a WindowShader in my website. every thing is working fine. but for somereason i am unable to display any background for my "home_feeds" VBox. If i add components on it, i can see them. But they backgound is not working. Even if i remove every thing from the Canvas(with home_feeds) i still dont see any background. But if i remove the comments from my mx:List.. i can see the background.

my code is given below

<mx:VBox right="35" paddingRight="10" verticalAlign="top" horizontalAlign="right">
<containers:WindowShade id="shade" opened="false" openIcon="{null}" closeIcon="{null}" paddingTop="0"

[Code].....

View 1 Replies

Flex :: Fill An HBox In From The Right - VBox From The Bottom?

Jan 27, 2010

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:

[CODE]...

View 2 Replies

Flex :: Change VBox To HBox Dynamically

May 4, 2010

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.

View 1 Replies

Full Image In Background In A VBox In Flex?

Jun 15, 2010

I was wrote the following code to set the background image in one vBox.

vBox.setStyle("backgroundImage", "PreviewBackground.png");
vBox.setStyle("backgroundAttachment", "fixed");

Where the height and width of vBox was 250 x 350 and the height and width of background image was 400 x 400.The problem is that the background image doesn't show the full image. The image has cropped. How can i show the full image as a background image?

View 1 Replies

Flex :: Get Cooridnates When Using VBox For Stacking Up Components?

Aug 9, 2010

In flex, I am using VBox & HBox to stack components. When I try to get x,y coordinate of a component, I always get 0. If I specify cooridnate like mx:VBox x="120", then I get the value.

How can I get the coordinate without explicitly stating it.

View 2 Replies

Flex :: Adding A Child To A VBox Component?

Mar 8, 2011

I'm having a problem when adding a child to a VBox component. Is it not the same thing?:

List Item:

<mx:Script>
<![CDATA[
public function addChildren():void {

[Code]....

I am injecting two properties (question and answer) to the FaqItem component from an auxiliar file (using BabelFX) that depends on the id of the FaqItem, but it is only working when I choose the second option. If I use the first option, I get a child but with the text in question and answer fields is empty. I need to use the first option.

View 1 Replies

Flex 3 :: Manage Hboxs In Vbox Flex

Jul 28, 2011

I have VBox that contains two Hbox. The first hbox is not included in the layout while second is. After a event occurs, first hbox is visible & included in the layout. But the problem is the second hbox does not move down & first & second are overlapping. I tried using the co ordinates x,y, move it does not work.[code]Why are both of them overlapping & how can i get second box after first one.

View 1 Replies

Flash :: Jquery - Read Width & Height Ob An Object?

Nov 24, 2009

Is there any way to read the width and height of a flash object using jQuery?

View 1 Replies

Flex :: A VBox With Only One Rounded Corner And Gradient Background

Oct 5, 2009

I'm working with Flex 3.4 SDK.

I'm trying to programmatically(yep, must be this way) style/skin a VBox so that its top right corner is rounded, and it gets a two colors gradient brackground.

Modifying examples I found around I was able to accomplish both effects(corner and background) but only separately:

VBox with not all rounded corners: [URL]

VBox with gradient background: [URL]

But what I need to do is to apply both at the same time. And all my coding attempts so far have failed silently.

View 2 Replies

Flex :: Style Vscrollbar And Hscrollbar Inside A Vbox?

Nov 23, 2009

I'm trying to style vscrollbar and hscrollbar inside a Vbox.But there's always a white square thing at the right bottom cornor which can not be styled.

My CSS is:

ScrollBar{
downArrowUpSkin: Embed(source="assets/images/scrollbar/arrow_down.png");
downArrowOverSkin: Embed(source="assets/images/scrollbar/arrow_down.png");
downArrowDownSkin: Embed(source="assets/images/scrollbar/arrow_down.png");

[Code].....

View 2 Replies

Flex :: Create A VBox That Will Grow To Fit All The Children Rather Than Use A Scrollbar?

Feb 18, 2010

I have a Canvas with a VBox in it. As I add items to the VBox, I want the VBox to grow, I want the scrollbar on the Canvas to control the visibility.

View 2 Replies

Flex :: Animated Component Adding-delete In A VBox?

Mar 23, 2011

Is there a way to make the elements of a VBox smoothly move to their new positions when a new element is inserted or removed?

I actually need only to make them move smoothly when I remove an element.

View 1 Replies

ActionScript 2.0 :: Dynamically Load JPEGs And Read Their Width/ Height?

Jan 30, 2004

I was wondering if there was a way to dynamically load JPEGs and read their width/ height attributes before they actually land on stage. I have tried it once wherein I hide the targetted movie clip and try to utilize the INIT functin to check for initialize. This works pretty good except that a little dynamic animation I need tends to act a little later than it should creating a bug if u proceed immediately.

View 4 Replies

Flex :: Create Wobble Effect For A Component (VBox/HBox)?

May 11, 2011

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.

View 1 Replies

Flex :: Automatically Scroll VBox When Item Is Drug Near Top / Bottom Edge?

Dec 30, 2009

I have a VBox containing a bunch of panels. I have implemented dragging and dropping but I need to be able to scroll automatically when the item is drug near the edge. I am having mixed results. I can get it to work, but not well. My example is below. It works if the user bounces their mouse around a little near the top or bottom edge, but I want it to work if they just hold the mouse there.[code]So if they are within 50px of an edge then it should scroll by 50px. I've exaggerated the numbers just to get an affect.

View 1 Replies

ActionScript 2.0 :: Dynamically Load JPEGs And Read Width / Height Attributes Before Land On Stage

Jan 30, 2004

I was wondering if there was a way to dynamically load JPEGs and read their width/ height attributes before they actually land on stage.I have tried it once wherein I hide the targetted movie clip and try to utilize the INIT functin to check for initialize. This works pretty good except that a little dynamic animation I need tends to act a little later than it should creating a bug if u proceed immediately.

View 4 Replies

Bind A Flex Component's Height To Height Of Browser Window?

Nov 10, 2009

I want to constrain the height of a flex component to the height of the browser viewport.

The component's children are populated from a database table using a repeater, and are basic checkboxes. There are enough of them that the flex app ends up being about twice the height of the screen, which means some of the rest of the layout goes crappy on me. How can I force the component that contains these to limit itself to the size of the viewport?

View 4 Replies

Flex :: Setting Spark List Height To Its Content Height?

Apr 1, 2010

How to set a Spark List height to the height of its content?Tried this:

var lastRow:IVisualElement =
myList.dataGroup.getElementAt(myList.dataGroup.numElements - 1);
myList.height = lastRow.y + lastRow.height;

It works in case of a single item, but lastRow is null in case of more items.

View 5 Replies

Flex :: Layout - Set Height Of Accordion To Height Of Tallest Child

Apr 5, 2010

By default the height of an Flex Accordion container is the height of the initially selected child. I'd like to be able to set the height to the tallest child so that no resizing or scrolling is necessary when other children are selected. I do not want to use the resizeToContent property. I want the size of the container to stay constant no matter what child is selected.

My current thought is to extend the accordion class setting the creation policy to "all" and then override the measure function to loop through all the children and find the tallest one and use that for the height. This seems a little kludgy though, so I'd like to know if there is a better approach. Ultimately my question is: is there a way to set the size of an accordion container such that the container never resizes and scoll bars are never necessary to display any of the children?

View 1 Replies

Flex :: Make Height Of SWF == Height Of Content?

May 26, 2009

I am going to embed a Flex app on an html page. The html page is already going to have a scroll bar to scroll up and down. The contents of the flex app are very dynamic, and I don't want to have an extra scroll bar when there is already one. So is there a way to make the height of the swf match the height of the contents of the swf?

View 2 Replies

Flex :: Resize Event And Resize Effect Of A VBox?

Dec 8, 2010

I'm having a little issue with the resize event and resize effect of a VBox.

I have something like this:

<mx:VBox id="container"
backgroundColor="0xFFFFFF"
backgroundAlpha=".9"
paddingTop="15"
paddingLeft="15"

[Code]...

View 3 Replies

Flex :: Layout - Vbox Child Elements To Take 100% Of Width Without Indicating Width="100%"

Sep 12, 2009

is it possible to make the child elements of a vbox to occupy 100% of the width without indicating width=100% for each element ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved