# 'Postloader help I am deperate!

**URL:** <https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800>\
**Category:** Uncategorized\
**Created:** [August 18, 2004, 3:26am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800 "2004-08-18T03:26:22Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 3:26am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/1 "2004-08-18T03:26:22Z")

</div>

Hi I am having problems with the postloader (preloader after my animation is finished). I have finally got the preloader working, but can’t seem to get the ‘postloader’. I do not want anything fancy. I just want the whole movie (animation) to start again when a user clicks my ‘Play again?’ button. I am sorry I do not know action script and fairly new and beginning. Can someone please help me? Thanks.

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 3:29am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/2 "2004-08-18T03:29:45Z")

</div>

Put this on your “Play Again” button:[AS]on (release) {  
gotoAndPlay(1);  
}[/AS]Change the frame number to wherever the animation starts.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 6:15am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/3 "2004-08-18T06:15:37Z")

</div>

> [@wizard](#):
>
> Put this on your “Play Again” button:[AS]on (release) {  
> gotoAndPlay(1);  
> }[/AS]Change the frame number to wherever the animation starts.

Hi I did as you suggested and got a syntax error that read something about ‘mouse interaction cannot be in a button instance’. I even tried it within the button and no go it wouldn’t let me. I have a separate actions layer as well and do not know what to do with that. Any other ideas? I know this must be simple but I cannot figure it out. I am new to actionscript. Thanks for any help.

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 6:33am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/4 "2004-08-18T06:33:29Z")

</div>

Select the Button Symbol on your stage, in this case the “Play Again” button. With your button selected, open the Actions Panel (F9) and then insert that script I gave you.

If this doesn’t work can you give post the exact error message you get?

---

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [August 18, 2004, 8:06am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/5 "2004-08-18T08:06:27Z")

</div>

:red: Which version of flash u r using. Flash 5 doesn’t support on(click) events on MOvieclips. Tryout this method. Give an instance name to the movieclip or button on the stage. Give an instance name. For example instance name “replay”.

```auto
  
_root.replay.onRelease = function (){
_root.yourmovieClip.gotoAndPlay (1);
 
}

```

Moreover to replay the animation perfectly that depends on the timeline structure and independent timeline should be restored for the next loop. Anyway i hope this help you to solve the problem,…best of luck :esmirk:

---

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [August 18, 2004, 8:09am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/6 "2004-08-18T08:09:33Z")

</div>

A postloader !? That’s of totally no use. The whole animation will already have been loaded by the time you reach the end of it.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 8:53am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/7 "2004-08-18T08:53:17Z")

</div>

I didn’t know what else to call it. It functions like the preloader as it is advancing to the next scene after the dumb little animation is over, less loading the whole movie. I am using Flash MX, the error message I am getting with wizard’s suggestion is:

scene=Post-loader,layers=button, Frame 102:Line 1: Mouse events are permitted only for button instance  
on {release} {gotoAndPlay (1)}

I will try your suggestion ahb. Thank you. I was reading about assigning targets for this, I will possibly try this as well. I will get back to you. Thanks guys. For something that seems so simple this is a major pain.

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 4:45pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/8 "2004-08-18T16:45:56Z")

</div>

Sounds like you’re placing the ActionScript on a frame instead of your button.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 5:54pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/9 "2004-08-18T17:54:14Z")

</div>

> [@wizard](#):
>
> Sounds like you’re placing the ActionScript on a frame instead of your button.

Yeah I am placing the script on a frame; on my button layer. I tried putting it within the button and the actions panel would not let me. I also tried what abhilashkk suggested. No go. I just want a button to stop the movie when it is done, and give the viewer the option to click on my ‘Play again?’ button and play the movie again if they wish. I am going to look more into target paths. I will try to also figure out how to put the actionscript on the button solely. Thanks.

---

<div class="post-metadata">

**Author:** ![cameramano](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cameramano](https://forum.kirupa.com/u/cameramano)\
**Post date:** [August 18, 2004, 6:24pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/10 "2004-08-18T18:24:43Z")

</div>

I’m guessing that you are double clicking your button (as if to edit it) and then adding your script.

You need to go to your main timeline (or whatever is one level up from your button) and single-click the button. Now add the script.

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 7:39pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/11 "2004-08-18T19:39:37Z")

</div>

> [@cameramano](#):
>
> I’m guessing that you are double clicking your button (as if to edit it) and then adding your script.
> 
> You need to go to your main timeline (or whatever is one level up from your button) and single-click the button. Now add the script.

Do what he said. And to stop the animation from re-playing on its own simply place: **stop();** on the last frame of your movie.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 10:12pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/12 "2004-08-18T22:12:27Z")

</div>

> [@wizard](#):
>
> Do what he said. And to stop the animation from re-playing on its own simply place: **stop();** on the last frame of your movie.

I added both scripts independently to the button and nothing seems to work. I even tried quoting the string (my project name) and that didn’t work. I have a label layer with the last keyframe labeled for my button; my button layer with the last keyframe for the button and the action on that and an actions layer with the last keyframe with a stop(); I am at a wits end. I am going to try it a little while longer then forget it. Thanks for your help everybody regardless.

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 11:08pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/13 "2004-08-18T23:08:12Z")

</div>

> [@cbirke20](#):
>
> I am going to try it a little while longer then forget it.

No, don’t do that… if you can, post the file and I’ll take a look at it.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 18, 2004, 11:18pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/14 "2004-08-18T23:18:29Z")

</div>

Hi thanks. How would I post the file? The flas are each over 30 megs in size. they are huge. Did you want a mock copy of the layers for the scenes? swf?

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 18, 2004, 11:23pm UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/15 "2004-08-18T23:23:19Z")

</div>

Oh, I didn’t realize it was multiple files… try placing them inside of a .zip file and upload that.

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 19, 2004, 1:19am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/16 "2004-08-19T01:19:06Z")

</div>

Hi I finally got it. I put a gotoandPlay script with a quoted string of my project onto the button. As with a stop(); action on that keyframe. Thanks alot guys. You actually helped me size down to a solution. Thanks again. I am glad that it is over. Now I can actually learn actionscript now that this thing is finished. : )

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 19, 2004, 2:54am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/17 "2004-08-19T02:54:32Z")

</div>

:thumb:

Glad to hear you got it working.

---

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [August 19, 2004, 4:16am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/18 "2004-08-19T04:16:05Z")

</div>

Hi cbirke20 It sounds very strange…could u pls upload the file…

---

<div class="post-metadata">

**Author:** ![cbirke20](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cbirke20](https://forum.kirupa.com/u/cbirke20)\
**Post date:** [August 19, 2004, 4:19am UTC](https://forum.kirupa.com/t/postloader-help-i-am-deperate/119800/19 "2004-08-19T04:19:16Z")

</div>

i wish I could but all hte files are huge. trust me it was strange to me. I thot it would be simple but turned out to be a hassle. The logistics of it were simple but I don’t know actionscript that is why. Thanks for your help tho.
