?
Solved

How to communicate from Flash to Asp.net

Posted on 2009-05-20
3
Medium Priority
?
571 Views
Last Modified: 2013-11-18
I am having trouble accepting variables from a flash web page that is passing variables to a asp.net page. The flash object is calling a web page and the page needs to retrieve all the parameters or variables that it is passing so that it can update data.

The flash developer says that they are using this command to post the variables
form.loadVariables("http://testsite.com/whatispagepassing2.aspx", "POST");

the code below is the current code that i found on adobe's website (" http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET3.htm ") that should pull the variables out, but doesn't seem to be working. the writefile function simply creates a file called url.xml that contains whatever the mystring variables has.
Public Partial Class whatispagepassing2
    Inherits System.Web.UI.Page
    Protected Flash As FlashGateway.Flash
 
    Private Sub whatispagepassing2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim myString As String = "there were no parameters"
        If Not Flash.Params.Count = 0 Then
            myString = "there were parameters "
            myString += Flash.Params(0).ToString()
            'Flash.Result = myString
        End If
        writefile(myString, "url")
    End Sub
 
    
End Class
 
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="whatispagepassing2.aspx.vb"
    Inherits="ZenergySync.whatispagepassing2"  %>
 
<%@ Register TagPrefix="Macromedia" Namespace="FlashGateway" Assembly="flashgateway" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" method="post" runat="server">
    <Macromedia:Flash ID="Flash" runat="server" />
    </form>
</body>
</html>

Open in new window

0
Comment
Question by:Jamie Roberts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:Jamie Roberts
ID: 24434843
I would like to add another 500 points to this question, but I can't figure out how...help?
0
 
LVL 21

Expert Comment

by:tovvenki
ID: 24438185
Hi,
I am not good at flash so I am unable to simulate your problem.
but googlying I found the following artilcle which might help you to find a solution
http://www.123aspx.com/redir.aspx?res=31732

I hope that this helps you

Thanks and regards,
Venki
0
 

Accepted Solution

by:
Jamie Roberts earned 0 total points
ID: 24440385
i decided to use Request("") for getting the parameters. It will just make live easier.

It would seem that i left out the flash portion of this article from the project and i think that was the source for the issue.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question