# Scrolling MC Problem, From Parent SWF

**URL:** <https://forum.kirupa.com/t/scrolling-mc-problem-from-parent-swf/94358>\
**Category:** Uncategorized\
**Created:** [November 11, 2003, 8:48pm UTC](https://forum.kirupa.com/t/scrolling-mc-problem-from-parent-swf/94358 "2003-11-11T20:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2003, 8:48pm UTC](https://forum.kirupa.com/t/scrolling-mc-problem-from-parent-swf/94358/1 "2003-11-11T20:48:06Z")

</div>

I’m scrolling a movie clip from about.swf  
Now when about is loaded into my index.swf the scroller in about doesn’t work. I have a feeling I know the problem, because I am using \_global. Now I used this because when I started using FMX 2004 the actionscript I previously used didn’t work anymore. Not too sure why. But anyway here is my code.

```auto

onClipEvent (load) {
        _global.tarX = 719;
        _global.tarY = 91.0;
}
onClipEvent (enterFrame) {
        this._x += (tarX-_x)/3;
        this._y += (tarY-_y)/3;
		_root.scrollUp.onPress = function(){
			if(_global.tarY < 91){
	        	_global.tarY = _global.tarY + 25;
			}
		}		
		_root.scrollDown.onPress = function(){
			if(_global.tarY > -34){
				_global.tarY = _global.tarY - 24;
			}
		}
}

```

Thanks
