RSS

How to Stream and Playback Live Video using Flash Media Server

0 Comments | This entry was posted on Aug 11 2009

Sorry for the lack of instruction or description. I would rather hand off some code that works, rather than no code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var cameraPlayback:Video = new Video();
addChild(cameraPlayback);

var camera:Camera = Camera.getCamera();
camera.setQuality(0,100);

var publishStream:NetStream;
var playbackStream:NetStream;

var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

var client:Object = {};
client.onBWCheck = function() { }
client.onBWDone = function() { }

nc.client = client;

nc.connect("rtmp://YOUR_FMS_SERVER_URL/live/");

function onNetStatus(e:NetStatusEvent) {

switch(e.info.code) {
case "NetConnection.Connect.Success":
publishStream = new NetStream(nc);
publishStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
publishStream.attachCamera(camera);
publishStream.publish("myCamera");

playbackStream = new NetStream(nc);
playbackStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
playbackStream.play("myCamera");

cameraPlayback.attachNetStream(playbackStream);

break;

}
}

Actionscript 3 Marker Helper Class

1 Comment | This entry was posted on Apr 15 2009

markerclass

It’s a pain to try and keep track of item registration points when placing them on the stage. So to help my debug efforts, I create the Marker class. It draws a crosshair where ever you need one. You can use them to keep track of any specific point. Read more »

Droplet: Quick Drop.io Desktop AIR App

24 Comments | This entry was posted on Mar 14 2009

blogpost

I’m proud to announce the beta release of my first Drop.io desktop AIR application called Droplet. Read more »

How to Load External Images in Actionscript 3.0

14 Comments | This entry was posted on Mar 11 2009

loadingimage

Using the flash.display.Loader class in AS3, you can load in external image files to display in flash. The loader class supports loading in JPG, SWF, PNG, or GIF file types. The Loader class sounds more like a loading manager that watches load progress, rather than a display object. Fact is, the Loader is treated as a DisplayObject, so when it’s ready you just add it to the stage. Pretty simple, so let’s get started!

Read more »

Actionscript 3 Webcam Configure

25 Comments | This entry was posted on Feb 24 2009

webcamconfig

Setting up a webcam in Flash has always been pretty simple. I feel there are two cases in flash that you would use the webcam in a project: Streaming video for video chat or using it as a tool to take a photo. These two cases have completely different purposes and thus you want your camera setup properly for each.

Read more »

Joshua Davis and Bezier Curve Animations

0 Comments | This entry was posted on Feb 10 2009

joshuabezier

I’ve always held Joshua Davis pretty high on my list of inspirational programmers/designers. It seems just as I think he has fallen off the radar, he puts out something like this. Wow, this guy always has a trick up his sleeve…

See his presentation with great examples!

GTween improved squencing support

0 Comments | This entry was posted on Jan 26 2009

As some of you may know, Grant Skinner has been working on his own tweening library called GTween. The project is still in beta stages with a promise to be delivered public in the next couple weeks.

gskinner.com: gBlog: Preview: GTween beta 5, Now With More Sequencing.

What is a Flash Developer!?

0 Comments | This entry was posted on Jan 18 2009

Lee Brimlow has yet another great writeup, but this time it isn’t another great video tutorial. Instead he finally spelled out his opinion on what makes a Flash Developer, or a Flash Designer and the difference between Flash and Flex.

Check it out!

PhizzPop Minneapolis | Team space150

0 Comments | This entry was posted on Jan 16 2009

So a few guys from work and myself were asked to compete in the Microsoft PhizzPop challenge this week. I had heard of the competition a few months back, but I had thought it was more of a student challenge. After being able to rearrange my work schedule for 3 days of Silverlight training, I was off to the MN Microsoft campus! Read more »

Tweensy Goes Public!

0 Comments | This entry was posted on Jan 06 2009

 

tweensy_love

As you may have read in my last post, I was lucky enough to get my hands on a beta version of “Tweensy“. Tweensy is an actionscript 3 tweening library from Shane over at Lost In Actionscript. Within the short time that I have been able to use the library I have been amazed at the speed and simplicity of it’s use. As of today, Tweensy has officially gone public!

There are two main libraries available plus an FX expansion package: Tweensy Original and Tweensy Zero. In Shane’s latest post he describes why Tweensy is better than any other as3 tweening engine. To sum it up, he uses Object Pooling and utilizes DoubleLinked lists rather than a Dictionary or Array. I could try and go into more detail, but Shane does a better job at explaining.

