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
Similar Posts:
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
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
Sep 29, 2010
Here is the code for Dynamic Autoscroll Flash Gallery.In all images are loaded dynamicaly from xml.In this all the images should of same size.The Movie clip in the stage should be of image size.
View 3 Replies
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
Jan 17, 2011
Ok, this should be a simple problem but I am clueless. I have a textbox called msg_ui and some code that places text in it every so often. When new text is placed I just want the textbox to scroll down so I can see it.
[Code]...
View 2 Replies
Sep 7, 2009
How creating an autoscroll on a bunch of thumbnails. It should scroll fluidly on mouseposition.
View 3 Replies
Jan 30, 2012
i literally scoweredthe net for a week or 2 and still i cant make it..
ok heres the thing..i am making a program that will receive a TEXT MESSAGES. When the program received new message, the message will be display in flash and scroll the message up and IT WILL ONLY scroll up again if there is a NEW message received. by the way, I load my text suing text file Loadvars.
View 2 Replies
Sep 27, 2011
Flex has great classes for manipulating with controls in multiscreen apps like VBox, HBox, VGroup etc. But my project is in Flash Proffesional CS5.
View 1 Replies
Aug 9, 2011
My Flex datagrid automatically scrolls to the top when I update the dataProvider (ArrayCollection). I do not want this to happen, but I still want all of the objects to update. I am developing a semi-real time dashboard for a customer's management system, that will update often. If it scrolls to the top every time it updates, it will be very difficult and frustrating to use.I've attempted to use the following techniques to prevent this, none have worked.
dataProvider = updatedDataProvider;
dataProvider.updateItem(dataProvider);
dataProvider.source = updatedDataProvider.source;
dataProvider.updateItem(dataProvider);
I've attempted to dispatch a mouse event to hold the vertical scrollbar in place, I've attempted to lock the vertical scrollbar position value in place (saving and reassigning)..
View 2 Replies
Apr 28, 2005
is there a way so that you can make exturnal text automaticly scroll all the way down to the bottom?
http:[url]....
heres what I mean in example....and is there a way to hit the enter button to send a sumbit function?
View 2 Replies
Jan 11, 2011
I have a bit of graphical content inside a symbol that I've created in Flash CS5. Let's call it FunGraphics_Art, it's set to export, and it extends MovieClip.When I edit the symbol in Flash and I hit control-A, the properties panel tells me that all of the content has a height of 72 pixels, positioned at 0,0.The content consists of a few (classic) textfields, and a couple of Checkbox components and a few bits of vector art.All the content is on a single frame, no layers.So far, so good. I export my art as a .svc and am able to use it all in code just fine. However I then add the following bit of code to my .as file..[code]Somehow, there's something strange going on that's causing Flash to think my exported symbol is about 75 pixels higher than it actually is. I've looked around for invisible "blank" textfields, but haven't found anything yet.
View 2 Replies
May 6, 2011
I've created a dynamic text field, and set autoSize to true, so it can grow was tall as necessary. I then want to use the _height value to size a container graphic (speech bubble). Here's the (simplified) code:
[Code]....
Returns 19.6 followed immediately by 35.2. It's as though reading txt._height causes it to recalculate, so it's correct the second time. I also tried the textHeight property, which also seems to get recalculated after _height is accessed. This sequence, for example:
[Code]....
View 2 Replies
Jul 29, 2010
I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.
My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;
But this seems to just relate to the width/height of the mc that my_loader is nested in...
I have tried the following and had no luck:
stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth
View 8 Replies
Oct 27, 2010
I am currently playing with the events. I am trying to create a mouse down listener for a VBox. The issue I am facing is, the listener gets invoked only when I click exactly on the border. I need to cover the whole GroupBox for the mouse down.[code]
View 4 Replies
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
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
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
Feb 12, 2010
i want to change properties of vbox or other controls like cornerRadius thru as3
View 1 Replies
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
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
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
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
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
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
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
Feb 14, 2009
Inside a VBox I have VideoDisplay that call by dynamically. Vbox is inside a viewstack and I have a linkbar also. My need is when I click first one the first video will show and all the others deactive like that.
My code is shown below
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="[URL]"
layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#837575, #E5E6BA]" creationComplete="showXML
()">
[Code] .....
View 0 Replies
Nov 25, 2009
I can't figure this out. How do I set the x param of component A which is a child of a <vbox>?I know that I can't expect changes to the y param to stick (since that's the point of the <vbox>) but I need to change the x params of the components in the vbox so they're not just all left-aligned at zero...
View 1 Replies
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
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