473,698 Members | 2,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access <object> from Code Behind (Flash Movie)

I have several movies being presented to the web on a single page and
each one is dependant on a link selected. On the .aspx page I have
the following code for a single movie.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<OBJECT id="fMovie" runat="server"
codeBase=http://download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,29,0
height=406 width=502 align=middle
classid=clsid:D 27CDB6E-AE6D-11cf-96B8-444553540000 VIEWASTEXT>
<PARAM NAME="_cx" VALUE="13282">
<PARAM NAME="_cy" VALUE="10742">
<PARAM NAME="FlashVars " VALUE="">
<PARAM NAME="Movie" VALUE="Videos/movieplayer.swf ">
<PARAM NAME="Src" VALUE="Videos/movieplayer.swf ">
<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="">
<PARAM NAME="Scale" VALUE="ShowAll" >
<PARAM NAME="DeviceFon t" VALUE="0">
<PARAM NAME="EmbedMovi e" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData " VALUE="">
<PARAM NAME="SeamlessT abbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAd dress" VALUE="">
<PARAM NAME="ProfilePo rt" VALUE="0">
<PARAM NAME="AllowNetw orking" VALUE="all">
<PARAM NAME="AllowFull Screen" VALUE="false">
</OBJECT>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I would like to be able to access this object from the code behind and
change the Movie and Src tags but I am not sure how to access the
Object tag to do so. Any help is greatly appreciated.

~Brad

Feb 28 '07 #1
3 10718
Hi,
I would like to be able to access this object from the code behind and
change the Movie and Src tags but I am not sure how to access the
Object tag to do so. Any help is greatly appreciated.
I don't think you can do so, that object runs in the client (the flash
player) so there is no way for it to be visible in the server code.
Feb 28 '07 #2
Brad wrote:
I have several movies being presented to the web on a single page and
each one is dependant on a link selected. On the .aspx page I have
the following code for a single movie.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<OBJECT id="fMovie" runat="server"
codeBase=http://download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,29,0
height=406 width=502 align=middle
classid=clsid:D 27CDB6E-AE6D-11cf-96B8-444553540000 VIEWASTEXT>
<PARAM NAME="_cx" VALUE="13282">
<PARAM NAME="_cy" VALUE="10742">
<PARAM NAME="FlashVars " VALUE="">
<PARAM NAME="Movie" VALUE="Videos/movieplayer.swf ">
<PARAM NAME="Src" VALUE="Videos/movieplayer.swf ">
<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="">
<PARAM NAME="Scale" VALUE="ShowAll" >
<PARAM NAME="DeviceFon t" VALUE="0">
<PARAM NAME="EmbedMovi e" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData " VALUE="">
<PARAM NAME="SeamlessT abbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAd dress" VALUE="">
<PARAM NAME="ProfilePo rt" VALUE="0">
<PARAM NAME="AllowNetw orking" VALUE="all">
<PARAM NAME="AllowFull Screen" VALUE="false">
</OBJECT>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I would like to be able to access this object from the code behind and
change the Movie and Src tags but I am not sure how to access the
Object tag to do so. Any help is greatly appreciated.

~Brad
Then you have to turn those tags into server tags by adding an id and
runat="server". They are not part of the object tag, they are just
inside the object tag.

--
Göran Andersson
_____
http://www.guffa.com
Mar 1 '07 #3

You can't make an HTML <objecttag run on the server and set it's
properties like you can with other tags. <objectis special in
ASP.NET. See

http://quickstarts.asp.net/QuickStar...es/syntax.aspx

Instead use properties on the containing page/control

Movie="<%= FlashMovie %>"
Src = "<%= FlashSource %>"

