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


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

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 :: 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

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

Flex :: Components - Components - Any Component With The Functionality Such As Horizontally Collapsible Window Or Panel

Aug 22, 2010

Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.

View 1 Replies

Flash :: Flex Dynamically Created Components Added To Custom Components

Sep 8, 2009

I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....

[Code]...

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

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

Is It Bad Design To Nest Components Inside Components Using Flex 4

Sep 15, 2010

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?

<com:MyComp1>
<com:MyComp2>
<com:MyComp3>

[code]....

View 1 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 :: Column - Prevent Duplicate Stacking In ColumnChart Control?

Feb 9, 2011

Here is my Problem: I'm currently using a ColumnChart to display 6 label/value pairs. When two labels are the same, the chart stacks them up, one on top of the other. I want to display these duplicates side by side, their value might be the same or it might be distinct. My first thought was to append a unique id to the label, but that's not possible according to the client. So, is there a way to tell the chart to also take a hidden id into consideration? Someone suggested to do some sort of grouping, but I need to display each chart separate, as if they were distinct charts.

the chart's data provider is an array of these objects:
obj.description = "des";
obj.countV = 3;//some arbitrary number
obj.id = 2; //a unique id..

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

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

Flex :: Example Flex Zend AMF Sharing Web Services Between Components In ViewStack

Aug 10, 2011

I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.

Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?

View 1 Replies

Flex :: Create Advanced Flex Custom Components Library?

Nov 25, 2011

I want to create a custom component library. the components are customize-able during creation time. means like Accordion or TabNavigator, when we drag and drop the Accordion in flash builder it

<mx:Accordion x="38" y="167" width="200" height="200">
<s:NavigatorContent width="100%" height="100%" label="Accordion Pane 1">
</s:NavigatorContent>

[code]....

View 2 Replies

Flex :: Bubbling Events Within Custom Components In Flex?

Jan 11, 2010

I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component?

View 3 Replies

IDE :: CS4 Stacking Layers?

Mar 22, 2011

I've made my site with photoshop and all images are in *.*png, saved with transparency and in the same resolution 1000x750. I exported them into my working file in Flash. No problems here.I've started to put each of the images in separate layers and in stacking order I wish, still no problems.Now, I am about in 20th layers I am inserting the image, again in separate layer and what happened? The layer will cover over the layer which is almost at the bottom. Meaning...only the trasparency which is very strange.

View 3 Replies







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