ActionScript 2.0 :: Change ListBox Height Without Squashing?
Aug 9, 2006
I'm trying to resize my listbox but I am using a customised Listbox class that someone else has made. I need to have listboxes of different sizes in my project.
My problem is that when I resize the listbox on the stage this doesnt alter the height (presumably as the height is controlled by code within the class). I have tried going through all of the code and renaming the two customised classes and then altering the size on the stage but this doesn't work either.
I have tried altering the height of the listbox using ._height but this squashes the box so the text is too small to read. I can't find any other methods for altering height apart from setSize which I can only get to alter the width.
I'm not sure if I'm missing something obvious or if I'm going to have to delve into the world of customising components.
Kudos to the person who can successfully change the rowHeight of this listbox. It's a V1 Component and that seems to be the problem since using this code: songList_lb.rowHeight = 30; works for me in V2 but not in V1. Since I need to customize the look of the listbox scrollers I have to stay with V1.
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
My swf files are loading in via a swf loader, the pages load in fine. However the loaded swf is squashed, eithen tho the loader and the swf are the same width and height.The page is loading in at the right point on the left, however it does not go to the end of the swf loader on the right. It squashed it so its not to the point where it needs to be. It works fine in the individual swf, however when loaded in it gets squashed and the text looks distorted.
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
i am trying to add the height and width of swf dynamically but i cannot change stage.stageWidth and stage.stageHeight and also am tring with another method also.
[SWF( width="900", height="400")]
Its working fine but while adding the value dynamically it cannot change.
var hei:Number=500; var wid:Number=300; [SWF( width=wid, height=hei)]
It�s suppose to change the height of a box that is containing some text, and I just want it to go from one state to another using simple AS. Is that not possible ?
btn_small.onRelease = smallRelease; btn_Big.onRelease = bigRelease; function smallRelease() {
I need to know how to change the width and the height of the movie clip. I know how to scale x and y but that doesn�t work in my case because i have for example an object which height is 75 pixels and width is 137 pixels. X scale and Y scale would work if my objects were 100 pixels width and 100 pixels height.
Is there anyway to change the height of the slider in AS3? (CS3), I've tried changing the actual graphic (of the bar) in the library and no matter how big I make it it's always locked to 13 pixels high.
I have a completed Flash, but I need to change the stage height. Is there anyway to do this with out have to touch every cell. I have a ball that moves across the the stage, and I don't want to redo the whole thing. I've tried selecting all and moving the items, but it doesn't work.
I would like to have that the height of a canvas change automatically. When there are a lot of labels and images in my canvas, the height must increase. And when there are just a few labels in the canvas, the height must decrease.
Using FB4, I want to change the height of an open spark DropDownList. By default, it shows up to 6 items before scrolling. My dropdownlist contains 7 items, so I want to change the height of the open dropdown list to fit all 7 items without scrolling. As a workaround, I've changed the font size of the items so that they are smaller and all 7 fit, but the smaller font doesn't look good. Is there a way to change this height?
Maybe I'm googling for the wrong thing but I can't find anything on this.
How can I change the line height of a Label element in Flex?
I have two labels in a VBox and there is quite a lot of white space between them which I would like to reduce. There's no line height property and setting the height property causes overlap.
Is there a way to prevent the automatic change of the height property of a DisplayObject? It automatically resizes to match content, though my swf file is 32 pixels height. The code below can show prove of this, first frame enemy.height is 32 but later is 27.5, and this messes up my script.getRect() and getBounds() return exactly the same. Also, I want to know why in the first frame it shows the correct height and in the second it changes, it should show 27.5 from the beginning.
I want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox)
I know there have been several similar posts but of those I've read, there hasn't been an easy straight forward solution that will work dynamically. The solutions posted have ranged from
super.width = wvalue;
super.height = hvalue;
which I did not get to work, and it seemed from the response to the suggestion neither could the person who originally asked for help, to suggestions about using scale, all the way to having to create an event handler that will get notified after the load, which I guess would work once but wouldn't work dynamically.
Here is the scenario -
I want to change width and height for a MovieClip, but I dont want to scale it, (its more like cropping the MovieClip, not shrinking or stretching) and I want to do this several times not just after the load of the MovieClip.
So my questions are:
1) Is there anyway to do this that really works, that hopefully isn't totally convoluted?
I am trying to build a interactive slider,in which when user drag the slider up the height of silhouette increases by some fix amount n when user drag the slider down the height of silhouette decreases by some fix amount.the problem i am facing is that when i drag the slider slowly than everything works fine but when i drag the slider faster than the height dont increase or decrease properly.i mean the increment or decrement in the height of silhouette is depending on speed of slider,which i dnt want.
here is the code-
Code: var bounds:Rectangle = new Rectangle(499.65,260,0,240); slider.addEventListener(MouseEvent.MOUSE_DOWN, moveSlider); stage.addEventListener(MouseEvent.MOUSE_UP, stopSlider);
I want to change the height of a textfield to 60 pixels, without changing the size of the text, and still keeping it centered. When I want to change the size of the texfield, I can change the length, but the height is unfortunately locked. Any ideas? (Unfortunately I can't provide a link or an image, since I haven't made 50 posts)
I am trying to get the sprite overlay to stick to the edges of the stage when I resize the swf window. It works when you resize the width, but not the height.
ActionScript Code: stage.align = StageAlign.LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; var s:Sprite = new Sprite(); s.graphics.beginFill(0x000000); s.graphics.drawRect(0,0,stage.stageWidth, stage.stageHeight); [Code] .....