mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -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,35 @@
|
||||
package org.osmf.elements.proxyClasses
|
||||
{
|
||||
import org.osmf.events.LoadEvent;
|
||||
import org.osmf.media.MediaElement;
|
||||
import org.osmf.media.MediaResourceBase;
|
||||
import org.osmf.traits.LoadTrait;
|
||||
import org.osmf.traits.LoaderBase;
|
||||
|
||||
public class LoadFromDocumentLoadTrait extends LoadTrait
|
||||
{
|
||||
|
||||
private var _mediaElement:MediaElement;
|
||||
|
||||
public function LoadFromDocumentLoadTrait(param1:LoaderBase, param2:MediaResourceBase)
|
||||
{
|
||||
super(param1,param2);
|
||||
}
|
||||
|
||||
override protected function loadStateChangeEnd() : void
|
||||
{
|
||||
dispatchEvent(new LoadEvent("loadStateChange",false,false,loadState));
|
||||
}
|
||||
|
||||
public function set mediaElement(param1:MediaElement) : void
|
||||
{
|
||||
_mediaElement = param1;
|
||||
}
|
||||
|
||||
public function get mediaElement() : MediaElement
|
||||
{
|
||||
return _mediaElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
package org.osmf.elements.proxyClasses
|
||||
{
|
||||
import flash.events.Event;
|
||||
import org.osmf.metadata.Metadata;
|
||||
|
||||
public class ProxyMetadata extends Metadata
|
||||
{
|
||||
|
||||
private var proxiedMetadata:Metadata;
|
||||
|
||||
public function ProxyMetadata()
|
||||
{
|
||||
super();
|
||||
proxiedMetadata = new Metadata();
|
||||
proxiedMetadata.addEventListener("valueAdd",redispatchEvent);
|
||||
proxiedMetadata.addEventListener("valueChange",redispatchEvent);
|
||||
proxiedMetadata.addEventListener("valueRemove",redispatchEvent);
|
||||
}
|
||||
|
||||
public function set metadata(param1:Metadata) : void
|
||||
{
|
||||
proxiedMetadata.removeEventListener("valueAdd",redispatchEvent);
|
||||
proxiedMetadata.removeEventListener("valueChange",redispatchEvent);
|
||||
proxiedMetadata.removeEventListener("valueRemove",redispatchEvent);
|
||||
for each(var _loc2_:String in proxiedMetadata.keys)
|
||||
{
|
||||
param1.addValue(_loc2_,proxiedMetadata.getValue(_loc2_));
|
||||
}
|
||||
proxiedMetadata = param1;
|
||||
proxiedMetadata.addEventListener("valueAdd",redispatchEvent);
|
||||
proxiedMetadata.addEventListener("valueChange",redispatchEvent);
|
||||
proxiedMetadata.addEventListener("valueRemove",redispatchEvent);
|
||||
}
|
||||
|
||||
override public function getValue(param1:String) : *
|
||||
{
|
||||
return proxiedMetadata.getValue(param1);
|
||||
}
|
||||
|
||||
override public function addValue(param1:String, param2:Object) : void
|
||||
{
|
||||
proxiedMetadata.addValue(param1,param2);
|
||||
}
|
||||
|
||||
override public function removeValue(param1:String) : *
|
||||
{
|
||||
return proxiedMetadata.removeValue(param1);
|
||||
}
|
||||
|
||||
override public function get keys() : Vector.<String>
|
||||
{
|
||||
return proxiedMetadata.keys;
|
||||
}
|
||||
|
||||
private function redispatchEvent(param1:Event) : void
|
||||
{
|
||||
dispatchEvent(param1.clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user