# Trouble with flash function on timeline

**URL:** <https://forum.kirupa.com/t/trouble-with-flash-function-on-timeline/189157>\
**Category:** Uncategorized\
**Created:** [May 14, 2006, 3:15pm UTC](https://forum.kirupa.com/t/trouble-with-flash-function-on-timeline/189157 "2006-05-14T15:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitaeshi](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kitaeshi](https://forum.kirupa.com/u/kitaeshi)\
**Post date:** [May 14, 2006, 3:15pm UTC](https://forum.kirupa.com/t/trouble-with-flash-function-on-timeline/189157/1 "2006-05-14T15:15:29Z")

</div>

Hi all, i trying reuse a function many times so i decide to put it inside the timeline and whenever the movieclip move it will call the function, but it dont work. -\_-

timeline code  
function moveapple(){  
this.\_y += 5;  
}

movieclip code  
onClipEvent(enterFrame){  
moveapple();  
}

but the movie clip dont move -\_-

thxs for reading
