473,663 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\flashre moting\bin into my web application's folder\bin.

(2) In my web application, I have included the FlashGateway.dl l 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.macr omedia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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?gatewayPat h=http://localhost/MyWebApp/gateway.aspx">
<PARAM NAME="Src"
VALUE="template .swf?gatewayPat h=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="AllowScri ptAccess" VALUE="sameDoma in">
<PARAM NAME="Scale" VALUE="NoBorder ">
<PARAM NAME="DeviceFon t" VALUE="0">
<PARAM NAME="EmbedMovi e" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData " VALUE="">
<PARAM NAME="SeamlessT abbing" VALUE="1">
<embed src="template.s wf?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.s wf" is also available in the Web App's
path.

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

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

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="dat aToFlash.aspx.v b" Inherits="Ventu reMap.dataToFla sh"%>
<%@ Register TagPrefix="MM" Namespace="Flas hGateway"
Assembly="flash gateway" %>

(8) The "dataToFlash.as px" 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.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents Flash As FlashGateway.Fl ash

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

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

#End Region

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

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

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

Flash.Result = strXMLOutput

End Sub

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

(10) The "template.s wf" 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 2030

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

Similar topics

9
4338
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 Remoting servers. There are open-source alternatives for php, java, and perl. But alas, no Python. Does anyone have any interest in a project like this? It would be port for the most part; the AMF format is already well known. In
5
5677
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 http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
4
3807
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 content into a flash mx file via an asp.net/xml type application. Although I brand new to .NET I have picked up the following options: 1. Flash remoting using web services
3
1166
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 the web form sending it over to flash. Any ideas?
0
254
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 installed Flash Remoting MX, and copied over the contents of wwwroot\flashremoting\bin into my web application's folder\bin.
8
1748
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 package) to .NET. Our clients have been asking for lot of new stuff namely being able to send patient information to devices, being able to fix appointments online, etc.
4
1766
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
4642
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
1384
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 player, and the user passes the player some flashvars that indicate the unique name of the video. the flash in turn connects to a local client via one port nad asks for the video data. the client is receiving the request and sending the data, and we...
0
8435
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.