Ease of use is the main seller for me. Yes performance is great to have when you are working on high profile, bleeding edge projects. However I am often working on more basic projects that need to be completed on a tight deadline. Currently I use Tweener. It is so simple to setup and use. There are a couple of extra steps that you will need to take with Tweensy to accomplish the same ol’ tween as Tweener. Tweensy Zero should make it more worth my while though on the smaller projects. The entire library is compressed down to 2.9kb! I’m not sure to what extend this version is limited, but it will be great to help spiffy up some boring banners!

Of course what I’m most excited about is the effects package that Shane has created that pairs with Tweensy well. It currently is somewhat limited to creating emitters and glowing blurry objects (as you can tell in my first demo and many of Shane’s), but he has also used it to create a cool BumpMap and Bulge demos. Also, Shane claims it’s easy to create better tweens that animate on complicated motion guides with Tweensy.

Now I’m off to download the latest source from Google Code! Be sure to snag your copy and post your demos!

Tweensy adds much needed effects support

4 Comments | This entry was posted on Dec 23 2008

tweensyaudio

I was lucky enough to recently acquire a beta version of the Tweensy library from Shane McCartney over at Lost In Actionscript. I’ve taken my first crack at using the engine and I have to say I’m very excited to see what is still in store for this promising library. Currently I use Tweener for all my projects. It is quick, painless and very simple to use. It doesn’t support filters and uses mainly static methods. Tweensy on the other hand has support for many different types of effects that all developers yearn for (BitmapLayer is my favorite). Tweensy is broken down in easier to manage pieces that help keep the file size down. Be sure to check back often for more demos as I expand my knowledge of this great new piece of work. Oh, and I almost forgot to mention…Tweensy has support to “yo yo” a tween!

View The Demo

Drop.io AS3 Library Update

5 Comments | This entry was posted on Dec 15 2008

UPDATE: I have posted what there is for files on Google Code. The code currently is considered as-is with no support.

So as I mentioned in this post, I have been working on an AS3 library for interfacing with the new Drop.io API. Since my announcement, I’ve been getting some great support from both developers and the Drop.io team. It has been a while and I wanted to let you know I’m still working on the library. I’ve got some free time coming up soon, so I hope to use that time to get something ready for a beta stage.

Keep checking back for more updates! My goal is to have it complete by the end of the year.

Super Duper Desktop FLV Player added to Softpedia Database!

3 Comments | This entry was posted on Dec 06 2008

I wrote in a previous post about an Adobe AIR Desktop FLV Player that I developed a while back for quick viewing of Adobe FLV files. I’m happy to announce the app has been officially added to the Softpedia database! You can now download the file from either Adobe’s Marketplace or from Softpedia. Read more »

Drop.io AS3 Library

1 Comment | This entry was posted on Dec 01 2008

UPDATE: I have posted what there is for files on Google Code. The code currently is considered as-is.


So I mentioned in my last post about the new Drop.io API and how easy it is to use. Well, since then I’ve been playing around with the API in flash and accidentally started an AS3 Flash library for the API. Hopefully I’ll have enough time soon to complete it so other Flash developers can use it to create their own Drop.io apps. The image above is one of the first tests I was working on that started all this.

I will be posting updates on the library, so be sure to check back. If anyone has already started working on an AS3 library, feel free to post a comment. Any help or support I can get is appreciated!

The New Drop.io API: Drop.io Desktop Manager

2 Comments | This entry was posted on Nov 29 2008

UPDATE: This application has been altered. The finished product is called Droplet and be viewed HERE

Over a year ago I had the pleasure of working on the team that created Drop.io. I had built the original Flash uploaders. Since then, the Drop.io team has been hard at work and just last week released a new version of the site with a TON of great new features. My absolute favorite is the new Drop.io API. Getting a FREE key is simple and very quick (possibly faster than getting a FREE drop)! With only an hour into it, I’ve already managed to move, delete, and add assets quickly and painlessly. I can’t wait to get some more time into this and build out a drop manager in Adobe AIR.

Keep checking back for more status updates, I hope to have the Drop.io Desktop Manager available soon!

Until then, check out some of my other AIR apps…
Super Duper Desktop FLV Player
The File Furnace