Flex :: Maximizing AIR WindowedApplication And Resizing Containing Component

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


Similar Posts:


Actionscript 3 :: Scaling And Resizing Flex Component?

Mar 30, 2011

I have custom flex component inherited from UIComponent (compiled, no source code access). It has fixed width-to-height proportions and it's scalable. If I set its width and height to 100%, it's trying to fit parent's size, but it keeps width-to-height proportion, so if it's proportion does not equal parent's proportion, there can appear empty space near this component when resizing parent.

What I need, is to fit my component completely to parent's size. Is there any nice way to do this? I could listen to parent's resize event, and play with component's scaleX and scaleY

View 3 Replies

Flex :: Air App - Maximizing Window On Startup

Jul 23, 2010

In my air app I am maximizing the app window on creation complete event. Because of this I initially get a smaller window for a few milliseconds which is maximized after all UI elements are rendered. Is there any way I can specify that the initial size of the window should be maximal? Hard coding the size will not works as the screen sizes may change.

My current code is:
<s:WindowedApplication .... creationComplete="maximize();">
.
.
.
</mx:WindowedApplication>

View 1 Replies

Flex :: Setting Bounds For WindowedApplication

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

Flex :: Access WindowedApplication From Package Class?

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

Flex :: Skin For WindowedApplication Drawing Over Components?

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

Flex :: Remove TitleBar From Spark WindowedApplication?

Mar 25, 2011

How do I remove TitleBar from Spark WindowedApplication?

View 1 Replies

Flex :: Move Chromeless Windowedapplication On Drag?

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

Flex :: Reference WindowedApplication From Inside A Class?

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

Flex :: Make The Rounded Corners Of The Client App In WindowedApplication?

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

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

Flex :: S:WindowedApplication Is Empty And Does Not Initialize / Show Child Components

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

Flex :: Maximizing Panel - Make The Map Within Panel Growing Synchronizely?

Mar 6, 2010

I have a map in a panel.When maximizing the panel,the map remain the smaller size.How to make the map growing synchronizely with the Panel? When maximizing the Panel,I added Resize Effects.How to apply Resize effects on the Map when the extent of the map changing? It seems to me that I should dispatch extentChange event when maximizing the panel.

View 1 Replies

Actionscript :: Flex - Access The "WindowedApplication" Class?

Dec 15, 2010

How do I access the "WindowedApplication" class in Actionscript?

View 1 Replies

Flex3 - Force Resizing Of TitleWindow Component?

Apr 13, 2011

I need some help forcing Flex3 to resize my TitleWindow component after an event.

My resize MXML looks like this:

<mx:Resize id="rs1" duration="1000"
heightTo="{radioVBox.y + radioVBox.height + 110}" />

How do I force it to resize after an event? I want to force the TitleWindow's height to change after the event in myFunc1 ends. private function myFunc1():void {

[Code]...

View 2 Replies

ActionScript 2.0 :: Minimizing And Maximizing Movieclip?

Jun 27, 2006

My work file is attached herewith. If the movie played I explained my problem within the movie itself. I have a main movieclip-A and another movieclip-B sitting inside the main movieclip-A. I am trying to minimize/maximize movieclip-B using a button.

View 2 Replies

ActionScript 2.0 :: Flash - What To Use For Closing - Maximizing And Minimizing App / Window

May 11, 2005

I dont know exactly what to use for closing, maximizing, and minimizing my app/window. Should I make the whole thing one big movie clip or what?

View 2 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Actionscript 3 :: Affect The Maximizing Area Of Other Windows So That AIR Window Is Always Shown?

Mar 27, 2012

I want to do in Adobe AIR (e.g. in ActionScript 3.0) what Facebook Messenger does when it's "maximized":

So imagine that I would be making a clone of this Facebook Messenger.

Is this possible in Adobe AIR?

I've tried to search in the AIR Reference with no success. And I don't even know what words to use in Google Search.

View 1 Replies

Get Object By Its `id` In An AIR WindowedApplication?

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

Flex :: Flex Forcing Resizing When The Image Source Update Is Completed?

May 31, 2009

I have what seems a straighfoward situation: I update the source property of an image, when the image is loaded i want to redraw the border skin to fit the new size of the image.

newImgEdit.addEventListener(Event.COMPLETE, loadImgComplete);
newImgEdit.source = myurl_ressource;
private function loadImgComplete(evt:Event):void {

[Code]...

View 2 Replies

Actionscript 3 :: Resizing A Sprite Without Resizing Its BitmapFill (or Its Contents For That Matter)?

Nov 1, 2010

I am not simply trying to contain things and have the container resize without the contents resizing. I would just use a simple MovieClip for that.. My main focus is on the use of BitmapFill. I'm trying to make a repeating background image for a container; thus far I'm able to draw my BitmapFill sprite to the size I want. (Which is the stage's height) but when the stage is resized, I want to re-size my container but have my containers BitmapFill crop or add more as the window is resized bigger or smaller. Allow me to illustrate what I mean:

I've got a simple rectangle sprite that fills with a bitmap from the library and a simple resize handler function that detects when the window has been resized.what I would like to do is have my rectangle resize to the height of the stage.stageHeight maintaining its bitmap fill, but not resizing the bitmap fill or any children within the sprite.

From what I've read, this is a little tricky because the sprite resizes in relation to what it contains.. or.. something like that.. I really don't know any more.. I saw one example where a person extended the sprite class but I don't know why or how..

in my library there is an image called 'pattern' and my code looks like this:

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);

[code]....

View 2 Replies

ActionScript 3.0 :: Smooth Resizing As Opposed Going In And Resizing Every File Manually?

Sep 11, 2009

I'm loading a few pngs/jpgs externally so they can be swapped out occasionally, and the issue I'm running into is when they are shrunk they become fairly choppy. Is there a way to have flash re-render them, or do something to smooth the resizing as opposed to going in and resizing every file manually myself?

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies

ActionScript 3.0 :: Resizing A Sprite Without Resizing Its Auto-fill?

Nov 2, 2010

I've got a little problem with BitmapFill, I'm trying to use a sprite as a container for various things and i would like it to have a filled pattern background. my problem is that i want it to resize the sprite to the height of the window but not have the background fill resize, and add more / crop as the window size is changed. to illustrate what i mean, please view the diagram attached to this post .

I have an image in my library called 'pattern' and my code is as follows:

ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

[Code].....

View 2 Replies

Flex :: Access Component Properties From Extending Component

Jul 29, 2011

I have a component with a public variable declared

[Bindable]
public var mnuSource:String;

When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).

How do you modify / declare component properties so they are actually available to other components?

View 2 Replies

Flex :: Remove A Component Using A Button In The Component?

Sep 29, 2010

I'd like to use a button within a component to remove it. So, you click it and the component is gone. But, I haven't figured out how you reference the component from within the component. What should I put in click=""?

My component: popCanvas

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel width="200" height="200" title="hello"
click="remove=">

[Code].....

View 1 Replies

Flex - Define A MXML Component And Update MXML Component In Flex Application

Aug 12, 2009

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.

eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )

View 3 Replies







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