<OBJECT> Tags and Server-Side Control

G

Guest

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
 
K

Ken Cox [Microsoft MVP]

Hi Alex,

You might want to investigate this free control that helps you configure and
emit the Flash object code:

"AI-Flash'In ASP.net component allows you to include a Flash-movie on your
Webform with a few mouse clicks. You can parameter all the Flash player
native properties. The swf selection to play is activated through a standard
dialog box. Sizing and positioning are done with the mouse and moving is
played at design-time. With Flash-inside, it is now possible to include a
movie with a simple drag and drop.
With AI-Flash'In, you can use a click event. A click event in the flash
movie can be handled in a webform by adding a few code in the movie. You can
add a sensitive area (using a clip or a button). This actionscript code
cause the page to be posted back to the server, throwing the serverside
click event on the AI-Flash'In control. "

http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=1530&tabindex=0
 
K

Kevin Spencer

Is there some reason why you need to have it runat server? Do you need to
change it dynamically? If not, just put the HTML for the SWF into the HTML
for your page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Alex Maghen said:
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???
 
K

Kevin Spencer

Hi Alex,

One solution would be to create your <OBJECT> tag in a custom Server
Control, which can expose properties that allow you to control the HTML it
renders to the page. I have done this before.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Alex Maghen said:
Hi -

See my response to Ken Cox (above). Yeah, I want to dynamically access the
attributes, and even conditionally show, or not show the Flash Movie OBJECT
altogether.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top