Flex :: Fixed And Variable Height?

Mar 23, 2010

I've got the following Flex application markup:

<app:MyApplicationClass
xmlns:app="*"
width="100%"

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Dynamic Textfield With Fixed Height But Variable Width?

May 23, 2008

How can i make a dyn textfield with fixed height but variable with width?

ps what is the difference between

Code:
var pageContent:TextField;
vs
var pageContent:TextArea;

View 5 Replies

Flex :: Calculate Height Of Text (width Fixed)?

Nov 18, 2009

I want to create a text box with a fixed width that will fit itself to its current text. So I went ahead and wrote this simple application[code]...

View 2 Replies

Flex :: ClipAndEnableScrolling When Parent Doesn't Have Fixed Height?

Nov 21, 2010

I am having some problems with clipAndEnableScrolling, it works fine for VGroup when the parent has fixed height, but if the parent doesn't have a fixed height then it doesn't work and the content spills over. e.g:

<s:TitleWindow width="500" height="500">
<s:VGroup width="100%">
<s:Group width="100%">

[code]......

View 1 Replies

Flex :: Spark RichEditableText Word Wrap With Percent Width And Fixed Height?

May 11, 2011

I know this question has been asked before but the other solutions didn't work for me quite well. here's my sample application.

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code].....

View 1 Replies

ActionScript 3.0 :: Define A Flash Movie With A Fixed Width But 100% Height?

Sep 18, 2009

I am trying to define a flash movie with a fixed width but 100% height. I have the movie setup with an onResize handler. My problem seems to be in the HTML. I can get it to go 100% width and height or have it aligned top left but not centered.

