Make sure your webserver can server up .flv files. IIS doesn't (not sure if
things have changed for the latest one) by default.

Browse to where you think the flv is and see if it's being served up.

If it is, try playing it in a regular video player, does it work?

Adrian

> -----Original Message-----
> From: Sin Tec [mailto:tooles...@gmail.com]
> Sent: 19 January 2009 16:55
> To: cf-talk
> Subject: Dynamic Flash
> 
> I am trying to output a video name dynamicly with coldfusion with JW
> FLV Player http://www.longtailvideo.com/players/jw-flv-player/ but keep
> getting a 404:Error 2032.
> 
> I have the same file in the body tag when it loads and that works just
> fine. But then if i try on the dynamic link which just outputs a name I
> get the error or the player disappears altogether.
> 
> My browser status bar and alert in the Url Javascript Alert show me the
> same exact file url.
> 
> I have also tried using the full domain address in the link too.
> Someone also told me to try #URLEncodedFormat(video)# but that still
> didnt work.
> 
> Any Ideas or tips?
> 
> Thank you.
> 
> 
> <script type="text/javascript" src="scripts/swfobject.js"></script>
> <script type="text/javascript">
> 
> function deletePlayer(theWrapper, thePlaceholder, thePlayerId) {
> swfobject.removeSWF(thePlayerId);
> var tmp=document.getElementById(theWrapper);
> if (tmp) { tmp.innerHTML = "<div id=" + thePlaceholder + "></div>"; }
> }
> 
> 
> function createPlayer(thePlaceholder, thePlayerId, theFile) {
> var flashvars = {
> file:theFile,
> autostart:"true"
> }
> var params = {
> allowfullscreen:"true",
> allowscriptaccess:"always"
> }
> var attributes = {
> id:thePlayerId,
> name:thePlayerId
> }
> swfobject.embedSWF("scripts/player.swf", thePlaceholder, "320", "196",
> "9.0.115", false, flashvars, params, attributes);
> }
> 
> 
> function initPlayer(theFile) {
> deletePlayer('wrapper', 'placeholder1', 'player1');
> alert('URL: ' + theFile);
> createPlayer('placeholder1', 'player1', theFile);
> }
> </script>
> </head>
> 
> <body onLoad="initPlayer('video/files/test.flv');">
> 
> <cfoutput query="qVideo">
> 
> <table width="100" border="0">
> <tr>
> <td>Video</td>
> <td>Title</td>
> <td>Description</td>
> <td>User_submit</td>
> <td> </td>
> <td> </td>
> </tr>
> <tr>
> <td><a
> href="javascript:initPlayer('video/files/#video#')">#video#</a></td>
> <td>#title#</td>
> <td>#description#</td>
> <td>#user_submit#</td>
> <td> </td>
> <td> </td>
> </tr>
> </table>
> </cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318178
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to