Archives
-
Recent Posts
Categories
Blogroll
Design Links
Category Archives: Code Snippets
wordpress flash API – sample code – Part 2
This post is part two of the AMF/PHP connector class that I started in a previous thread talking about the PHP part now.. we go to flash. The first class is the DataConnector which establishes the connection to the AMF/PHP … Continue reading
Posted in Actionscript 3.0, AMFPHP, Wordpress
1 Comment
wordpress flash API – sample code – Part 1
so after some expermintations, I could finally get around to posting my findings.. available for people to grab should they wish to. a big credit is due to Tim Wilson on his library which was the basis of all the … Continue reading
Posted in Actionscript 3.0, AMFPHP, Wordpress
3 Comments
papervision 3D optimization tip #1
I am not a big papervision fan, and I don’t usually hide it. PV3D is interesting and versatile, and allows great flexibility in developing great websites and apps, however it’s always a pain to optimize, and I always end up … Continue reading
Posted in Actionscript 3.0, Other
Leave a comment
wordpress flash API – pre production
I am in my 3rd week down the ugly road of redesigning my pathetic 5 year old, HTML only website now with broken databases) as any other flash programmer would do, we try to use everything we know in remaking … Continue reading
Posted in Actionscript 3.0, AMFPHP, Wordpress
2 Comments
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller
one of those little things that are not clearely documented or explained anywhere on the Adobe flash documentation.. I was calling a function to load an image and add it to stage, and everytime I called that image, I was … Continue reading
Posted in Actionscript 3.0, Code Snippets
9 Comments
Bulk Loader and SWF Caching issues
while working with bulk loader on a big project recently, we were hit by one problem that took me a while to solve. the problem was basically this: if you load an swf with bulkloader, everything looks fine and well.. … Continue reading
Posted in Actionscript 3.0, Code Snippets
1 Comment
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
Custom Events
Creating custom events in AS3 is really easy, and very powerful. example: lets say that there is a custom event that should be fired when a “Tween Lite” animation is done playing. we start by creating the custom event : … Continue reading
Posted in Actionscript 3.0, Code Snippets
Leave a comment