RE: [flexcoders] Flex2 (beta2) app causes FMS2 to drop application
Try setting the object encoding at an instance level on the NetConnection and NetStream Objects. nc = new NetConnection(); nc.objectEncoding = flash.net.ObjectEncoding.AMF0; nc.connect(rtmp:/flexvideo ); nsPublish.objectEncoding = flash.net.ObjectEncoding.AMF0; nsPublish = new NetStream(nc); - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Richter Sent: Monday, April 03, 2006 5:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 (beta2) app causes FMS2 to drop application I have been playing around with two Flex applications. One has been written by Brian http://flash-communications.net/technotes/fms2/flex2FMS/index.html http://flash-communications.net/technotes/fms2/flex2FMS/index.html and the other one is by Christophe Coenraets http://coenraets.com/viewarticle.jsp?articleId=98 http://coenraets.com/viewarticle.jsp?articleId=98 Brian's example works fine for me but Christophe's example gave me problems. I have sort of merged the two apps and have narrowed the problem down to one line of code: nsPublish = new NetStream(nc); When I run this line I see the following in the FMS2 console: Dropping application (flexvideo/_definst_) message. Clients not allowed to broadcast message. I can't figure out why this occurs, especially since Brian's app is very similar. Here's my complete MXML code. All you need on the FMS side is an app 'flexvideo' - no server side code is needed. Note: some of the vars decalred here aren't actualy used. Can you shed any light on this problem? Stefan ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* applicationComplete=init() mx:Script ![CDATA[ private var nc:NetConnection; private var camera:Camera; private var microphone:Microphone; private var nsPublish:NetStream; private var nsPlay:NetStream; private var localVid:Video; private var videoFMS:Video; private function init():void { nc = new NetConnection(); nc.connect(rtmp:/flexvideo); nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus); nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); } private function netStatus(event:NetStatusEvent):void { // Write out information about connection events: writeln(netStatus: + event); var info:Object = event.info; for(var p:String in info) { writeln(p + : + info[p]); } writeln(); // Change the application state if we connect or disconnect. switch(info.code) { case NetConnection.Connect.Success: // Close and recreate streams if (nsPublish != null) nsPublish.close(); //if (nsPlay != null) nsPlay.close(); //nsPublish = new NetStream(nc); //nsPlay = new NetStream(nc); break; case NetConnection.Connect.Closed: break; } } /** * Reports a security violation error after trying to connect. */ private function netSecurityError(event:SecurityErrorEvent):void { writeln(netSecurityError: + event); } private function startStream():void { camera = Camera.getCamera(); camera.setMode(160, 120, 6, true); microphone = Microphone.getMicrophone(); localVid = new Video(160, 120); localVid.attachCamera(camera); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(320, 120); videoHolder.addChild(localVid); outpanel.addChild(videoHolder); localVid.x = 0; localVid.y = 0; // THIS LINE CAUSES THE ERROR nsPublish = new NetStream(nc); } public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.validateNow(); } ]] /mx:Script mx:Panel title=Local WebCam id=outpanel mx:ControlBar mx:Button label=Start Stream click=startStream()/ /mx:ControlBar /mx:Panel mx:TextArea width=486 height=217 id=traceArea/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] RE: Cairngorm Framework with Flex 2.0
Sure, what is the question? - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Venu Vasireddy Sent: Wednesday, March 15, 2006 2:13 PM To: flexcoders@yahoogroups.com Subject: Cairngorm Framework with Flex 2.0 Hi , Anybody using Cairngorm Framework with Flex 2.0? In perticular with FES data services? Thanks Venu Architect -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0
It is very much still a relevant and useful framework. You dont necessarily need to use Cairngorm with FES but I have on a few occasions. You should consider Cairngorm and FES 2 different animals. Cairngorm is a good framework for application development and FES is a great framework for performing a multitude of Enterprise Messaging and Data Services. Check here for the latest version of Cairngorm http://www.richinternetapps.com/archives/000143.html Someone will correct me if there is a newer version out there Also, you can google Cairngorm, there are some good article on the design patterns and how to implement it properly. Brian - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: Venu Vasireddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 2:50 PM To: flexcoders@yahoogroups.com Cc: Brian O'Connor Subject: RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0 Hi Brian, Is this still a relevant useful frame work - with Flex 2.0 ? Does FES 2.0 has any inbuilt or recommended framework ? What is the current status of Cairngorm Framework? -Venu From: flexcoders@yahoogroups.com on behalf of Brian O'Connor Sent: Wed 3/15/2006 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Cairngorm Framework with Flex 2.0 Sure, what is the question? - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Venu Vasireddy Sent: Wednesday, March 15, 2006 2:13 PM To: flexcoders@yahoogroups.com Subject: Cairngorm Framework with Flex 2.0 Hi , Anybody using Cairngorm Framework with Flex 2.0? In perticular with FES data services? Thanks Venu Architect -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0
Try these articles. I think they will help http://www.richinternetapps.com/archives/cat_design_patterns.html http://www.macromedia.com/devnet/flex/articles/cairngorm_pt2.html http://www.macromedia.com/devnet/flex/articles/cairngorm_pt5.html - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: Venu Vasireddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 3:05 PM To: Brian O'Connor; flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0 I assume Cairngorm framework is designed having FLEX RPC protocols in mind - in perticular Remote object- how to syncvalue objects on client and server. If we use FLEX 2.0 Dataservices, how does this Framework helps? Perhaps newer version of Cairngorm may better address this - guleing data services with client state better. From: Brian O'Connor [mailto:[EMAIL PROTECTED] Sent: Wed 3/15/2006 11:57 AM To: Venu Vasireddy; flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0 It is very much still a relevant and useful framework. You dont necessarily need to use Cairngorm with FES but I have on a few occasions. You should consider Cairngorm and FES 2 different animals. Cairngorm is a good framework for application development and FES is a great framework for performing a multitude of Enterprise Messaging and Data Services. Check here for the latest version of Cairngorm http://www.richinternetapps.com/archives/000143.html Someone will correct me if there is a newer version out there Also, you can google Cairngorm, there are some good article on the design patterns and how to implement it properly. Brian - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: Venu Vasireddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 2:50 PM To: flexcoders@yahoogroups.com Cc: Brian O'Connor Subject: RE: [flexcoders] RE: Cairngorm Framework with Flex 2.0 Hi Brian, Is this still a relevant useful frame work - with Flex 2.0 ? Does FES 2.0 has any inbuilt or recommended framework ? What is the current status of Cairngorm Framework? -Venu From: flexcoders@yahoogroups.com on behalf of Brian O'Connor Sent: Wed 3/15/2006 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Cairngorm Framework with Flex 2.0 Sure, what is the question? - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Venu Vasireddy Sent: Wednesday, March 15, 2006 2:13 PM To: flexcoders@yahoogroups.com Subject: Cairngorm Framework with Flex 2.0 Hi , Anybody using Cairngorm Framework with Flex 2.0? In perticular with FES data services? Thanks Venu Architect -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 line chart and vertical axis
Use a labelFunction, for example: private function currencyFormat(value:Number,prevValue:Number,axis:Object):String { return cf.format(value); } mx:CurrencyFormatter id=cf/ In graph. mx:verticalAxis mx:LinearAxis labelFunction=currencyFormat title=Whatever/ /mx:verticalAxis - Brian O'Connor AdobeConsulting Email: [EMAIL PROTECTED] Office: 617-219-2205 Mobile: 617-306-3713 / \ 888/ \888 88/ / \88 8/ /8\ \8 / /888\ \ \8\ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, March 02, 2006 2:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 line chart and vertical axis hi all i have a line chart that i am feeding a fair bit of info into. all good. the problem is that the vertical axis displays stuff like 7590.995 as a refpoint. now i looked at the IAxis interface and it has a getUnitSize method, no setter for it (and no documentation yet), and i assume that this is the function or value that has to change to round the values displayed on the yaxis? if this is by default == 1(which i assume otherwise the deault at the moment would be 0.005), then something else is coming into play here. any ideas on how i can get the vertical axis to display digestible information? Thanks j -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.