# 3 Little Problems

**URL:** <https://forum.kirupa.com/t/3-little-problems/236778>\
**Category:** flash\
**Created:** [August 23, 2007, 4:21pm UTC](https://forum.kirupa.com/t/3-little-problems/236778 "2007-08-23T16:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_S1](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@Brian\_S1](https://forum.kirupa.com/u/Brian_S1)\
**Post date:** [August 23, 2007, 4:21pm UTC](https://forum.kirupa.com/t/3-little-problems/236778/1 "2007-08-23T16:21:00Z")

</div>

Hi everyone,  
I’m almost finished a site but there are a few things which I just can’t figure out. Some of them may well be quite basic but they’re driving me nuts!

1. I’m having a spot of bother with a tutorial I got for a scrollbar which is designed for Action Script 1.0 through Flash Player 6 but the site I’m working on is designed for Action Script 2.0 through Flash Player 7 and so the scrollbar won’t work for me. Can anyone tell me what I can do to modify the following code?

txt.setMask(mask)  
scrollbar.onMouseDown = function() {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse) && txt.\_height\>mask.\_height) {  
this.startDrag(false, scrollbarBG.\_x, scrollbarBG.\_y, scrollbarBG.\_x, scrollbarBG.\_height-this.\_height)  
txt.onEnterFrame = scrollThumbs;  
dragging = true;  
}  
}  
scrollbar.onMouseUp = function() {  
stopDrag()  
dragging = false;  
delete this.onEnterFrame;  
}  
function scrollThumbs() {

var funkyVar = -this.\_parent.scrollbar.\_y\*(((this.\_height-this.\_parent.scrollbar.\_height)/(this.\_parent.scrollbarBG.\_height-this.\_parent.scrollbar.\_height))-1)  
this.Y = (funkyVar-this.\_y)\*.2;  
this.\_y += this.Y;  
if(Math.abs(funkyVar-this.\_y)\<1 && !dragging){  
delete this.onEnterFrame;  
}

}

1. Has anyone ever had trouble with a movie clip which, when moved above a certain layer, messes up the text in several other layers? The text appears to be missing certain letters, almost as if some letters had not been embedded.

2. How do I vertically align my swf in a html file?

Thanks for reading this.
