Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Flash in web parts

Status
Not open for further replies.

jasonsalas

IS-IT--Management
Joined
Jun 20, 2001
Messages
480
Location
GU
I'm trying to reference a Flash animation in a WebPartZone for a dynamic time widget, but it won't render. The file can be accessed either through SCRIPT or EMBED tags within the page's body. So, it's not contained within a regular ASP.NET control that can be wrapped into a GenericWebPartControl Is it possible to use Flash animations?

I'm thinking that it might work by using a custom server control and then HtmlTextWriter.Writer()'ing the SCRIPT markup to the page. Anyone have any luck with this?
 
I would try using Javascript to write the embed/object tag after the page renders on the client. I haven't tried this in a webpart, but it shouldn't be an issue. Adobe recommends this method to avoid the 'Click to activate control' message in modern browsers anyway. Check out -
 
Thanks! I got it to work as I suspected...using a custom server control and writing the necessary tags referencing the Flash code in the page. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top