Error:Error #2154: The NetStreamObjectis invalid. This may be due to a failed NetConnection.
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
Adobe Flash Builder 4 has been released and with it the Flex 4 framework some of the features listed below: Powerful coding tools ENHANCED
Develop using a powerful Eclipse™ based IDE that includes editors for MXML, the ActionScript® language, and CSS, as well as syntax coloring, statement completion, code collapse, interactive step-through debugging, and automatic generation of common code. Rich visual layout ENHANCED
Visually design and preview user interface layout, appearance, and behavior using a rich library of built-in components. Extend the built-in Flex framework components or create new ones as needed. Import functional application UI created using the Adobe Flash Catalyst™ interaction design tool. Data-centric development NEW
Introspect Java™, PHP, Adobe ColdFusion®, REST, and SOAP services to display methods and properties in the new Data/Service Explorer. Bind methods to UI components using a simple drag-and-drop approach. Interactive data visualization ENHANCED
Create data dashboards and interactive data analysis by simply dragging and dropping a chart type and linking it to a data source using the Flex Charting library. Use the powerful Advanced Datagrid to enable users to explore complex data. Skinning and styling ENHANCED
Customize the appearance of an application using CSS and graphical property editors. Quickly set the most commonly used properties and preview the results in Design View. Browse available themes and apply them to your project using the new Theme Browser. Integration with Adobe Creative Suite design toolsENHANCED
Import design assets created using Adobe Flash Professional, Illustrator®, Photoshop®, or Fireworks® software, or import a complete application user interface created using Flash Catalyst. A new workflow between Flash Professional and Flash Builder facilitates importing and updating custom Flex components. Native support for Adobe AIR
Create applications for the Adobe AIR® runtime with Flash Builder 4, including all the tools required to build, debug, package, and sign AIR applications. Adobe AIR lets you quickly develop RIAs for the desktop using the same skills and codebase you use to build RIAs for the browser. Code refactoring ENHANCED
Quickly navigate through code or restructure it by renaming all references to a class, method, or variable. Flash Builder 4 adds move refactoring. Powerful testing tools ENHANCED (Premium edition only)
Accelerate application performance using memory and performance profilers that monitor and analyze memory consumption and CPU cycles. Support for automated functional testing tools such as HP QuickTest Professional is also available. Network Monitor NEW (Premium edition only)
Generate a detailed audit trail of all data passed between the local Flex application and the back end, assisting with debugging and performance tuning. Advanced data services ENHANCED
Use open source BlazeDS to add binary, high-performance, HTTP-based data transport, or add the Adobe LiveCycle® Data Services ES2 module for real-time data push and pub/sub messaging. Command line build NEW (Premium edition only)
Use the new command line build capability to automate your build process. Flex unit testing integration NEW (Premium edition only)
Automate functional testing using the Flex unit testing framework. ASDoc support NEW
Display comments in MXML and ActionScript editors using ASDoc.
Adobe® Flash® Catalyst™ is a new professional interaction design tool for rapidly creating user interfaces without coding.
Transform artwork created in Adobe Photoshop® and Adobe Illustrator® into functional user interfaces.
Create interactive prototypes with the ability to leverage them in the final product
Publish a finished project as a SWF file ready for distribution
Work more efficiently with developers who use Adobe Flash Builder™ 4 to create rich Internet applications (RIAs). Designers use Flash Catalyst to create the functional user experience then provide the project file to developers who use Flash Builder to add functionality and integrate with servers and services.