I need to display a product (Image + Description) in a ASP.NET MVC site but through a Flash movie.
I have the actions set to get the text and image:
Product/GetImage/{id} and Product/GetDescription/{id} ...
I suppose in Product/List I need to pass the Id's to the Flash Movie. How?
Maybe through the ViewModel? Maybe I make the Flash Movie to access an Action that returns only the Id's?
And then from inside the Flash movie call the actions Product/GetImage/{id} and Product/GetDescription/{id} for each id or any required id to get the product data?
Anyway, does anyone has a sugestion on how to integrate the ASP.NET MVC application with Flash in this situation?
I was able to find a document online that shows how to do what is essentially an AJAX call within flash. The link to this document no longer works, but I have the document if you'd like me to send it to you (message me your email address). The basic jist,
though, is that you create an XML webservice with the data you want to deliver to the flash app, then within the flash actionscript you create an XML() object, give it the URL to your webservice and parse the XML response.
We actually use it here:
http://www.dliflc.edu/dlilife.aspx
Those profiles are loaded from a database that is delivered through an XML webservice. I won't be able to provide much clarification on the flash piece since our graphics guy did that piece, but I wrote the webservice.
"Dream as if you'll live forever, live as if you'll die today." --James Dean
Marked as answer by shapper on Oct 30, 2009 12:56 PM
shapper
Contributor
3932 Points
3789 Posts
Asp.Net Mvc and Flash
Oct 28, 2009 04:58 PM|LINK
Hello,
I need to display a product (Image + Description) in a ASP.NET MVC site but through a Flash movie.
I have the actions set to get the text and image:
Product/GetImage/{id} and Product/GetDescription/{id} ...
I suppose in Product/List I need to pass the Id's to the Flash Movie. How?
Maybe through the ViewModel? Maybe I make the Flash Movie to access an Action that returns only the Id's?
And then from inside the Flash movie call the actions Product/GetImage/{id} and Product/GetDescription/{id} for each id or any required id to get the product data?
Anyway, does anyone has a sugestion on how to integrate the ASP.NET MVC application with Flash in this situation?
Thanks,
Miguel
AceCorban
Star
12318 Points
2269 Posts
Re: Asp.Net Mvc and Flash
Oct 28, 2009 05:43 PM|LINK
I was able to find a document online that shows how to do what is essentially an AJAX call within flash. The link to this document no longer works, but I have the document if you'd like me to send it to you (message me your email address). The basic jist, though, is that you create an XML webservice with the data you want to deliver to the flash app, then within the flash actionscript you create an XML() object, give it the URL to your webservice and parse the XML response.
We actually use it here:
http://www.dliflc.edu/dlilife.aspx
Those profiles are loaded from a database that is delivered through an XML webservice. I won't be able to provide much clarification on the flash piece since our graphics guy did that piece, but I wrote the webservice.
shapper
Contributor
3932 Points
3789 Posts
Re: Asp.Net Mvc and Flash
Oct 28, 2009 06:17 PM|LINK
I just sent my email through a private message.
Thanks,
Miguel