Solved

How to communicate from Flash to Asp.net

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
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…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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