Solved

How to communicate from Flash to Asp.net

Posted on 2009-05-20
3
560 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now