| Previous | Next | |
Windows: Flash 8 or 9 AS2.0 SWF + mProjector
3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector
2.0;
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
2.0;
mApplication.createWindow(flashFileName:String, x:Number, y:Number, parameter:String, title:String, type:String, backgroundColor:String, ownedByMainWindow:Boolean[, intialAlpha:Number][, resizeable:Boolean][, hasShadow:Boolean][, shapeFilename:String]) : ObjectflashFileName - Path to the .swf file used to initialize the window.
x - Window x position.
y - Window y position.
parameter - Context parameter. Use this parameter to store coded information about the window. For example if the window represents an IM chat, this param could contain the userid of the chat.
title - Window title.
type - one of the following string values:
backgroundColor - WINDOWS Only - A number representing an RGB color (not applicable in windowless mode).
ownedByMainWindow - True or false. If the value is true, the child window will have the same zOrder class as the main window.
intialAlpha - MAC ONLY - the initial alpha level of the window (0 to 100; where 0=transparent and 100=opaque). If no value is specified, a value of 100 is used. This vaule can be used to create a semi-tranparent window or to fade a window in and out. You can change the window's alpha level using mWindow.setAlpha(level).
resizeable - MAC ONLY. If no value is provided, resizable=true.Adds the resizeable contros to the "STANDARD" window frame.
hasShadow - MAC ONLY - use Mac OS provided drop shadow. If no value is provided, hasShadow=true.
shapeFilename - MAC ONLY - name of the TIFF to be used as a window mask.
If your window type selection is "RECTANGULAR", mProjector will play your swf in a rectangle the size of the movie. It will underlay the TIFF you choose as the shape, around the outside of the this rectangle. This is another to create simple anti-aliased shaped windows on the Mac. See Using mProjector Macintosh for more information.
An object.; ; Returns a window object.
Method; Creates a new window. The returned window object has the same methods as the main mWindow object. The context parameter passed to this function can be retrieved by the created window's ActionScript using the mWindow.getParameter() function.
The following example creates a window and calls one of its methods.
var win = mApplication.createWindow("popup.swf",100,100,"hello","popup","RECTANGULAR",0,true);
if (win)
{
win.setZOrder("NORMAL");
}Creating and Controlling Multiple Windows, Window to Window Communications
| Questions or Feedback? | Previous | Next |