HTH,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On 28 Feb 2007 13:53:38 -0800, "Brad" <mi******@gmail .comwrote:
>I have several movies being presented to the web on a single page and
each one is dependant on a link selected. On the .aspx page I have
the following code for a single movie.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<OBJECT id="fMovie" runat="server"
codeBase=http://download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ve rsion=6,0,29,0
height=406 width=502 align=middle
classid=clsid:D 27CDB6E-AE6D-11cf-96B8-444553540000 VIEWASTEXT>
<PARAM NAME="_cx" VALUE="13282">
<PARAM NAME="_cy" VALUE="10742">
<PARAM NAME="FlashVars " VALUE="">
<PARAM NAME="Movie" VALUE="Videos/movieplayer.swf ">
<PARAM NAME="Src" VALUE="Videos/movieplayer.swf ">
<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="">
<PARAM NAME="Scale" VALUE="ShowAll" >
<PARAM NAME="DeviceFon t" VALUE="0">
<PARAM NAME="EmbedMovi e" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData " VALUE="">
<PARAM NAME="SeamlessT abbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAd dress" VALUE="">
<PARAM NAME="ProfilePo rt" VALUE="0">
<PARAM NAME="AllowNetw orking" VALUE="all">
<PARAM NAME="AllowFull Screen" VALUE="false">
</OBJECT>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I would like to be able to access this object from the code behind and
change the Movie and Src tags but I am not sure how to access the
Object tag to do so. Any help is greatly appreciated.

~Brad
Mar 1 '07 #4

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

Similar topics

0
3114
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format, which needs a Quicktime plugin, and one Java applet. He's also kindly supplied me with sample HTML code for each. The code looks like this (simplified):
6
2797
by: Christopher Benson-Manica | last post by:
(I posted this as a reply to my thread about iframes, but I think it may get mostly ignored there.) http://ataru.gomen.org/files/test.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>&lt;object&gt; test</title>
2
1963
by: Alex Maghen | last post by:
I want to insert (or not insert) a Macromedia Flash object on my ASP.NET .ASPX page. What is the most elegant way of doing this? I know that I could use an <ASP:Literal> control and just spit the <OBJECT> tag text out to the browser (or not if I don't want to present the Flash movie). Is there another way? Is there an ASP.NET "OBJECT" Web Control?? Alex
2
1652
by: ACaunter | last post by:
Hi all, I have the following code in the html part of my asp.net page to display an activeX control object which is like a picture viewer: ---------------------------- Response.Write("<object style='position: absolute; left=275px; top=73px; width=725px; height=595px;' width='656px' height='475px' classid='clsid:68CE4C35-090C-470B-B956-96B129554E64' standby='Please Wait...' codetype='application/x-oleobject' codebase='com/test.cab'>" &...
1
2061
by: Steve Sobol | last post by:
http://gallery.stevesobol.com/activex-plain.html works in Firefox 1.5 and Opera 9 but not in IE 6, and I can't figure out why. The IE developer toolbar's DOM inspector shows the OBJECT tag and the PARAM tags inside it, and if I don't have the Javascript in an external file, I'll get the "click here to activate" tooltip and the border around what is supposed to be the Flash movie. If I right-click inside the border, I get the Flash...
5
5428
by: Barrie Wilson | last post by:
anyone have any idea why I might be having an impossible time embedding a YouTube <objectin an .ASPX file: <object width="425" height="355"> <param name="movie" value="http://www.youtube.com/v/zAfQwDizpRo&rel=1"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425"
4
8606
by: Alan Silver | last post by:
Hello, I have an <objecttag that is used to display a Flash file. I would like the whole Flash file to be a link. The obvious thought would be to do this... <a href="http://www.url.com"><object blah....> </object></a> ....but this doesn't work.
3
4233
by: etabetapi | last post by:
I'm trying to build a simple gallery using some thumbnail images to load larger images and SWF files by swapping out the source hrefs. It works okay with images, but I'm having trouble doing the same thing with SWFs (Note: Both galleries exist on separate pages so there is no confusion.) Here is the function that works on the image gallery page: function showPic (whichpic) { if (document.getElementById) { ...
0
9170
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...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
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
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.