mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-21 01:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,72 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user