Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Mihir@adobeCoE #1
How to Minimize a popup window?
We are using title window as a pop-up.
The title window has a property called closeButton which when set to true
displays a close button on the top right hand corner of the title window.
Likewise, We also need minimizeButton property which can minimise the window.
Is there any such component like title window which has this property of
minimise this window or any other workaround.[b]Text
Mihir@adobeCoE Guest
-
Popup Window
Hi all, is there a way to show a popup window with additional information without calling the page from the server again? Cheers Rob -
Popup menu on popup window
Hi, I want to create a popup menu when a button on a popup window is clicked. I have this in my popup window: myMenu =... -
minimize flash window
Does any one know how to minimize a flash window ( which hides the window like the windows operating system minimize window button) -Thanks Mike -
Double clicking window bar doesn't minimize
In illustrator CS when I double click the bar at the top of the document window the window doesn't minimize to the dock. I actually have to click the... -
can a popup window return data to parent window?
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user... -
RevThava #2
How to Minimize a popup window?
package Thava
{
import flash.events.Event;
import flash.events.MouseEvent;
import mx.containers.Panel;
import mx.controls.Button;
import mx.effects.Resize;
public class MinMaxPanel extends Panel
{
private var minBtn:Button = new Button();
[Embed(source="img/minimize.jpg")]
[Bindable]
public var minijpg:Class;
private var maxBtn:Button =new Button();
private var effResize:Resize = new Resize();
private var previousHeight:int = 30;
private var h1:int = 394;
// public var minMaxButton:MinMaxButton ;
public function MinMaxPanel()
{
super();
minBtn.addEventListener(MouseEvent.CLICK, minimisePanel);
maxBtn.addEventListener(MouseEvent.CLICK, maxmisePanel);
}
// add the minimize and maximize buttons to the Titlebar of TitleWindow
override protected function createChildren():void{
super.createChildren();
super.titleBar.addChild(minBtn);
super.titleBar.addChild(maxBtn);
super.titleBar.addEventListener(MouseEvent.MOUSE_D OWN,handleDown);
super.titleBar.addEventListener(MouseEvent.MOUSE_U P,handleUp);
}
// handleDown and handleUp functions used for dragging the panel container
private function minimisePanel(e:MouseEvent):void{
effResize.heightTo = previousHeight;
effResize.play([this]);
}
private function maxmisePanel(e:MouseEvent):void{
effResize.heightTo =h1 ;
effResize.play([this]);
}
private function handleDown(e:Event):void{
this.startDrag();
}
private function handleUp(e:Event):void{
this.stopDrag();
}
// The below code is for placing the button in the top corner of titleWindow..
// Decide the position of button by giving height,width....
override protected function updateDisplayList(w:Number, h:Number):void{
super.updateDisplayList(w,h);
minBtn.x = super.titleBar.width - 80;
minBtn.y = 10;
minBtn.width = 20;
minBtn.height = 20;
maxBtn.x = super.titleBar.width - 50;
maxBtn.y = 10;
maxBtn.width = 20;
maxBtn.height = 20;
}
}
}RevThava Guest



Reply With Quote

