# Action-script for my own preloader

**URL:** https://forum.kirupa.com/t/action-script-for-my-own-preloader/33289
**Category:** flash
**Created:** [October 17, 2003, 1:09pm UTC](https://forum.kirupa.com/t/action-script-for-my-own-preloader/33289 "2003-10-17T13:09:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FaX](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@FaX](https://forum.kirupa.com/u/FaX)
#### Post date: [October 17, 2003, 1:09pm UTC](https://forum.kirupa.com/t/action-script-for-my-own-preloader/33289/1 "2003-10-17T13:09:16Z")

</div>

Hi everybody 🙂  
i have a problem with my action script for my preloader!!  
i know that i can find losts of finished preloders but i want to make my own

i have made a scene called preloader  
and 3 layers 2 of them is moviclips

one with the effect = 2 cirkels skewing against eche others.  
the other one with the text Loading

now i need to make a actionsript but i really dont know how

as i was saying i got a scene called preloader  
and i got a scene called Main

and i only want my preloader to go from 0-100 %  
and then goto the Main scene

What do i do and how

---

<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: [October 23, 2003, 11:39am UTC](https://forum.kirupa.com/t/action-script-for-my-own-preloader/33289/2 "2003-10-23T11:39:31Z")

</div>

well u use the usual preloader code im at college so i dont have it with me

this code goes into the first frame of the preloader scene

```php

if (_framesloaded>=_totalframes) {
	gotoAndPlay ("main", 1);
} else {
	gotoAndPlay (1);
}

```

this should work try it and if not then post the fla on here and ill get it after work 2nite

-Tom
