# onData Help!

**URL:** https://forum.kirupa.com/t/ondata-help/95737
**Category:** Uncategorized
**Created:** [November 29, 2003, 10:50pm UTC](https://forum.kirupa.com/t/ondata-help/95737 "2003-11-29T22:50:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)
#### Post date: [November 29, 2003, 10:50pm UTC](https://forum.kirupa.com/t/ondata-help/95737/1 "2003-11-29T22:50:57Z")

</div>

What am I missing here? The code below should run the trace command once I have received data into my movieClip “screen”. The movie clip is loaded with data but the onData function never runs. I also put the onData function in a loop but that did not work either.

```php

photo = "http://www.domain.com/data_base/gallery/gallery0/"+photoNum+".jpg";

screen.loadMovie(photo);
screen.onData = function() {
trace("onData");
}

```

I would like to be able to run a command after my movie clip, “screen” has received data.
