Error:Error #2154: The NetStreamObjectis invalid. This may be due to a failed NetConnection.
at flash.net::NetStream/invoke()
at flash.net::NetStream/attachCamera()
at Broadcaster/setupStream()[C:\Users\Dave\Adobe Flash Builder 4\Broadcaster\src\Broadcaster.mxml:67]
at Broadcaster/netStatus()[C:\Users\Dave\Adobe Flash Builder 4\Broadcaster\src\Broadcaster.mxml:50]

The error is pretty descriptive and what is saying is that was the NetStream was not getting the Camera signal or received a null value when trying to attach it.

The reason that this was happening is because in the NetStatusEvent Listener inside the switch statement we are using the event.info.code = “NetConnection.Connect.Success”; both for the Connection and the Stream

Flash Develop 3.1.0 RTM

The new relase of Flash Develop 3.1.0 RTM is out now it comes as a a major feature release, with new things like refactoring and multiproject support,Flash Player 10.1 and Flex 4 support added and Real MXML completion implemented, full list below:

* Get the debug Flash Player (You need: Projector and ActiveX)
* Get Adobe Flex SDK. The free Flex SDK (2, 3 or 4) is required for ActionScript 3 development if you don’t use Flash CS*.
* Java 1.6+ is required for the Flex compiler (ActionScript 3).