views:

15

answers:

1

I have a asp.net master page that gets used by pages many /levels/deep/

I will put a link to a flash file in this template.

I tried doing it like this but it did not work, what the best practice here?

<object width="924" height="200">
<param name="movie" value="/live.swf">
<embed src="/live.swf" width="924" height="200">
</object>
A: 

If you using .net and putting an swf into a master.page, use this:

<script type="text/javascript"> 
swfobject.embedSWF("<%= this.ResolveUrl("~/live.swf") %>", "headerFlash", "924", "200", "9.0.0"); 
</script> 
aron