Code:
html, body {
height: 100%;
margin: 0;

[Code]....

View 2 Replies

Actionscript 3 :: Variable Height For Rows Of DataGrid In Flex?

Oct 28, 2011

i am creating a popup of a textarea though which i am storing my notes in a data grid. The Code for the data grid is given below.

Now when i add the note IT fits in one of the rows. Now all the rows have same size. I want to make the size variable so that the text fits in each row. For big text notes the height of rows should be greater so that no scroll needed. similarly when the data is small then the height should be small

<mx:AdvancedDataGrid x="0" y="231" width="872" height="273" fontSize="12" id="dgRecentNotes" horizontalGridLineColor="#01030B" dataProvider="{patientProfile.notes}" horizontalGridLines="true" variableRowHeight="true">

[Code].....

View 1 Replies

ActionScript 3.0 :: Variable Vs Fixed Timestep In Flash

Jan 25, 2011

This seems to be a popular argument lately, but I'm just looking for some input. I've always used a variable time step in flash, using getTimer, and finding the dt each frame. I then multiply the dt by whatever variables or constants for updates, such as a velocity for example. In mathematical theory, this would keep constant velocity or movement no matter what the framerate, however this is not actually the case.

Lately I've been using lots of particles and collisions, and while I usually see around 50-60, sometimes it will drop to 30 or even 20. That's a big fluxuation. For the times that it does drop, the movement will slow down, until it picks back up again, and it will seem to shoot forward all of a sudden. It's not really as drastic as I make it sound, but it's noticible enough.

[CODE]...

View 9 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 :: Add Fixed Gridlines Chart In It?

Oct 19, 2010

Is anyone know how to adding fixed gridlines chart in flex, for example: I have a vertical axis which has a minimum value 0 and the maximum value 100 but I only want to display gridlines on values 30 and 70.

View 1 Replies

AS3 :: Flex - Create Fixed Size Swf In Pure Only?

Aug 11, 2010

I was wondering if there are anyways to get the fixed size swf file when I build my AS3 only project in Flex environment. I can't use scaleMode="noScale" since my swf is very small. I don't want it expand it to full browser winder either. Are there anyways to do it?

View 2 Replies

Flex :: Fixed Y-axis Width In Columnchart

Sep 22, 2010

I'm using a flex columnchart to display data, that changes at runtime. It works perfectly, except the fact, that the y-axis with is automatically resized when the values goes under 1.For example first the values of the charts are between 0 and 10. The y-axis now has labels like 0,1,2,3,4...10. If the values are going under 1 the labels are updated to 0.0, 0.1, 0.2...1.0. And because of the width of the labels, the group with the charts is resized.It looks like the chart is "jumping".So, I need a way, to set a fixed width of the y-axis of the chart.

View 2 Replies

Actionscript 3 :: Position A Component In Flex That Is Fixed?

Nov 23, 2011

Just like in HTML / CSS you can set the position of a div to be 'fixed' using css. For example, a header that is fixed at the top of the web page when the user scrolls down the webpage.

Is this possible in Flex?

I have had a look at the

VDividedBox

control which kind of does what I'm after but don't like the 'divider'.

View 2 Replies

Flex :: Convert A FXG Image To Bitmapdata Of Fixed Size

Oct 10, 2011

I need to do this conversion so that I can determin the drag drop colour a puck lands on.

possibly involving:

ImageSnapshot
BitmapData

This would be in Flex 4

View 1 Replies

Flex :: Place Window Of App Just In Special Div With Fixed Size?

Feb 28, 2012

I have a Flex 4 app, which is in a full-window mode now.

Is it possible to place window of my Flex app just in the special div with fixed size (for example 400x400px)?

View 1 Replies

Flex :: Spark Datagrid Fixed Column, Horizontal Scrolling?

Jul 11, 2011

How can I make my datagrid have its first column fixed and scroll the reset horizontally and vertically?

View 1 Replies

Flex :: Scale A Spark DataGrid With Fixed RowCount & No Scollers?

Nov 1, 2011

I am trying to find a way to Scale (either font or scaleX&Y) a DataGrid (with equestedMinRowCount = requestedMaxRowCount = requestedRowCount = dataProviderLength), so that it would Always show all the Rows (so no scrollers).Solution I came up with for Scaling is:

protected function thisDatagrid_resizeHandler(event:ResizeEvent):void
{
if (event.oldWidth < this.width) {

[code]......

View 2 Replies

Actionscript 3 :: Use SWF Height For Class Variable?

Sep 18, 2011

I want to use height in [SWF height=200] for class variable.

I tried the following code but it causes compile error.

const SWF_HEIGHT:int = 200;
package {
import flash.display.*;

[Code].....

If I use the number, 200 instead of const SWF_HEIGHT, the compile error doesn't happen. But I don't want to write the same number on 2 places.

Is there way to avoid writing the same number on 2 places?

View 2 Replies

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.0 :: Dynamic Text Field - Variable Height?

Nov 2, 2008

Is there a way to adjust the height of a variable text fieldto match the dynamic content populated at run-time?I have a dynamic text field on the stage. I replace the copyin that field at run-time and it may be 1, 2, 3, or 4 lines long ifthe width of the text field stays the same. Is there a way tocontrol the height of the control to adjust to support only thenumber of lines needed? I'd like to set another control on thestage right below this field but I need the correct height of the

View 1 Replies

ActionScript 2.0 :: Positioning Dynamically Created MC's W/ Variable Height Along Y Axis?

Nov 7, 2006

My code works fine as long as all the dynamically created MC's have the same height.he following pulls in data from an array structured as such:

Code:
elements1= [
{file:"image1.jpg", sequence:0, header: "", description:"Text One", VRname: "Sample1" },

[code].....

View 3 Replies

ActionScript 2.0 :: Input Variable - Get A Ball To Accelerate To A Height That The User Inputs

Aug 26, 2011

I am trying to get a ball to accelerate to a height that the user inputs.

[Code]....

View 3 Replies

Flash :: Flex Relative Size Component, Fixed Size Border?

Mar 3, 2011

I want to create a panel (or any other component) inside a component that has a 5 pixel border on all sides, but scales fully when the window is resized. I know I can set width to "100%" to make it resize, but that gives me no borders. If I put it to "95%",I have borders, but they scale annoyingly. Also, that only works for borders on the right or lower bounds, and not to the left or upper sides.Is there a convenient way to do this without having to write tons of resize-code (in which case I will not bother and just accept bad rescale behaviour, as it is for a private pet project).

EDIT: I know that I can just overwrite the display handling and set the positions manually every frame. I wondered if there is a cheap way to do it in the mxml-structure, along these lines:

<mx:Panel>
width="100%" height="100%"
</mx:Panel>

Coming from C++ and Java, I am intrigued by the option of setting something to "95%" and let the library work out the details, instead of having to write many lines of code, just so my text-area always keeps a 5 pixel distance from the border, but scales with window width.If there is no easier way to do it than figuring out pixel sizes by hand and setting the coordinates.

View 1 Replies

Flex :: 4 - Specify Height And Width Of Flex Alert Box In Css?

Apr 18, 2011

In my Flex 4 app I would like all my alert boxes to be a specific width and height, how do I specify that in the CSS? I want to avoid having to specify the width and height every time I want to show an alert, that's why I'd like to set it in the CSS, but does not look like there's a way to.. Something like this does not work:

mx|Alert
{
height: 100;
width: 300;
}

View 3 Replies

ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?

Mar 25, 2011

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?

View 3 Replies

ActionScript 3.0 :: Resizing A Movie Clips Height Automatically To Match The Height Of Some Dynamic Text

Jul 1, 2010

I am resizing a movie clips height automatically to match the height of some dynamic text that is displayed above it (will eventually be loading it from xml ). is there a way to keep a safe margin top and bottom? this is my code so far Text_Box_Graphic.height = Text_Box.height;

View 2 Replies

Flex :: External SWF Variable Updates Global Variable In Main Timeline?

Feb 8, 2010

I have 2 movie clips, one being loaded into a container MC via "loadMovie();"In the main movie there is a variable with no value, in the external movie there are 5 frames, each with a value to update the variable in the main movie.

IE: if on frame 1, global value = 1 / if on frame 2, global value = 2 / etc etc I'm familiar with passing variables INTO an external swf, but am stumped on how to do it the reverse way.

View 1 Replies







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