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
Solved

How to communicate from Flash to Asp.net

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
asp day pilot 3 23
https://github.com/willowsystems/jSignature 11 74
ASP.NET (VB) return a record 2 38
Why use this lambda? 12 37
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

861 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