# Preloader for a movie

**URL:** <https://forum.kirupa.com/t/preloader-for-a-movie/299925>\
**Category:** Uncategorized\
**Created:** [November 12, 2009, 7:19pm UTC](https://forum.kirupa.com/t/preloader-for-a-movie/299925 "2009-11-12T19:19:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrkhoros](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mrkhoros](https://forum.kirupa.com/u/mrkhoros)\
**Post date:** [November 12, 2009, 7:19pm UTC](https://forum.kirupa.com/t/preloader-for-a-movie/299925/1 "2009-11-12T19:19:24Z")

</div>

hi .

i tried to load an image into my stage. with clicking a button

so i put actionscript for the button as such :

on (release) {

```
    loadMovie("folderir.jpg", _root.loader.photo);
	l = this.getBytesLoaded();
	t = this.getBytesTotal();
	load_text.text = Math.floor((l/t)*100);
	load_text.text = percentage ;
	load_text.text;
	if (percentage &gt;= 100) {
		

		_root.loader._x = 11;
		_root.loader._y = 15;
		load_text.text = "";

```

}

but the loader is not working the % which has to count to 100 then show the picture  
doesnt work and the picture appears with out loading…

could u help me with that ?

p.s : i have load\_text under property of dynamic text with its instance name.
