Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : scrollbar position


tlm_scripter
11/25/2006 4:08:25 PM
I am working with the scrollpane component. I have movie clips that I've
loaded into the scrollpane successfully and am working on having the content
automatically scroll. This mostly works, but the problem is that I am not able
to get the scrollbar to move accordingly. I have tried using hPosition, but
this does nothing.
Any suggestions as to what I could do to?

Here is my code: (sContent is the content of the scrollpane and sScroller is
the scrollpane.)

function doScroll(){
var curposX = _root.sContent._x;
if(curposX>stopper){
_root.sContent._x-=3;
_root.sScroller.hPosition -=3; //i've also tried taking
out the line above this one and only using hPosition
}
else{
stopScroll();
}
}
Marghoob Sulemaan
11/25/2006 5:38:51 PM
if you are using flash 8 you can use
tlm_scripter
11/27/2006 2:56:34 PM
tlm_scripter
11/27/2006 3:38:01 PM
I think I figured out my problem. I started this project in MX and upgraded to
flash 8 so even though I'm using flash 8, my component has not been updated and
does not have the same properties and functions as the flash 8 scrollpane.
Thus, it doesn't know what to do with hPosition.
AddThis Social Bookmark Button