Package | com.globfx.showroom |
Interface | public interface IShowRoomContent |
The IShowRoomContent interface helps ShowRoom to resize a loaded Flash.
If the Flash is a Flex application, its main object will always implement mx.core.IFlexDisplayObject and
ShowRoom will propertly scale it by calling the setActualSize()
function through the
IFlexDisplayObject interface.
However if the main Flash class does not implement IFlexDisplayObject, it can implement IShowRoomContent to be properly scaled when loaded by ShowRoom.
If the Flash is running into the PowerPoint slide (not full screen), the size of the Flash is the same as the stage size. The Flash could use the stage size (once added to the stage) to resize and layout itself. It can also implement the IShowRoomContent interface.
If the Flash is running in full screen mode during the PowerPoint Slide Show, it must implement this interface to properly resize and layout itself.
Method | Defined By | ||
---|---|---|---|
setShowRoomContentSize(newWidth:Number, newHeight:Number):void
This method is called when ShowRoom resizes the loaded Flash. | IShowRoomContent |
setShowRoomContentSize | () | method |
public function setShowRoomContentSize(newWidth:Number, newHeight:Number):void
This method is called when ShowRoom resizes the loaded Flash. The Flash should layout itself to fit this new size.
Parameters
newWidth:Number — The new width for this object.
| |
newHeight:Number — The new height for this object.
|