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>
Don't see what you're looking for? Try a search.
|