RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
I haven't played with flex 2 yet, but from what I read here, there are already 2 frustrating limitations to me: -You can connect to FMS but can't use remote Shared Objects -You can embed Flash8 movies but you can't access their methods Philippe From: flexcoders@yahoogroups.com on behalf of Brian Lesser Sent: Wed 2/8/2006 22:43 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Hi Philippe, I went back and tried creating the SharedObject on the server side first. It didn't make any difference. Since SharedObject.getRemote() returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should. Yours truly, -Brian Philippe Maegerman wrote: Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
if remote sharedObjects aren't working, how does DataServices work. On 2/9/06, Philippe Maegerman [EMAIL PROTECTED] wrote:I haven't played with flex 2 yet, but from what I read here, there are already 2 frustrating limitations to me: -You can connect to FMS but can't use remote Shared Objects-You can embed Flash8 movies but you can't access their methodsPhilippeFrom: flexcoders@yahoogroups.com on behalf of Brian LesserSent: Wed 2/8/2006 22:43To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3Hi Philippe,I went back and tried creating the SharedObject on the server sidefirst. It didn't make any difference. Since SharedObject.getRemote()returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should.Yours truly,-BrianPhilippe Maegerman wrote:Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length.PhilippeFrom: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish.I'm not sure how much testing hasbeen done yet with AS3 and FMS.Matt-Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Brian LesserSent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: How to use SharedObject.getRemote withFlex 2 / AS3Yeah,It looks broken to me too. I went and tried a simple test and got the following error:TypeError: Error #1009: null has no properties.at flex2FMS/flex2FMS::netStatus()Where do we file bug reports again?Yours truly,-Brian flexargg wrote:Hi Brian,After adding your three lines, SharedObject.getRemote return NULLagain !!!--- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote:--__ Brian LesserAssistant Director, Teaching and Technology SupportComputing and Communications ServicesRyerson University350 Victoria St.Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220Office: AB48DE-mail: [EMAIL PROTECTED](Enter through LB66) Web: http://www.ryerson.ca/~blesser__--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKSWeb site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS*Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web.*To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]?subject=Unsubscribe*Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .--**STATEMENT OF CONFIDENTIALITY**This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Hi Dominick, Just a guess but Flash Media Server uses AMF0 to send/receive ActionScript data. DataServices uses AMF3. So I would guess that getRemote is only broken for AMF0??? Maybe someone at Adobe could say more though as there might be a lot more to it. Yours truly, -Brian Dominick Accattato wrote: if remote sharedObjects aren't working, how does DataServices work. On 2/9/06, Philippe Maegerman [EMAIL PROTECTED] wrote: I haven't played with flex 2 yet, but from what I read here, there are already 2 frustrating limitations to me: -You can connect to FMS but can't use remote Shared Objects -You can embed Flash8 movies but you can't access their methods Philippe From: flexcoders@yahoogroups.com on behalf of Brian Lesser Sent: Wed 2/8/2006 22:43 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Hi Philippe, I went back and tried creating the SharedObject on the server side first. It didn't make any difference. Since SharedObject.getRemote() returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should. Yours truly, -Brian Philippe Maegerman wrote: Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Hi Philippe, I went back and tried creating the SharedObject on the server side first. It didn't make any difference. Since SharedObject.getRemote() returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should. Yours truly, -Brian Philippe Maegerman wrote: Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Totally wild guess, but trying adding these three lines after your import statements: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; NetStream.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; For what it's worth I posted a small sample app that does a some basic NetConnection and NetStream stuff here: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It does not include SharedObject code. Yours truly, -Brian flexargg wrote: I have written the following code and SharedObject.getRemote return NULL !!! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% creationComplete=initApp() mx:Script ![CDATA[ import flash.media.*; import flash.net.*; import mx.controls.Alert; public var nc_client:NetConnection; public var so:SharedObject; public function initApp():void { nc_client=new NetConnection(); nc_client.connect(rtmp://localhost/testAS3,); nc_client.addEventListener (NetStatusEvent.NET_STATUS,netStatusHandler); } public function netStatusHandler(event:NetStatusEvent):void { var info:Object = event.info; if (info.code == NetConnection.Connect.Success) { so=SharedObject.getRemote(so, nc_client.uri, false); if (so==null) mx.controls.Alert.show('SharedObject.getRemote return NULL'); } } ]] /mx:Script /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 Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Totally wild guess, but trying adding these three lines after your import statements: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; NetStream.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; For what it's worth I posted a small sample app that does a some basic NetConnection and NetStream stuff here: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It does not include SharedObject code. Yours truly, -Brian flexargg wrote: I have written the following code and SharedObject.getRemote return NULL !!! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% creationComplete=initApp() mx:Script ![CDATA[ import flash.media.*; import flash.net.*; import mx.controls.Alert; public var nc_client:NetConnection; public var so:SharedObject; public function initApp():void { nc_client=new NetConnection(); nc_client.connect(rtmp://localhost/testAS3,); nc_client.addEventListener (NetStatusEvent.NET_STATUS,netStatusHandler); } public function netStatusHandler(event:NetStatusEvent):void { var info:Object = event.info; if (info.code == NetConnection.Connect.Success) { so=SharedObject.getRemote(so, nc_client.uri, false); if (so==null) mx.controls.Alert.show('SharedObject.getRemote return NULL'); } } ]] /mx:Script /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 Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Totally wild guess, but trying adding these three lines after your import statements: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; NetStream.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; For what it's worth I posted a small sample app that does a some basic NetConnection and NetStream stuff here: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It does not include SharedObject code. Yours truly, -Brian flexargg wrote: I have written the following code and SharedObject.getRemote return NULL !!! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% creationComplete=initApp() mx:Script ![CDATA[ import flash.media.*; import flash.net.*; import mx.controls.Alert; public var nc_client:NetConnection; public var so:SharedObject; public function initApp():void { nc_client=new NetConnection(); nc_client.connect(rtmp://localhost/testAS3,); nc_client.addEventListener (NetStatusEvent.NET_STATUS,netStatusHandler); } public function netStatusHandler(event:NetStatusEvent):void { var info:Object = event.info; if (info.code == NetConnection.Connect.Success) { so=SharedObject.getRemote(so, nc_client.uri, false); if (so==null) mx.controls.Alert.show('SharedObject.getRemote return NULL'); } } ]] /mx:Script /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 Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/