# FMX04 onClipEvent (data) help need

**URL:** <https://forum.kirupa.com/t/fmx04-onclipevent-data-help-need/121199>\
**Category:** Uncategorized\
**Created:** [August 31, 2004, 8:01pm UTC](https://forum.kirupa.com/t/fmx04-onclipevent-data-help-need/121199 "2004-08-31T20:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icekomo](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@icekomo](https://forum.kirupa.com/u/icekomo)\
**Post date:** [August 31, 2004, 8:01pm UTC](https://forum.kirupa.com/t/fmx04-onclipevent-data-help-need/121199/1 "2004-08-31T20:01:58Z")

</div>

This is my action scripting,

onClipEvent (data) {  
if (bytes\_loaded == bytes\_total) {  
gotoAndPlay(6);  
}

What I’m trying to do is load an external movie into my main flash site, but I want the main flash site to wait till the movie is loaded then the main time line starts to play again. I would told that the onClipEven(data) would give me this option. So I thought I said that when it’s loaded go and play frame 6 of the main time line. What am I doing wrong?

My external movie works fine, and it has a preloader, just want the main timeline to wait till that movie is loaded to start to play again
