473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help - Flash Remoting with .NET - data does not get displayed

Hi,

I have a problem with Flash remoting via .NET . I seem to have all the
code right, but flash does not seem to display the data at all.

Here's is what Ive done so far...

(1) Ive installed Flash Remoting MX, and copied over the contents of
wwwroot\flashremoting\bin into my web application's folder\bin.

(2) In my web application, I have included the FlashGateway.dll as a
reference.

(3) The aspx file that holds the embed tag for the flash control has
the following code:

<OBJECT id="template1"
codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
height="550" width="600" align="middle"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
VIEWASTEXT>
<PARAM NAME="_cx" VALUE="15875">
<PARAM NAME="_cy" VALUE="14552">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie"
VALUE="template.swf?gatewayPath=http://localhost/MyWebApp/gateway.aspx">
<PARAM NAME="Src"
VALUE="template.swf?gatewayPath=http://localhost/MyWebApp/gateway.aspx">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">
<PARAM NAME="Scale" VALUE="NoBorder">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<embed src="template.swf?gatewayPath=http://localhost/MyWebApp/gateway.aspx"
width="650" height="600" id="Template" align="middle"/>
</embed>
</OBJECT>

(4) The gateway.aspx file referred to is a blank (default) aspx file
available in the Web App's path.

(5) The flash file "template.swf" is also available in the Web App's
path.

(6) The "template.swf" file has the code burnt in to refer to
"dataToFlash.aspx" to get the input data in the form of an XML string.

(7) In the "dataToFlash.aspx" I have the Register directive:

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="dataToFlash.aspx.vb" Inherits="VentureMap.dataToFlash"%>
<%@ Register TagPrefix="MM" Namespace="FlashGateway"
Assembly="flashgateway" %>

(8) The "dataToFlash.aspx" has the default Web Form Designer code
after adding the Register directive:

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub
Protected WithEvents Flash As FlashGateway.Flash

'NOTE: The following placeholder declaration is required by the
Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

(9) The function call to Page_Load in "dataToFlash.aspx" is as
follows:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

Dim xmlDoc As New XmlDocument
xmlDoc.Load("XMLTemplate.xml")
Dim sw As New StringWriter
Dim xw As New XmlTextWriter(sw)
xmlDoc.WriteTo(xw)
Dim strXMLOutput As String
strXMLOutput = sw.ToString()

Flash.Result = strXMLOutput

End Sub

I have tested that the "strXMLOutput" variable has the correct and
entire XML output from the xml file.

(10) The "template.swf" has the script built in to read the input XML
string, parse it, and display data within the flash controls.

But the flash control on the browser, never seems to read the data and
display it.

Is there anything Im missing ? Are any of these declarations /
object-naming portions case-sensitive ?

Ive tried everything I could find on various message groups / Google /
Macromedia FAQ.

If anyone could help me out, it would be just great.

Thanks,
Uma
Jul 21 '05 #1
0 2004

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Randy | last post by:
Flash Remoting is a way for Flash applications to make "native" method calls in Action Script to a server side program, using the AMF binary format. Flash has commercial versions of a Flash...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
4
by: | last post by:
I am trying to work out a very simple way to get a Flash form to commmunicate with a .aspnet application that will somehow receive parameters from the flash file. Or, vice versa stream database...
3
by: markfoong | last post by:
Is there a way, where on a submit event, that a web form can send data over to flash? I know that in flash, you can do flash remoting, but that seems to be an event triggered by flash instead of...
0
by: Uma Vivek | last post by:
Hi, I have a problem with Flash remoting via .NET . I seem to have all the code right, but flash does not seem to display the data at all. Here's is what Ive done so far... (1) Ive...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
4
by: Saber | last post by:
How can I connect Macromedia Flash MX and ASP.Net? For example passing variables from an ASP page to Flash.
3
by: Rafael Tejera | last post by:
Somebody has an example of asp.net (c# if possible) and Flash media server that can show me, or any article. Sincerely, Rafael
0
crabpot8
by: crabpot8 | last post by:
hey guys, sorry for the short notice but this is pretty time-sensitive. I am working on a video service that asks for local files from a host computer. what we have set up is a site with a flash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.