<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="0.92">
<channel>
	<title>OMAR FALEH [FLASH GORDON]</title>
	<link>http://blog.morscad.com</link>
	<description>This is the blog of Omar Faleh. a Montréal-based flash programmer and web developer. Flash Gordon is the Nick Name I was given by one of my former project managers after a project I did with him.. we work in different places now but the name remains as a memory</description>
	<lastBuildDate>Wed, 28 May 2008 19:36:42 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Double Buffering for smooth netstream FLV playback</title>
		<description>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 startBufferLength:Number= 2; //keep this in the range 2-4+
var xpandedBufferLength:Number = 15;  ...</description>
		<link>http://blog.morscad.com/code-snippets/double-buffering-for-smooth-netstream-flv-playback/</link>
			</item>
	<item>
		<title>Reading from and writing to shared object</title>
		<description>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 = SharedObject.getLocal("SomeName");
my_so.clear(); </description>
		<link>http://blog.morscad.com/code-snippets/reading-from-and-writing-to-shared-object/</link>
			</item>
	<item>
		<title>Loader flash calls a function from the loaded flash</title>
		<description>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.*;
import flash.net.URLRequest;

...

var loaderRequest:URLRequest = new URLRequest("B.swf");
var movieLoader:Loader = new Loader();
movieLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
movieLoader.load(loaderRequest)....

function completeHandler(_event:Event)
{

	var _loaderInfo:LoaderInfo = _event.target as ...</description>
		<link>http://blog.morscad.com/code-snippets/loader-flash-calls-a-function-from-the-loaded-flash/</link>
			</item>
	<item>
		<title>Custom Events</title>
		<description>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 :

package  {
	import flash.events.*;

	public class FinishedEvent extends Event{

		private var trackingValue:String;
		public static var ...</description>
		<link>http://blog.morscad.com/code-snippets/26/</link>
			</item>
	<item>
		<title>Static Classes</title>
		<description>Static classes are life savers for those who want a central data hubs where all shared variables are stored and accessed and modified. Some programmers think that this is dangerous since there is no real control over who gets to do what with the variables.. but for a scenario where ...</description>
		<link>http://blog.morscad.com/uncategorized/static-classes/</link>
			</item>
	<item>
		<title>Creating a Video Player in AS3 using NetStream</title>
		<description>I always try to opt from using the flv player component.. although it saves us half the work when it comes to accessing the properties and methods, sometimes it is still very heavy (in size) compared to this approach that really doesn't add anything worth mentioning
import flash.media.SoundTransform;import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;

public ...</description>
		<link>http://blog.morscad.com/code-snippets/creating-a-video-player-in-as3-using-netstream/</link>
			</item>
	<item>
		<title>Gugga framework Alpha Release</title>
		<description>http://www.gugga.com/GuggaFlashFramework/
I am still waiting for the Fuse library to be ported into AS3.. IU can't bring myself to get back into the flash built-in Tween classes.
I heard some recommendations for tween-lite... I wonder if I should start dipping my  feet into that puddle or just wait until I see ...</description>
		<link>http://blog.morscad.com/adobe-technologies/gugga-framework-alpha-release/</link>
			</item>
	<item>
		<title>Thermo is Coming</title>
		<description>

"Thermo" is an upcoming Adobe product that makes it easy for designers to create rich Internet application UIs. Thermo allows designers to build on familiar workflows to visually create working applications that easily flow into production and development.
interesting, eh? </description>
		<link>http://blog.morscad.com/adobe-technologies/thermo-is-coming/</link>
			</item>
	<item>
		<title>Event Broadcaster - passing events from one object to another</title>
		<description>let's imagine this scenario:

we instantiate a certain number of instances of object A on the stage (_root) .. and we want each object to be receive a different value, and have that object do something with it

a real life example would be: create a client object and pass the client ...</description>
		<link>http://blog.morscad.com/code-snippets/event-broadcaster-passing-events-from-one-object-to-another/</link>
			</item>
	<item>
		<title>how to access an object on stage from a child class</title>
		<description>I am not sure that this is the best or only way of doing it.. but here's what I found so far
what used to be _root.mcName in AS2 is gone... and now the while concept of root is also gone

according to Adobe (from the Flash CS3 help file)
the root property ...</description>
		<link>http://blog.morscad.com/code-snippets/how-to-access-an-object-on-stage-from-a-child-class/</link>
			</item>
</channel>
</rss>
