-
Flash in .asp pages
Im trying to get a flash animation (.swf) to play in a .asp page. The animation has been exported in the htm_files but will not play now the page has been renamed .asp. I have inserted the following code into the placeholder and named the placeholder <object>:
<object type="application/x-shockwave-flash" width="347" height="236" data= flash.swf">
<param name="movie" value="flash.swf">
</object>
and have replaced both instances of "flash.swf" above with the actual file name. Can somebody tell me what I am doing wrong? Without this code the page didn't load at all. Right clicking the area on the page brings up a message saying "movie not loaded"
Thanks for any suggestions.
-
Re: Flash in .asp pages
Have you published these pages? .asp pages won't work locally, they have to be on the host server first :-)
-
Re: Flash in .asp pages
yes they are published. Ive found some more code from Adobe:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="movie_name" align="middle">
<param name="movie" value="movie_name.swf"/>
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="movie_name.swf" width="550" height="400">
<param name="movie" value="movie_name.swf"/>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
(available from http://kb2.adobe.com/cps/415/tn_4150.html)
but this won't work for me either. I can get the page to load but the flash won't play. Can someone tell me what Im doing wrong?
I've tried inserting the URL instead of the filename for the flash but this doesnt work either. The flash file in its self does work though - it plays when entering the URL in IE.
-
Re: Flash in .asp pages
If your swf is in the index_htm_files folder then the code should read :-
<object type="application/x-shockwave-flash" width="347" height="236" data="index_htm_files/flash.swf">
<param name="movie" value="index_htm_files/flash.swf">
</object>
:)
-
Re: Flash in .asp pages
the top page in the document is logon.asp (which WD6 exports as logon.htm) so my swf is in logon_htm_files. Ok, so I'll rename that and insert the flash file name in place of flash.swf and give it another shot. Thanks.
-
Re: Flash in .asp pages
Cheers Neodeist, it works perfectly!!! :D That's great. I've spent 2 days trying to figure that one out! ;)) Was missing the index_htm_files (or in my case logon_htm_files) before the filename of the flash. Thanks!
-
Re: Flash in .asp pages