Actionscript 3 :: Flex/AIR: Resize All Components Inside A WindowedApplication?
May 14, 2011
It's interesting. If you set stage.scaleMode = StageScaleMode.EXACT_FIT; all components are resized when you resize the window, BUT there is a grey stripe at the bottom of the window that is not.By the way, is it possible to take that grey line/stripe off from the window?Try to resize this window and you'll see what happens:
<?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"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
[code]....
There is also a timer just for checking if the Stage's size is the same as the application window's one.
View 2 Replies
Similar Posts:
Jan 14, 2011
In order to set a background image for my Desktop Flex application, I created a custom skin class, setting the skinClass property to my custom MXML skin. The host component is SkinnableContainer. I use a bitmap image for the custom MXML skin. Everything works fine, except that it's drawing over all my components. How do I get the skin to draw in the background? Should I move the Bitmap markup to somewhere else in my skin file?
View 1 Replies
Jul 5, 2011
I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application:
[Code].....
Unfortunately this simple example shows no child components and even none of the initialize handlers is triggered. However as soon as I change the root tag to mx:WindowedApplication everything behaves as expected: The label and the button are shown and the console shows the output of the two trace statements.
View 1 Replies
Nov 12, 2011
I'm using Flex 4.5, and I have imported a custom class I wrote into the main MXML file.
Inside the class file, I want to be able to create a TitleWindow using the PopUpManager like this:
package classes {
import components.*; // My custom components
import mx.managers.PopUpManager;
[Code]....
This is because this isn't pointing at WindowedApplication. How do I make the first parameter in .createPopUp() point to the WindowedApplication?
View 2 Replies
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
Dec 10, 2011
My component has lots of inner components.When i resize the container component (panel), i want all inner components resize with same ratio. Which function should i use?
View 1 Replies
Nov 4, 2011
I build a swc file by Flash CS5 contains some interface component like TextInput, Label.And then I use it in a flex program.
But I meet the problem when I want use flex repeater for this component.
Following is the a component defined by myself in swc file using Flash CS.[code]...
View 1 Replies
Oct 17, 2009
Is there any way to set horizontalAlign from Action Script not from mxml?
View 1 Replies
May 7, 2010
I am working on a page which mainly consists of Charts and Grids. Thought that Flex would be the best fit with some cool effects. But however, I now feel that ExtJs grid looks better than Flex data grid.
My question is whether there is any possibility / mechanism to embed Ext JS grid into a Flex page. Lets say my main page has a Flex tab panel. In first tab, I would like to see 'Flex Chart' and in second tab I would want to see 'ExtJS grid'.
I would also want to know of any Flex Data grid plugin (if exists), which looks/works just like Ext Js grid.
View 1 Replies
Jun 3, 2010
I have an mxml panel in which I'm using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like:
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...>
<!-- scripts and some controls -->
<mx:VBox width="100%">
[code].....
View 2 Replies
Oct 11, 2011
I want to add an event listener to each component inside a repeater, but don't know how. Here's some code I have tried:
<mx:Repeater id="rp" dataProvider="{dataProvider}" width="100%">
<mx:Button id="attach" creationComplete="addListeners(attach[rp.currentIndex])"/>
</mx:Repeater>
This doesn't work. creationComplete is not called until the repeater has finished instead of (as I expected) when the creation of the button is complete. I'm not sure how to accomplish this.
BTW - I also tried placing the creationComplete on the parent component to the repeater, but it would only be called the first time the component was rendered (the data inside the repeater sometimes changes) so that didn't work.
View 1 Replies
Jun 24, 2011
I have a custom component which is an HBox & I'm trying to resize a child which happens to be an image. This is image is inside a VBox which is also a child of the HBox. I have a number of these images so In UpdateDisplayList I call:myimageArray[0-5].setActualSize(50,50);but the image is never resized it just stays a large default size. The images source is a url path and I'm wondering if that is what is causing the problem?
View 1 Replies
Jul 9, 2010
for some reason this flex 4 code gives me an error but I can't figure out why. In my WindowedApplication I have:[code]That seems like a bogus error since I can assign pref.bounds to rect without an error. I don't know why this isn't working. It works under flex 3 compatibility mode but that also breaks a lot of my spark components so I can't use it.
View 1 Replies
May 20, 2010
I'm developing an AIR application, where i need to access WindowedApplication's function from the package class. This is the Main application (Partial code)
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="initApplication()">
<mx:Script>[code].............
View 2 Replies
Mar 25, 2011
How do I remove TitleBar from Spark WindowedApplication?
View 1 Replies
Sep 1, 2011
I have implemented a chromeless windowedapplication in flex 4. But doing so i noticed that all the maximize, minimize and even the ability to drag the window around is gone. I need the ability to drag the window around. I have done a lot of googling and have been unable to come up with anything.
View 1 Replies
Sep 3, 2011
I am trying to create an AIR app that you can maximize and when you maximize all the components contained in the windowedApplication are scaled with the containing windowedApplication.
At the moment when you maximize the window all the components just stay the same size.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:ATE="http://ns.adobe.com/ate/2009"
xmlns:ai="http://ns.adobe.com/ai/2009"
[Code].....
View 1 Replies
Apr 2, 2010
In my application,showFlexChrome is set as true in WindowedApplication,and the *-app.xml is setted as follows
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<visible>true</visible>
I know how to make the top border rounded corners with follow codes:
borderStyle="solid" cornerRadius="8"
But I cannot find a method to make the bottom border of my app window rounded-corner.
View 1 Replies
Apr 12, 2009
I am having trouble using a custom event in flex. I need to dispatch an event from inside two nested components and receive it in the main application file. The basic set up is a main application file importing a custom "gallery" component.
[Code]..
View 1 Replies
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
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
Dec 15, 2010
How do I access the "WindowedApplication" class in Actionscript?
View 1 Replies
May 11, 2010
i am creating flex 3 component when i re size the window i need to re size the labels and text.how to do this?
View 1 Replies
Jul 29, 2009
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....
View 2 Replies
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
Jul 12, 2010
Say i have a UI with check boxes, text fields etc on 1 frame, and again a different layout on another. If i type values into boxes and click radio and check boxes. is there a way to keep these values on there when i flick to another frame then back again?
View 1 Replies
Feb 8, 2010
Ok, this is a somewhat complicated issue dealing with SWCs and compilers. I've outlined steps to reproduce the problem below. I'm using the method outlined here to bring in Flash content to my project. I have 15-20 SWCs already, and it's working fine for those assets, the problem is specifically related to Flash's components (ComboBox, RadioButton etc.) If anyone has *any* advice on this, please let me know as we are completely stumped at this point!
The issue we're having involves using multiple external SWC files which contain AS3 components from Flash CS4. When two SWCs are linked to an ActionScript project (using Flash Builder 4 Beta (build 4.0.0)) there are collisions in the referenced classes which cause the most recently published SWC to knock out any duplicate classes in the other SWCs. A simple way to replicate this is as follows:
[Code]...
View 3 Replies
Sep 28, 2010
I have a datagrid that occupies 100% of browser screen. I want the grid to automatically resize when the browser is resized to small or full screen.
View 1 Replies
Nov 7, 2011
tried to load a swf(text.swf) inside swf(video.swf).In my (text.swf)i passed some text.while i resize the (text.swf),the text inside the (text.swf) is Changed.Without Changing the Content how can i resize the (text.swf)?Actually my Size of text.swf is 400*44px.If i run alone text.swf size is small,But when i added to (video.swf)the size of text.chat very large.So only i resize the text.swf,But content inside the ?(text.swf)also changedcoding
_loader.load(new URLRequest("text.swf"));
_loader.x=(((_stage.stageHeight)/100)*0.1);
_loader.y=(((_stage.stageWidth)/100)*49);
[code].....
View 1 Replies
Mar 23, 2011
I've got some javascript that calls an AIR function. This AIR functions creates a new HTML element and adds it to the "Stage" like so[code]...
View 1 Replies