Groups | Blog | Home
all groups > macromedia flash flash remoting > january 2005 >

macromedia flash flash remoting : Explanation



nelson4183
1/22/2005 2:59:49 AM
Hi,

I'm new to this FlashRemoting and Flash in particular. I am quite skilled
with ASP .Net and C#, however. Can someone explain to me the real purpose of
flash remoting? I went through a tutorial that basically sent params to the
page_load event of an aspx.cs page and then returned a string to my form on
Flash. To me, that seems like an awful lot of work just to display some simple
text. I can't imagine how I would handle a full site that way.

I guess I just don't understand the purpose fully. Basically, I want a user
interface in the nice sleek design of Flash so I can add animation and such to
my buttons and whatever, but would really like to do my coding through ASP
..Net. Am I barking up the wrong tree here? What is really the best solution
for this? I currently have a small website and created some flash animation
(exported it to HTML and copied it into my form.) Works great!! But I'm
looking to handle click events and the whole shibang!!

Can someone say something? Maybe even give me a link to a site that uses
flash remoting? Or tell me I'm smokin' crack or something.

Thanks...
maliko50
1/23/2005 3:25:44 AM
Flash Remoting lets you access Java or .NET code from within a flash movie.
Your user interface layer is created with Flash and then from actionscript (the
language of Flash) you can call code on your application server. This is
powerful because your Java or .NET code can easily interact with databases and
return data to a flash client. This is what Flash Remoting does. It connects
your sleek and fancy flash front end with data from your backend databases. At
least thats what I use it for!
nelson4183
1/23/2005 3:52:39 PM
Cool. That's pretty much the answer I was looking for, and this is really what
I plan to do. In my current example tutorial I did from this site, I have a
text field and button. The user enters their name and clicks the button, which
then fires events in flash and calls my aspx page passing a parameter. In my
Page_Load event in .Net I check for parameters, concatenate a string and return
it to flash to be displayed. It works. Now, is there a way to call classes or
particular functions created in .Net?

Like, say I want to click a Login button. Is there a way to call the Login
event in .Net "Directly"? or do I have to pass a parameter (say <login>) to the
Page_Load event and use a switch statement to determine which button was
clicked on the Flash UI.

I guess what is best-practice? The tough part about learning this stuff is I
never really see how the "real world" uses Flash for development. So
sometimes, I am unsure about best-practice or the common way of doing things.

Thanks again in advance.
maliko50
1/23/2005 10:06:27 PM
Yes, you can call functions directly in your .NET or Java code. It seems like
you might want to pick up a book on Remoting to get aquainted with how it
works. Otherwise, this messageboard turns into a tutorial. Look into Flash
Remoting: The Definitive Guide or Complete Flash Remoting at amazon.com. Good
luck!
RusD
1/24/2005 3:37:38 PM
[quoted text, click to view]

Flash Remoting is rather expensive thing to be used in flash movies.
Flash movie has alternative ways to get data, using LoadVars or XML.Load
for example.
The only purpose to use Flash Remoting is using it with Flash
Communication Server, becouse FCS can get external data from web-site
AddThis Social Bookmark Button