I think that part of the confusion here is the lack of distinction between
the gateway and the server-side scripts it is communicating with.  The
gateway is a server-side application that translates AMF binary messages
from a Flash client.  The gateway provides the ability to call scripts in
various languages, depending upon what kind of gateway it is (AMFPHP,
FlashOrb, etc. support different languages).  It is important to note that
the gateway is entirely separate from the scripts that it is calling.

For example, I routinely use the same AMFPHP gateway to make calls to
various other servers running a diverse set of languages like Java, PHP,
Perl and Python (it supports .NET also).  Not being a .NET guy either, I do
(hopefully) know something about programming.

The beauty of Remoting is that it allows for passing of complex data types,
not simply name/value pairs, as it with LoadVars.  For example, using
Remoting you can call scripts on a server that can return objects, arrays
and even entire record sets.  This has the added advantage that there is no
need to serialize/deserialize the data for complex types.  That process,
which you would normally have to write in AS, is handled directly by the
Flash Player, saving you additional code and increasing performance.

Therefore, there is no need to continue wasting time thinking in terms of
how do I get my data which is native to X server-side language into Flash
using url-encoded name/value pairs and spend that time creating flexible
object-oriented server-side code that can power your HTML and Flash
applications.  So, to really answer your question about what specific type
of script need to be used to transfer data to Flash using Remoting, it
depends on how your code is structured.  If you write your server-side code
in a manner in which the data is separate from the presentation, then you
should be able to call any script that returns data of a type that Flash can
interpret.

-jb


On 11/16/05 7:32 PM, "hank williams" <[EMAIL PROTECTED]> wrote:

> unfortunately I am not a .NET guy, so I dont know anything about asp pages.
> 
> But the answer to your question really relates to the remoting
> gateway. Different remoting gateways allow you to connect to different
> types of languages. I think I mentioned flashOrb in a prior email
> because they advertise supporting .NET. If you go to their website you
> can find out what languages they support.
> 
> Regards
> Hank
> 
> On 11/16/05, Al Veldhuis <[EMAIL PROTECTED]> wrote:
>> Hank,
>> 
>> Sorry, I should have been a little more specific.
>> 
>> After you create the "Remoting" connection. On the server side, what
>> kinds of scripts can be run? Can any script run to return variables to
>> flash?
>> 
>> My reason for asking is as follows:
>> 
>> If I have a program that is an address book. I create the remoting link
>> to the server. If on the server I have a database of variables I need to
>> get to the flash application. What kind of script can/should be used to
>> transfer the data. I was not looking for specifics, more just a general
>> idea. I have several ASP scripts I have used to transfer data to html
>> applications. Can they be used or is there a specific type of script
>> that needs to be used to transfer the data.
>> 
>> Al
>> 
>> hank williams wrote:
>> 
>>> When you ask "what kind of script" do you mean on the server side or
>>> within flash?
>>> 
>>> Within flash, you just use the remoting classes and its really just
>>> like calling a function that is actually on the server.
>>> 
>>> On the server side you just create functions that take parameters and
>>> return values. These functions are called by the flash client and the
>>> results are returned to the flash client. The functions can be written
>>> in a myriad of languages.
>>> 
>>> If I am not getting to what you are asking let me know and I will give
>>> it another shot.
>>> 
>>> Regards
>>> Hank
>>> 
>>> On 11/16/05, Al Veldhuis <[EMAIL PROTECTED]> wrote:
>>> 
>>> 
>>>> Hey Hank,
>>>> 
>>>> I have a question for you. After the connection in Remoting is created,
>>>> what type of script do I use to transfer variables to and from flash? Do
>>>> I just use any type of standard communication script? Or must to be
>>>> something specialized?
>>>> 
>>>> Al
>>>> 
>>>> hank williams wrote:
>>>> 
>>>> 
>>>> 
>>>>> On 11/14/05, Al Veldhuis <[EMAIL PROTECTED]> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>> Hi Guys,
>>>>>> 
>>>>>> The site will be hosted on a Windows server, and will quite heavily us
>>>>>> .NET components, so putting it onto a linux server isn't really an
>>>>>> option.
>>>>>> 
>>>>>> The problem I am quite simply having is that I find flash remoting
>>>>>> confusing. I have been working with actionscript for about 3 years now,
>>>>>> and understand it fully. I just don't understand how to form packets and
>>>>>> transfer them between flash and the remoting software. The only
>>>>>> programming I have ever done is in actionscript so I really don't know
>>>>>> any other language which I guess makes it more difficult.
>>>>>> 
>>>>>> I have looked at OpenAMF however it doesn't run on Windows.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> Yes it does. OpenAMF is a java technology which will run wherever java
>>>>> does - which is everywhere. The problem is that it is for *java* not
>>>>> .NET. You seem to need .NET so OpenAMF is out.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>> I didn't understand the purpose of FlashOrb.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> It sounds more like you dont understand the purpose of remoting. So
>>>>> let me try to explain.
>>>>> 
>>>>> Remoting is just a way to make calls to "remote procedures" on servers
>>>>> 
>>>>> 
>>>>> from the flash client. Different remoting technologies support
>>>> 
>>>> 
>>>>> different server side systems. In order to do remoting, you need a
>>>>> gateway that sits between your server side system, and the internet.
>>>>> This gateway recieves function calls from flash, and returns the
>>>>> result of the function call to flash. So in order to use remoting, you
>>>>> must have code written on the server side which queries the database
>>>>> or does whatever you need to get done. So you must have code you wish
>>>>> to access in some .NET compatible language such as C#. All remoting
>>>>> does is let you access that code.
>>>>> 
>>>>> Server side systems include:
>>>>> 
>>>>> Java
>>>>> .NET
>>>>> PHP
>>>>> 
>>>>> If you were using php I would suggest AMFPHP. This would allow you to
>>>>> call php functions on your server from within flash.
>>>>> 
>>>>> Since you are using .NET, I would suggest flashORB, which is just like
>>>>> all the other remoting gateways, but the standard edition is free, and
>>>>> it supports .NET. On their home page it says:
>>>>> ------------------------------------------------------
>>>>> Free Standard Edition for .NET includes support for Flash Remoting
>>>>> 10.20.05
>>>>> The release of Beta 3 marks an important milestone in the history of
>>>>> Flash Remoting for .NET. The free Standard Edition of the product
>>>>> provides Flash Remoting support.
>>>>> ------------------------------------------------------
>>>>> 
>>>>> Once you get remoting set up it is exceedingly simple and powerful.
>>>>> Any function which you wish to access from flash can be accessed via a
>>>>> function call.
>>>>> 
>>>>> I have never heard of the company and the product you referenced, but
>>>>> I did go to their website. I cant say it wont work for you, but the
>>>>> remoting mechanism is much more mainstream and therefore, I think, a
>>>>> safer bet.
>>>>> 
>>>>> Regards
>>>>> Hank
>>>>> _______________________________________________
>>>>> Flashcoders mailing list
>>>>> Flashcoders@chattyfig.figleaf.com
>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> _______________________________________________
>>>> Flashcoders mailing list
>>>> Flashcoders@chattyfig.figleaf.com
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>> 
>>>> 
>>>> 
>>> _______________________________________________
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> 
>>> 
>>> 
>> 
>> 
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to