RE: Dynamic Flash

2009-01-19 Thread Adrian Lynch
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
 tdVideo/td
 tdTitle/td
 tdDescription/td
 tdUser_submit/td
 td /td
 td /td
 /tr
 tr
 tda
 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


Re: Dynamic flash or images for MySpace?

2006-10-10 Thread Deanna Schneider
You can make a simple flash file that will read in XML. Is the text
the same for everyone, but changes periodically? If so, it's super
easy.

Here's a quickie example. This is probably not the best ever example
of flash code, as I'm just learning it. But you'll get the idea:

On your first frame have code like so.
loadText();

// Load the variables from the text file
function loadText() {
var textXML = new XML();
textXML.ignoreWhite = true;

textXML.load(URL of your CFM page here that outputs XML dynamically);
text.XML.onLoad = function (success) {
if (success) {
ontextXMLLoaded(this);
}
};
}



function ontextXMLLoaded(loadedXML) {

// grab the setup node to get the basic set up data
var arNodes = loadedXML.firstChild.childNodes;

var setUpNodes = arNodes[0].childNodes;

var dynamic_text = setUpNodes[0].firstChild.nodeValue;  //Get your
text here. This path will depend on your xml

// Do something here to set the now grabbed dynamic_text to output
on your movie in a field called txtField
txtField.text = dynamic_text;

}


On 10/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I am trying to take realtime text data from my website and allow users to
 place it on their MySpace profile.  But MySpace only its members to add  HTML,
 images, and flash to their profiles so I have been trying to output the  text
 data from my site as a JPG or Flash that MySpace users can then add to  their
 profiles.  Then I figure can set up a scheduled task to refresh  the JPG or
 Flash, so the latest data will appear on MySpace.

 I have had some success using CFCHART and saving the output to the server
 via writing to CFFILE, but in this case I am trying to display mostly dynamic
 text from the database.  Therefore, I really don't need the chart that is
 produced, so I am using imagemagick to crop out the chart an just keep the 
 text
 that is produced from CFCHART. But this 2 step process would  be unnecessary 
 if
 I could just output text from the database to an  image like CFCHART does
 (but without the chart).

 If elaborate 3-D charts can be created with ColdFusion, surely there is a
 way for me to just output text from my database into an image or flash for 
 later
  use with MySpace, right?


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256119
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Dynamic flash or images for MySpace?

2006-10-10 Thread James Holmes
Use one of the free CF image CFCs/tags to write the text to a JPG.

On 10/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I am trying to take realtime text data from my website and allow users to
 place it on their MySpace profile.  But MySpace only its members to add  HTML,
 images, and flash to their profiles so I have been trying to output the  text
 data from my site as a JPG or Flash that MySpace users can then add to  their
 profiles.  Then I figure can set up a scheduled task to refresh  the JPG or
 Flash, so the latest data will appear on MySpace.

-- 
CFAJAX docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256212
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4