Groups | Blog | Home
all groups > coldfusion flash integration > february 2007 >

coldfusion flash integration : Scroll Position



jedale
2/13/2007 2:15:24 AM
I have a working listener on a mock scroll bar, but I get results that are not
correct. I was hoping that somebody knows how I could get the position of a
scroll bar through an actionscript alert or by binding it to a coldfusion form.


As shown in the code below, I am using "vScroll.vPosition" to return the
position.

The code below is ready to run just copy and paste onto the server to see my
problem.

Thanks for your time.

<cfform action="anotherpage.cfm" name="form" format="flash" height="750"
width="300" wmode="transparent" timeout="3600" onload="addScroller();">
<cfformitem type="script">
function addScroller(){
var spListener:Object = Object();
spListener = function(evt_obj:Object):Void {
alert("vPosition: "+vScroll.vPosition+" vScrollheight:
"+vScrollheight.vPosition);
}
// Add listener.
vScroll.addEventListener("scroll", spListener);
}
</cfformitem>
<cfformgroup type="hbox" height="600" id="vScroll">


<cfformgroup type="vbox" height="1200" id="vScrollheight">

</cfformgroup>
</cfformgroup>

</cfform>
jedale
2/22/2007 8:20:21 PM
AddThis Social Bookmark Button