<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flashremoting - mx - Using_Flash_Remoting_MX - usingFRNET6.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T07:34:51</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#33137" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#20729" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#8422" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#5481" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4301" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4211" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#3826" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#2304" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1074" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1069" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#314" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#33137">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#33137</link>
		<description>no such service (SERVICE NAME) with function (FUNCTION NAME) &lt;br /&gt;&lt;br /&gt;I get this error but only when i upload the project to my Web server. At the local web server  works fine.&lt;br /&gt;&lt;br /&gt;I'm using VS2003 and aspx pages with code behind pages&lt;br /&gt; &lt;br /&gt;SERVICE NAME : dll's name &lt;br /&gt;FUNCTION NAME : aspx page's name&lt;br /&gt;and i wrote all of my code into page_load event.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-05-08T22:36:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#20729">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#20729</link>
		<description>How about an example for getting a generic AS object into .NET??? I've tried passing object into method as Hashtable in .NET, and am getting errors...</description>
		<dc:creator>Rooster60602</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-31T06:53:23</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#8422">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#8422</link>
		<description>hi...i've got a problem with this script i got off an e-book...&lt;br /&gt;&lt;br /&gt;AS CODE : &lt;br /&gt;-----------------&lt;br /&gt;function Book ( ) {&lt;br /&gt;  this.title = &quot;&quot;;&lt;br /&gt;  this.author = &quot;&quot;;&lt;br /&gt;  this.price = 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Book.prototype.bookCost = function (qty) {&lt;br /&gt;  return (this.price * qty);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Object.registerClass(&quot;BookClass&quot;, Book);&lt;br /&gt;&lt;br /&gt;function GetBook_Result (Results) {&lt;br /&gt;  // Display the book's title and the cost of one dozen copies&lt;br /&gt;  trace(Results.title);&lt;br /&gt;  trace(Results.bookCost(12));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#include &quot;NetServices.as&quot;&lt;br /&gt;&lt;br /&gt;var myURL = &quot;http://localhost/flashremoting/gateway.aspx&quot;;&lt;br /&gt;var servicename = &quot;FRDG.BookAssembly&quot;;&lt;br /&gt;&lt;br /&gt;NetServices.setDefaultGatewayUrl(myURL);&lt;br /&gt;var connection = NetServices.createGatewayConnection( )&lt;br /&gt;var bookService = connection.getService(servicename, this);&lt;br /&gt;&lt;br /&gt;bookService.GetBook( );&lt;br /&gt;&lt;br /&gt;-----------------------------------------&lt;br /&gt;C# CODE : &lt;br /&gt;---------------&lt;br /&gt;using System;&lt;br /&gt;using FlashGateway.IO;&lt;br /&gt;&lt;br /&gt;namespace FRDG &lt;br /&gt;{&lt;br /&gt;	public class BookAssembly &lt;br /&gt;	{&lt;br /&gt;		public ASObject GetBook ( ) &lt;br /&gt;		{&lt;br /&gt;			ASObject aso = new ASObject( );&lt;br /&gt;			aso.ASType = &quot;Book&quot;;&lt;br /&gt;			aso.Add(&quot;title&quot;, &quot;FRDG&quot;);&lt;br /&gt;			aso.Add(&quot;author&quot;, &quot;Tom Muck&quot;);&lt;br /&gt;			aso.Add(&quot;price&quot;, &quot;39.99&quot;);&lt;br /&gt;			return aso;&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;everything works except the price. for some reason i can't get the price function in the book class to work. it returns undefined all the time. is there like some kind of obvious, trivial mistake i made or something? any help would be appreciated a lot. thanks.</description>
		<dc:creator>troublesome96</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-02-18T19:41:48</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#5481">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#5481</link>
		<description>Environment: Win XP - SP1, Using VS.Net / VB.NET 2003 (framework 1.1):&lt;br /&gt;Area: FlashRemotingMX / Visual Studio .NET&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;***********&lt;br /&gt;for each Flash-Remoting query to a VB.NET assembly I have created and published according to the Flash Remoting Manual I have got a new line in the flash.log (and NetConnection debugger): &lt;br /&gt;&quot;No Such Service FlashRemoting.EchoTests.EchoClass with function echoString&quot; &lt;br /&gt;&lt;br /&gt;Solution (published January 19th, 2004):&lt;br /&gt;******************************************************************&lt;br /&gt;It is not really a problem and it only happens when you are using Visual Studio .NET.&lt;br /&gt;The thing missleading here is, that Macromedia does not mention that, when building  the assemblies in VS.NET, VS.NET per default adds the project's (resp. Class libary) name to the namespace of its classes:&lt;br /&gt;If, for example, you have created the ClassLibrary „myProject&quot; containing the class-file „myApplication.vb&quot; with the namespace „myNamespace&quot; for its class „myClass&quot; then, according to the Remoting manuals, in the AS code, you would use the fully qualified class name (myNamespace.myClass) in the getService function -- which will normally not work when using Visual Studio .NET!&lt;br /&gt;And here is why:&lt;br /&gt;When you right-click the icon of  your  class library containing your code and you open the class lib's property window you will normally see the default values for the general options set as follows:&lt;br /&gt;    -Assemblyname = &quot;myProject&quot;&lt;br /&gt;    -RootNameSpace = &quot;myProject&quot; !!! (in German this property is called &quot;Stammnamespace&quot;)&lt;br /&gt;&lt;br /&gt;Now you have too options: &lt;br /&gt;Either within AS-Code: &lt;br /&gt;you add the Rootnamespace  to the getService-parameter myConnection.getService(myProject.myNamespace.myClass) &lt;br /&gt;&lt;br /&gt;OR (not and!!!) within VS.NET: &lt;br /&gt;clear the RootNameSpace-value from the class-library's property window.&lt;br /&gt;&lt;br /&gt;Hope this helps&lt;br /&gt;Kind regards&lt;br /&gt;René</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-01-19T08:13:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4301">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4301</link>
		<description>1.) No, the class must have a default no-args constructor. You can not call constructors from a NetServices connection in Flash Remoting.&lt;br /&gt;&lt;br /&gt;2.) Yes, that example is incorrect. The last line of the returnObject method should be simply:&lt;br /&gt;&lt;br /&gt;   return aso;&lt;br /&gt;&lt;br /&gt;This example must have been accidentally added as an assemby example and placed in the wrong location as it comes from ASPX concepts.  The Flash.Result idea comes the ASPX version of a Flash Remoting service, where inline C# can access the Flash page control. Perhaps you're not familiar with ASPX controls?&lt;br /&gt;&lt;br /&gt;3.)  The example, once corrected, does compile, but perhaps many users are not familiar with C# namespaces. If you use the &quot;using&quot; directive, then at compile time that reference will need to be resolved. If you were compiling C# on the command line, this is simple to do:&lt;br /&gt;&lt;br /&gt;csc /r:.\flashgateway.dll /target:library /out:ObjectTests.dll ObjectTests.cs&lt;br /&gt;&lt;br /&gt;Or, if you're in VisualStudio, you could also make the flashgateway.dll a reference which the user above points out.</description>
		<dc:creator>pete</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-12-03T10:06:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4211">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#4211</link>
		<description>I had a huge headache with a &quot;missing assembly&quot;...&lt;br /&gt;&lt;br /&gt;Make sure that you right click on &quot;references&quot; in the explorer window (in VS.net) and browse to &quot;flashgateway.dll&quot;.&lt;br /&gt;&lt;br /&gt;I know it is something simple and stupid but it took me over a week to figure it out.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-11-26T14:15:16</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#3826">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#3826</link>
		<description>let me point out something here. In this code&lt;br /&gt;&lt;br /&gt;using FlashGateway.IO;&lt;br /&gt;namespace FlashRemoting.ObjectTests&lt;br /&gt;{&lt;br /&gt;  public class ObjectClass&lt;br /&gt;  {&lt;br /&gt;    public ObjectClass()&lt;br /&gt;    {&lt;br /&gt;      ///Public constructor... initialize any member fields here if need be.&lt;br /&gt;    }&lt;br /&gt;    public ASObject returnObject()&lt;br /&gt;    {&lt;br /&gt;      ASObject aso = new ASObject();&lt;br /&gt;      aso.ASType = &quot;Calculator&quot;;&lt;br /&gt;      aso.Add(&quot;x&quot;, 100);&lt;br /&gt;      aso.Add(&quot;y&quot;, 300);&lt;br /&gt;      Flash.Result = aso;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;THIS CODE DONT WORK!!!!!!!!!&lt;br /&gt;&lt;br /&gt;First of all, i dont understand what is this for.&lt;br /&gt;&lt;br /&gt;Flash.Result&lt;br /&gt;&lt;br /&gt;is Flash an object? The compiler wont be able to find &quot;Flash&quot; at all. Closest i can find is FlashGateway.Flash, which the FlashGateway namespace is not included here, and nothing name Flash exist in the included namespace, which is FlashGateway.IO.&lt;br /&gt;&lt;br /&gt;Secondly, the method&lt;br /&gt;&lt;br /&gt;public ASObject returnObject()&lt;br /&gt;&lt;br /&gt;has a return type of ASObject but the method dont return any thing at all. Irregardless of what the coding do, the method MUST RETURN an object of type ASObject.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just a couple of question here.&lt;br /&gt;&lt;br /&gt;1. Any of u guys know how to write working C# code?&lt;br /&gt;2. Have u guys ever run the so called example here? or just write it for fun?</description>
		<dc:creator>Lim Hoe Keat</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-11-13T20:07:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#2304">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#2304</link>
		<description>The work around didnt work for me :(&lt;br /&gt;&lt;br /&gt;Win XP - SP1, Using VS.Net 2003 (framework 1.1)</description>
		<dc:creator>agentofchange</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-09-30T19:49:35</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1074">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1074</link>
		<description>It took some time, but now I have answers to both previous questions.&lt;br&gt;&lt;br&gt;Issue 1 (the compilation thing):&lt;br&gt;Replacing the line &quot;Flash.Result = aso;&quot; with &quot;return aso;&quot; actually works fine, I have been able to test it.&lt;br&gt;&lt;br&gt;Issue 2 (the &quot;No Such Service&quot; problem):&lt;br&gt;On other Macromedia support topics I have found this is a very frequent error. The workaround is the web.config file. If I use the one provided with the Flash Remoting install, everything just works fine. I started to replace the contents of my original web.config line-by-line with the one provided with MM, and finally found the &lt;authentication&gt; setting is doing the crap. If I set it to &quot;None&quot; and remove the &lt;identity impersonate=&quot;true&quot;&gt; settings, the problem goes away. &lt;br&gt;&lt;br&gt;Please note I cannot tell if this is the correct workaround in 100% of the cases.</description>
		<dc:creator>csabi</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-06-23T09:52:00</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1069">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#1069</link>
		<description>The information provided on using assembles is unusable. &lt;br&gt;&lt;br&gt;Problems with &quot;Returning an ActionScript object&quot; :&lt;br&gt;    public ASObject returnObject()&lt;br&gt;    {&lt;br&gt;      ASObject aso = new ASObject();&lt;br&gt;      aso.ASType = &quot;Calculator&quot;;&lt;br&gt;      aso.Add(&quot;x&quot;, 100);&lt;br&gt;      aso.Add(&quot;y&quot;, 300);&lt;br&gt;      Flash.Result = aso;&lt;br&gt;    }&lt;br&gt;This raises an error in the C# compiler as the function does not return anything (though it should by definition). &lt;br&gt;If you replace the line:&lt;br&gt;&lt;br&gt;Flash.Result = aso;&lt;br&gt;&lt;br&gt;with &lt;br&gt;&lt;br&gt;return aso;&lt;br&gt;&lt;br&gt;it compiles, but no-one can tell if it will really work.&lt;br&gt;&lt;br&gt;The echoString example does not work, either. I gave it a try exactly the way it is written here. No success, for each query I get a new line in the logfile:&lt;br&gt;&quot;No Such Service FlashRemoting.EchoTests.EchoClass with function echoString&quot;&lt;br&gt;&lt;br&gt;Macromedia... please revise this topic.</description>
		<dc:creator>csabi</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-06-20T10:38:00</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#314">
		<title>flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm</title>
		<link>http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET6.htm#314</link>
		<description>Hi. I am trying Flash remoting and would like to know if you can pass constructor info to your class. For example, I have a compiled dll that has a class called EchoClass. The constructor of EchoClass looks like this:&lt;br&gt;&lt;br&gt;public EchoClass( int i ) {&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;Is it possible to pass i to the constructor using Flash remoting? Thanks very much for any answers.</description>
		<dc:creator>ritzcoder</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-02-05T13:39:00</dc:date>
	</item>
	</rdf:RDF>

