The first observation is that you can only run this through the file system
not through a web browser ... For that you would need "http://"; not
"file://" .... Secondly, running it through the file system will likely
cause the content to be blocked based on security settings so you will have
to overcome that hurdle. Third, the "id" param in your object bar should be
something for use with JS (i.e. get rid of the ".swf"), and finally there is
usually some accompanying javascript with these things... Something setting
a variable from 1 to 100 or whatever.... The purpose of CFFLUSH is to cause
the browser to fire a setvariable command and adjust that variable from 1 to
100 based on the level complete. Cfflush sends stuff to the browser
prematurely where it is executed in advance of receiving the entire buffer.
The way I've seen it is...



<object ...id="movie" ...>
</object>

<cfouput query="somequery with lots of rows">
        <cfif NOT currentrow MOD 10>
        
<script>document.movie.setVariable(#int((currentrow/queryname.recordcount) *
100)#);
        </cfif>

        output some values....
</cfoutput>

-Mark

Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-----Original Message-----
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:40 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

This is the simple coldfusion code i'm trying to do

<!-- Flash movie tag-->

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,0,0"
    WIDTH="221" HEIGHT="70" id="proggybar.swf" ALIGN=""> <PARAM NAME=movie
VALUE="file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf"> <PARAM NAME=quality
VALUE=high> <PARAM NAME=bgcolor VALUE=ffffff> <EMBED
src="file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf" quality=high bgcolor=dd
WIDTH="221" HEIGHT="70"
    NAME="proggybar.swf" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>
</OBJECT>

<cfflush>

<cfoutput> Helllllllllooooooooooo...............</cfoutput>

Any ideas please.

Thanks!

>I tried both ways(cfflush and #) still its not working.
>
>Thanks!
>
>>You may need to escape the #
>>
>>chr chr wrote:
>>>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265017
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