# Need a little help (preloading and animating)

**URL:** <https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012>\
**Category:** flash\
**Created:** [March 31, 2006, 10:29pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012 "2006-03-31T22:29:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [March 31, 2006, 10:29pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/1 "2006-03-31T22:29:21Z")

</div>

Okay so I am trying to combine two FLA’s.

the [movie / actual flash part](http://www.somebody509.us/flash_files/buttonClipSample.fla)

and the [preloader](http://www.somebody509.us/flash_files/veryadvancedpreloader.fla) part.

So I go into the second scene of the preloader and try to paste the first frames for my actual content part (buttonclipsample.fla) but it keeps playing and I can’t get it to stop. I tried putting stop(); on the first frame of my buttonclipsample but that hasn’t done anything. Can anybody help me out?

I also can’t figure out how to animate the button sample to what I want. I want it so when I click it the box expands and as soon as it gets to 100% it flashes white (fade to white) and than goes back to how the box is now at 100% (with the dark background) and the text fades in. I know the text part includes actionscript that has to deal with alpha but thats about it…I’m also going to have more buttons so can I just take the code thats in there now for the reasizing and edit it so that if someone clicks a differnt button it goes back down, and than expands again? If anybody could offer any help it would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![calvintage](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@calvintage](https://forum.kirupa.com/u/calvintage)\
**Post date:** [March 31, 2006, 10:46pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/2 "2006-03-31T22:46:05Z")

</div>

Can you post your code or FLA?

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [March 31, 2006, 11:04pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/3 "2006-03-31T23:04:42Z")

</div>

The second and third lines contain links to both FLA’s

---

<div class="post-metadata">

**Author:** ![calvintage](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@calvintage](https://forum.kirupa.com/u/calvintage)\
**Post date:** [March 31, 2006, 11:13pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/4 "2006-03-31T23:13:09Z")

</div>

I have no idea how css files can be incorporated into text files…

But for the preloader, you’ll want to put it in onEnterFrame like this:

```auto

objNewTime = new Date();
 
this.onEnterFrame = function() {
........
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete onEnterFrame;
    nextScene ();
} 
};

```

---

<div class="post-metadata">

**Author:** ![calvintage](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@calvintage](https://forum.kirupa.com/u/calvintage)\
**Post date:** [March 31, 2006, 11:14pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/5 "2006-03-31T23:14:36Z")

</div>

oops… don’t forget to place “stop();” somewhere(ex. top) in the same frame.

---

<div class="post-metadata">

**Author:** ![boohaha](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@boohaha](https://forum.kirupa.com/u/boohaha)\
**Post date:** [March 31, 2006, 11:15pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/6 "2006-03-31T23:15:29Z")

</div>

As far as the first part… the fla’s are… combined!!  
Sorry, I am not very fond of scenes… 😊

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [March 31, 2006, 11:22pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/7 "2006-03-31T23:22:52Z")

</div>

> [@boohaha](#):
>
> As far as the first part… the fla’s are… combined!!  
> Sorry, I am not very fond of scenes… 😊

That actually makes it easier on me. Thank you very much.

Anybody have any idea on how I would go about animating the second part of my question?

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [March 31, 2006, 11:45pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/8 "2006-03-31T23:45:36Z")

</div>

I guess what I’m really asking is how do I attatch a movie clip AFTER the text box is expanded to 100%?

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [April 1, 2006, 4:01pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/9 "2006-04-01T16:01:07Z")

</div>

> [@somebody509](#):
>
> **I guess what I’m really asking is how do I attatch a movie clip AFTER the text box is expanded to 100%?**

Bumps\*

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [April 4, 2006, 5:05pm UTC](https://forum.kirupa.com/t/need-a-little-help-preloading-and-animating/184012/10 "2006-04-04T17:05:44Z")

</div>

Bump\*
