Results 1 to 4 of 4

Thread: close the window

  1. #1
    Join Date
    Jun 2008
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Post close the window

    i use window to viow my pics.....

    ------------------------------------
    import mx.containers.Window;

    var my_button:mx.controls.Button;

    System.security.allowDomain("http://www.helpexamples.com");

    var buttonListener:Object = new Object();
    buttonListener.click = function(evt_obj:Object) {

    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Salam", contentPath:"image1.jpg",closeButton:true});
    my_win.setSize(320, 240);
    };

    my_button.addEventListener("click", buttonListener);
    -------------------------------------------------------
    but i cant use closeButton...
    help pls..

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    What is closeButton? createPopUp has the following syntax:

    Code:
    createPopUp(parent:DisplayObject, className:Class, modal:Boolean = false, childList:String = null):IFlexDisplayObject
    I think what you're looking for is the removePopup() method.
    Last edited by Medyman; 06-20-2008 at 03:15 PM.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    Assad (06-19-2008)

  4. #3
    Join Date
    Jun 2008
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    please write a script for me which open a pop-up window by pushing a button and has the ability to include an image in it..,also i had a problem in enabling the close button, so please check if it works properly or not. tnx

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by Assad View Post
    please write a script for me which open a pop-up window by pushing a button and has the ability to include an image in it..,also i had a problem in enabling the close button, so please check if it works properly or not. tnx
    Sorry, I don't just create scripts for people. If you have a specific question, I'd be happy to demonstrate the technique and/or troubleshoot the code.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •