X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fok%2Fnamespaces2.as;h=6354a65349e69b22dd798a1c78a8b0370adfc654;hb=b8aa0577aae67db4da5221459102202febc5c103;hp=337116de39f839334d87fcfdff048d3d58bc1919;hpb=4da50aa69285c6f5abd97e41dd195648b8df49fe;p=swftools.git diff --git a/lib/as3/ok/namespaces2.as b/lib/as3/ok/namespaces2.as index 337116d..6354a65 100644 --- a/lib/as3/ok/namespaces2.as +++ b/lib/as3/ok/namespaces2.as @@ -5,11 +5,16 @@ package { use namespace flash_proxy; - /** - * This class acts as the public interface for both the flash api and the javascript api - * It is a proxy class that wraps ApiInternal. It provides a method interface, as well as - * exposing an event interface to flash. - */ + dynamic public class OverrideProxy extends Proxy { + flash_proxy override function callProperty($name:*, ...$args:Array):* { + var returnValue:* = _tweens[$name].apply(null, $args); + realign(); + if (!isNaN(_pauseTime)) { + pause(); //in case any tweens were added that weren't paused! + } + return returnValue; + } + } dynamic public class Main extends flash.display.MovieClip { flash_proxy function tf(x:int):* @@ -18,10 +23,12 @@ package { return null; } + public function Main() { this.tf(1); tf(2); + trace("[exit]"); } }