{"id":405,"date":"2003-05-28T22:09:32","date_gmt":"2003-05-29T02:09:32","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=405"},"modified":"2003-05-28T22:09:32","modified_gmt":"2003-05-29T02:09:32","slug":"flash-remoting-docs-bug","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/05\/28\/flash-remoting-docs-bug\/","title":{"rendered":"Flash Remoting Docs bug"},"content":{"rendered":"<p>Got an email from Scott who was trying to work with C# and Flash Remoting.  He couldn&#8217;t get the &#8220;Creating an assembly that returns an ActionScript object&#8221; example to work from the <a href=\"http:\/\/livedocs.macromedia.com\/frdocs\/Using_Flash_Remoting_MX\/usingFRNET6.jsp#1178906\">FlashRemoting LiveDocs<\/a>.  Looks to me like the documentation is a bit off. From the documentation:<\/p>\n<p>&nbsp;public&nbsp;ASObject&nbsp;returnObject()<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;{<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASObject&nbsp;aso&nbsp;=&nbsp;new&nbsp;ASObject();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.ASType&nbsp;=&nbsp;&#8220;Calculator&#8221;;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;x&#8221;,&nbsp;100);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;y&#8221;,&nbsp;300);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flash.result = aso;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n<p>should probably be:<\/p>\n<p>&nbsp;public&nbsp;ASObject&nbsp;returnObject()<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;{<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASObject&nbsp;aso&nbsp;=&nbsp;new&nbsp;ASObject();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.ASType&nbsp;=&nbsp;&#8220;Calculator&#8221;;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;x&#8221;,&nbsp;100);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;y&#8221;,&nbsp;300);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;aso;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n<p>Personal rant: I tried creating a Livedocs account, but for whatever reason, the account I created didn&#8217;t work&#8230; why does everyone make you create a username? Why not just use your email address?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got an email from Scott who was trying to work with C# and Flash Remoting. He couldn&#8217;t get the &#8220;Creating an assembly that returns an ActionScript object&#8221; example to work from the FlashRemoting LiveDocs. Looks to me like the documentation is a bit off. From the documentation: &nbsp;public&nbsp;ASObject&nbsp;returnObject() &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASObject&nbsp;aso&nbsp;=&nbsp;new&nbsp;ASObject(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.ASType&nbsp;=&nbsp;&#8220;Calculator&#8221;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;x&#8221;,&nbsp;100); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aso.Add(&#8220;y&#8221;,&nbsp;300); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flash.result = &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/05\/28\/flash-remoting-docs-bug\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Flash Remoting Docs bug<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,15],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/405"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}