Solved

How to communicate from Flash to Asp.net

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Trouble with References... 5 43
c# regex: extract & replace text between braces 6 45
Runtime Exceptions when trying to submit data 28 36
Replace &lt; with < 14 55
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

912 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

17 Experts available now in Live!

Get 1:1 Help Now