pseudo.Curtain class
View Sample :: Return to index  
pseudo.Curtain.Curtain(pThis:MovieClip)
Curtain constructor. You never use the constructor to create this component.

Parameters None
Returns Nothing
Example
    None


pseudo.Curtain.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.Edit
Use this static function to create new Curtain on the specified movie clip. Never use constructor directly to do it.

Parameters pOwner The movie clip on which the new Curtain will be drawn.
strName The new Curtain instance name.
nDepth The new Curtain instance depth.
Returns The reference to new Curtain instance
Example
    The following example demonstrates how to create curtain instance using pseudo.Curtain class and to add pane into it.

    Create a new fla file and save it somewhere , for example, as test.fla. Into the folder where you saved test.fla file copy the package with our pseudo components and other folders that are shipped with them (namely, pseudo and classes folders). Open Actions panel and insert into the code editor the following code..

    //Create the instance of curtain
    var curtain = pseudo.Curtain.create(this, "curtain", 1);

    //set the size of the curtain movie clip
    curtain.setW(100);
    curtain.setH(200);

    //Set the pane that will be displayed within the curtain var pane:pseudo.Pane = pseudo.Pane(curtain.setPane(pseudo.Pane));
    curtain.setLook(pseudo.look.StdLook.getInstance());

    //This function set the layout of the component
    curtain.setAlign("bottom");

    //Set the class that will be used to trigger the "showHide" event
    curtain.setResize(classes.ResizeTitle);

    //finally render the component
    curtain.update();
    curtain.draw();

    // This code will draw the Curtain using XP look and feel skin.
    // Please notice that you should always use some skin to create the component,
    // this can be done like in this example, and the skin will be complied into the swf file,
    // or you can use another technique and load the skin at a run time.
           


pseudo.Curtain.setResize(pClass:Function):pseudo.BaseMovie
Sets the class that will be used to trigger "showHide" event.

Parameters pClass Function value. The class that will be used to trigger "showHide" event. Two possible classes that are shipped with the this package are: classes.ResizeTitle, pseudo.ResizeHideLine.
Returns pseudo.BaseMovie instance
Example
    None


pseudo.Curtain.setPane(pClass:Function):pseudo.BaseMovie
Sets the class that will be used create the pane for the curtain instance.

Parameters pClass Function value. The class that will be used create the pane for the curtain instance.
Returns pseudo.BaseMovie instance
Example
    None


pseudo.Curtain.isHidden():Boolean
Indicates whether the curtain is hidden or displayed.

Parameters None
Returns Boolean value indicating whether the curtain is hidden or displayed.
Example
    None


pseudo.Curtain.setAlign(strAlign:String):Void
Sets possible layout for the curtain

Parameters strAlign String value that will be used to decide what layout to use. Possible values are: "bottom", "right", "top", "left".
Returns Nothing
Example
    None


pseudo.Curtain.getAlign():String
Returns String value indicating what layout is used

Parameters None
Returns String value indicating what layout is used
Example
    None


pseudo.Curtain.showHide():Void
Hides or shows the content of the curtain.

Parameters None
Returns Nothing
Example
    None
Flash UI Components (c)TUFaT.com, All Rights Reserved.