Monthly Archives: May 2008

Double Buffering for smooth netstream FLV playback

This post is to highlight the double buffering technique (also known as dynamic buffering) that “should” make video streaming in flash alot smoother without having to prebuffer anything. This technique works on progressive video download as well as streaming: var … Continue reading

Posted in Actionscript 2.0, Actionscript 3.0, Code Snippets | 7 Comments

Reading from and writing to shared object

Reading the shared object: var my_so:SharedObject = SharedObject.getLocal(“SomeName”); var trackingDate:Date = my_so.data.theDate writing to a shared object: var my_so:SharedObject = SharedObject.getLocal(“SomeName”); var _date = new Date(); my_so.data.theDate = _date; my_so.flush(10000); and clearing a shared object (erasing its content) var my_so:SharedObject … Continue reading

Posted in Actionscript 2.0, Code Snippets | Leave a comment

Loader flash calls a function from the loaded flash

let’s imagine this scenario: A.swf loads B.swf after load is completed,A.swf needs to execute a function in B.swf called runCommands() for example.. here is the code for that (this is the code inside A.swf): import flash.display.Loader; import flash.display.LoaderInfo; import flash.events.*; … Continue reading

Posted in Actionscript 3.0, Code Snippets | 2 Comments