mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
73 lines
2.1 KiB
ActionScript
73 lines
2.1 KiB
ActionScript
package org.osmf.events
|
|
{
|
|
import flash.display.DisplayObject;
|
|
import flash.events.Event;
|
|
|
|
public class DisplayObjectEvent extends Event
|
|
{
|
|
|
|
public static const DISPLAY_OBJECT_CHANGE:String = "displayObjectChange";
|
|
|
|
public static const MEDIA_SIZE_CHANGE:String = "mediaSizeChange";
|
|
|
|
private var _oldDisplayObject:DisplayObject;
|
|
|
|
private var _newDisplayObject:DisplayObject;
|
|
|
|
private var _oldWidth:Number;
|
|
|
|
private var _oldHeight:Number;
|
|
|
|
private var _newWidth:Number;
|
|
|
|
private var _newHeight:Number;
|
|
|
|
public function DisplayObjectEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, oldDisplayObject:DisplayObject = null, newDisplayObject:DisplayObject = null, oldWidth:Number = NaN, oldHeight:Number = NaN, newWidth:Number = NaN, newHeight:Number = NaN)
|
|
{
|
|
super(type,bubbles,cancelable);
|
|
this._oldDisplayObject = oldDisplayObject;
|
|
this._newDisplayObject = newDisplayObject;
|
|
this._oldWidth = oldWidth;
|
|
this._oldHeight = oldHeight;
|
|
this._newWidth = newWidth;
|
|
this._newHeight = newHeight;
|
|
}
|
|
|
|
public function get oldDisplayObject() : DisplayObject
|
|
{
|
|
return this._oldDisplayObject;
|
|
}
|
|
|
|
public function get newDisplayObject() : DisplayObject
|
|
{
|
|
return this._newDisplayObject;
|
|
}
|
|
|
|
public function get oldWidth() : Number
|
|
{
|
|
return this._oldWidth;
|
|
}
|
|
|
|
public function get oldHeight() : Number
|
|
{
|
|
return this._oldHeight;
|
|
}
|
|
|
|
public function get newWidth() : Number
|
|
{
|
|
return this._newWidth;
|
|
}
|
|
|
|
public function get newHeight() : Number
|
|
{
|
|
return this._newHeight;
|
|
}
|
|
|
|
override public function clone() : Event
|
|
{
|
|
return new DisplayObjectEvent(type,bubbles,cancelable,this._oldDisplayObject,this._newDisplayObject,this._oldWidth,this._oldHeight,this._newWidth,this._newHeight);
|
|
}
|
|
}
|
|
}
|
|
|