anchor tag emulation in flash
Hi, Im trying to emulate the functionality of anchor tags within a scrolling mc in flash. Does anyone know what the formula is for calculating the percentage the scrollbar would have to move to to make a certain item at a certain ypos within the scrollpane move to the top of the screen? (Basically, how one would calculate the same thing that clicking an anchor tag does in html)
Im not using the scrollpane component, but for the sake of discussion, lets say I am.
any help on this would be greatly appreciated.
|