|
Text
Rectangle - download
this sample files
This
sample shows how to get and set window rectangle coordinate information
by using fscommands.

Although
the window rectangle is invisible in iceProjector or in the exported
projectors, you can use the following fscommands in fla to contol
the whole flash movie's behaviors. Here are some fscommands descriptions
- fscommand("fas.win.ClickToMove","false");
//When set to false, disable the flash window to be drag to move
in a whole.
- x1=0; y1=0; x2=100; y2=100;
parmStr=x1 add "," add y1 add "," add x2 add
"," add y2;
fscommand("fas.win.SetRect",parmStr);
fscommand("fas.win.SetRect","300,200,600,400");
// Set the window rectangle to specified values.
-
fscommand("fas.win.hide","");
//Hide the whole flash movie.
-
fscommand("fas.win.OnTop","FALSE");
//Make the whole flash movie can be overlapped by other desktop
windows.
-
fscommand("fas.win.pos","middle,middle");
//Align the flash movie to the desktop region.
- fscommand("fas.win.GetRect","_root.x1,_root.y1,_root.x2,_root.y2");
fscommand("fas.win.GetXY","_root.x,_root.y");
fscommand("fas.win.GetWH","_root.w,_root.h");
//Get the flash window's rectangle information and save to variables.
|