» Are you looking for FLV Player?

mProjector WindowResizer class

20 September 2007 | filed under flash | 1 comment

ActionScript iconAs I mentioned earlier, I’m working on a new version of FLV Player. This new version will be created with mProjector, the Screentime tool to create standalone executables with. While working on this project, I found out that there is no built-in functionality in mProjector to drag-resize a window (like mWindow.startDrag, which allows you to move windows around).

So, I created a wrapper class which may be of use for other people working on mProjector projects: WindowResizer. The class resizes an mProjector window, supports min/max dimensions of the window and dispatches 3 events; at resize start, update and end.

I also created a class to turn any clip into a window dragger (moves the window, doesn’t do resizing). Handy when you want the entire background of your window to act as a window dragger. This class is included in the download below:

Please note that I’m using some classes from the ASAP Framework in the WindowResizer class. You’ll need to download the ASAP Framework in order to be able to use the WindowResizer class.

 

One Response to “mProjector WindowResizer class”

  1. scott says:

    I am getting an error from your WindowResizer class using the example code included. Here is the error I receive when compiling…

    Attribute used outside class.
    private function onResizeUpdate ( e:WindowResizerEvent ) : Void {

    could you please tell me what the problem is or could you include a simple working example .fla file that works when compiled in mProjector?

    Thanks in advance,
    -Scott

Leave a Reply