# Some weird output

**URL:** <https://forum.kirupa.com/t/some-weird-output/35583>\
**Category:** flash\
**Created:** [November 15, 2003, 6:39pm UTC](https://forum.kirupa.com/t/some-weird-output/35583 "2003-11-15T18:39:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjm](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rjm](https://forum.kirupa.com/u/rjm)\
**Post date:** [November 15, 2003, 6:39pm UTC](https://forum.kirupa.com/t/some-weird-output/35583/1 "2003-11-15T18:39:15Z")

</div>

Hey. just wondering if someone can explain to me why I get this output:

“Target not found: Target=“undefined” Base=”\_level0"

It shows up after my preloader finishes and goes to the nextscene. Heres my actionscript setup on frame 2.

[AS]loadedbytes = getBytesLoaded();  
totalbytes = getBytesTotal();  
loadedkbytes = Math.ceil(loadedbytes/1000);  
totalkbytes = Math.ceil(totalbytes/1000);  
if (loadedbytes == totalbytes) {  
nextScene();  
}  
percent = Math.ceil(loadedbytes/(totalbytes/100));  
tellTarget(\_root.loading) {  
gotoAndStop(\_root.percent);  
}[/AS]

my preloader instance name is “loading” . And it works fine, I just dont understand why im getting that output?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 10:44pm UTC](https://forum.kirupa.com/t/some-weird-output/35583/2 "2003-11-15T22:44:54Z")

</div>

[AS]  
loadedbytes = getBytesLoaded();  
totalbytes = getBytesTotal();  
loadedkbytes = Math.ceil(loadedbytes/1000);  
totalkbytes = Math.ceil(totalbytes/1000);  
if (loadedbytes == totalbytes) {  
nextScene();  
}  
percent = Math.ceil((loadedbytes/totalbytes)\*100);//that will give you a percentage  
tellTarget("\_root.loading") {//needs to be in quotes or it thiks it is a variable  
gotoAndStop(percent);//if that relates to the percent you just defined you can write it like that  
}  
[/AS]

Hope that helps,  
Shawn

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 10:53pm UTC](https://forum.kirupa.com/t/some-weird-output/35583/3 "2003-11-15T22:53:15Z")

</div>

Why are you using [font=courier new]tellTarget[/font] anyway? It has been deprecated since Flash 5!! :-\

```auto
_root.loading.gotoAndStop(percent);

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 11:03pm UTC](https://forum.kirupa.com/t/some-weird-output/35583/4 "2003-11-15T23:03:38Z")

</div>

I was wondering the same thing myself, however, I figured I would leave it since it seems they know how to use it, and I didn’t want to explain the other format, lazy me always tring to get out of working. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 5:58am UTC](https://forum.kirupa.com/t/some-weird-output/35583/5 "2003-11-16T05:58:04Z")

</div>

Thanx for the help guyz. I figured it out :thumb: . The script was taken from Flash Super Samurai so that might explain why its out of date…

btw, what does deprecated mean?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 6:17am UTC](https://forum.kirupa.com/t/some-weird-output/35583/6 "2003-11-16T06:17:01Z")

</div>

deprecated means, disapprove of strongly literally speaking, for flash it means it has a newer better way of doing it, and that method will probably be removed in a future release.
