onBWDone problem Flash Media Server with AS3

February 19th, 2008

I ran into a small problem today while testing FMS 3, and had some problems finding the solution. I eventually found it and would like to share it with you.if you get the error:

ReferenceError: Error #1069: Property onBWDone not found on StreamTest and there is no default value.

Make sure that you map your NetConnection.client to a client class or the class you are working from. Then create the method onBWDone in the target Class. :

1
2
3
4
5
6
7
8
9
10
11
12
13
private function setConnection():void
 
{
 nc = new NetConnection();
 nc.client = this;
 nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
 nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
 nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
 nc.connect(appURL);
}
 
public function onBWDone():void{
}

 Why is this happening?
Well if you look into the VOD application on the FMS server you will see that the application performs a BandWidth check and invokes this function on the client when it is done. You can measure the bandwidth speed in order to select a proper stream (assuming you have encoded multiple bitrates of one video). How to use this?
Take a look here.

Director 11

February 19th, 2008

OMG!! Yes they really did it! Adobe announced Director 11 . I really don’t know what to think now… during my study I was infested by Director while it was quite clear Flash was becomming the new standard for online interactivity. For a moment it looked like Director died together with Macromedia, but NO! Adobe actually thinks they can reanimate it again. And what are the stunning new features? I like these ones the most:
- Enhanced user interface!! Thats great, because the interface really could use that.. so what does it look like??Director castpicture-3.png
 That is one hell of a change compared to mx 2004  - Windows® support (now includes Windows Vista®)  Are these features???? duh, ofcourse it needs to run on the current Operating Systems.- Mac support (now includes Intel® processors) Wow, intel support!!- DirectX 9 support .. ok that’s kewl- Advanced physics with included AGEIA™ PhysX™ engine .. also kewl  So in general I can’t really tell what the idea of this version of Director is, I think that they wan’t to make an easy game develop environment, which is cool. But in the meantime Flash and AS3 are also getting a high performance on 3d (like papervision) and the flash player is widely supported. So what is going to happen to Director? Will Director be able to create AIR applications? Will there be a decent Flash Director Meshup or is it just a wast of shitloads of money? We’ll see.