# Targetting & Scrolling / hlp?

**URL:** <https://forum.kirupa.com/t/targetting-scrolling-hlp/188722>\
**Category:** flash\
**Created:** [May 10, 2006, 11:00am UTC](https://forum.kirupa.com/t/targetting-scrolling-hlp/188722 "2006-05-10T11:00:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thedaveyb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thedaveyb](https://forum.kirupa.com/u/thedaveyb)\
**Post date:** [May 10, 2006, 11:00am UTC](https://forum.kirupa.com/t/targetting-scrolling-hlp/188722/1 "2006-05-10T11:00:38Z")

</div>

right getting really stuck with this one, i have a image reel which loads in images via ASP and of course a database, the images are sent into an array which then displays them side by side in a movieclip container (mcscroll)

now i need to scroll this left and right depending on where the mouse is, my problem is that the mcscroll is created using ‘createEmptyMovieClip’ and the scroll code i have from previous all uses onClipEvent - of course there is no clip to put this code on… how do i target this mcscroll clip and make it scroll ? is the easy way of putting it!!

this is the code that basically creates and populates the ‘mcscroll’

```auto
this.createEmptyMovieClip("mcscroll", this.getNextHighestDepth());
    for (i=0; i<=_root.image_array_length-1; i++) {
        this.mcscroll.attachMovie("image", "image"+i, i);
        myLoader.loadClip("http://www.designed4hits.com/dev/feedme/img/"+image_array*+"?cb=11", _root.mcscroll["image"+i]);
        _root.mcscroll["image"+i]._x = myX;
        if ((i+1)%1 == 0) {
            myX += 151;
            trace(myX);
            _root.mcscroll["image"+i]._x = MyX;
            loadScroll();
        } else {
            _root.mcscroll["image"+i]._x = MyX;
        }

```
