# Trouble with lineTo

**URL:** https://forum.kirupa.com/t/trouble-with-lineto/52776
**Category:** flash
**Created:** [May 27, 2004, 5:53am UTC](https://forum.kirupa.com/t/trouble-with-lineto/52776 "2004-05-27T05:53:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![voidoid](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@voidoid](https://forum.kirupa.com/u/voidoid)
#### Post date: [May 27, 2004, 5:53am UTC](https://forum.kirupa.com/t/trouble-with-lineto/52776/1 "2004-05-27T05:53:57Z")

</div>

I’m new so please bear w/ me…  
On the main stage i have a movie clip that contains a movie clip that contains a bitmap (\_root.movieclip1.movieclip2.bitmap). The actions for the instance of movieclip2 cause the bitmap to follow a sine wave path across the stage.  
I’d like to draw a line behind the bitmap, so I created another movieclip on the main stage that has these actions:

onClipEvent (load) {  
moveTo (##x and y positions from other movieclip##);  
}

onClipEvent (enterFrame) {  
lineStyle (5, 0xff00ff, 100);  
lineTo (##x and y positions from other movieclip##);  
}

the timeline only has one frame (can this be done with only one frame??)  
anyway, I’m lost and would appreciate some help, thanks in advance.
