Actionsctipt
fully closing netstreams in actionscript
Submitted by benl on Tue, 01/18/2011 - 15:46
Related Terms :
In a nutshell, in AS3, if you need to close netstreams properly, you must close ALL references to the netstream.
Let's say you have a video ("remoteVideo") component with a netstream ("incomingStream") attached to it, and then you want to kill that netstream. You'd think this would do the trick:
incomingStream.close();
incomingStream.removeEventListener(NetStatusEvent.NET_STATUS, incomingStreamHandler);
incomingStream = null;SetTimeout in AS3
Submitted by benl on Thu, 02/19/2009 - 15:54
Related Terms :
A quick snippet to do a setTimeout() in Actionscript 3:
import flash.events.TimerEvent;
import flash.utils.Timer;
var myTimer:Timer = new Timer(1000, 1); // delay 1 second, repeats once
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
private function timerHandler(e:TimerEvent):void
{
//_root.log(root.options[int(option)].caption);
//_root.playPlaylist();
}Fun with flex
Submitted by benl on Sun, 02/15/2009 - 18:42
Related Terms :
So I'm working on the Absurdist Manifesto, which is to be the world's coolest phone tree to nowhere.
First, I started a new flex project in Eclipse configured with Adobe Flex Builder.
Then, I quickly pieced the front-end view of a keypad together in flex.