# Im going crazy...plz help me

**URL:** <https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 9:03pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352 "2004-07-26T21:03:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)\
**Post date:** [July 26, 2004, 9:03pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/1 "2004-07-26T21:03:32Z")

</div>

hello

Can someone recommend a tutorial that teaches me the basics in a flash site.  
Or a simple template.

I want to make something minimal like this [http://www.kentlyons.com/](http://www.kentlyons.com/)

And a question

\*\*this opens another .swf file \*\*

on (rollover) {  
\_root.contents.loadMovie(“whatever.swf”);  
}

**and this opens a movie file already within the .fla file with the instance name  
whatever?**

on (release) {  
gotoAndPlay(“whatever”);  
}

The kirupa full flash site tutorial just didnt do enough for me

Does a flash site have to just be one .fla/.swf file?  
Or is it possible to use several .swf files and link them with :

on (rollover/release) {  
\_root.contents.loadMovie(“whatever.swf”);  
}

If someone can tell me/teach me something that helps me understand the basics. I would be really happy.

Simon :sen:

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 26, 2004, 9:29pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/2 "2004-07-26T21:29:11Z")

</div>

> [@simonsebergsen](#):
>
> Can someone recommend a tutorial that teaches me the basics in a flash site.  
> Or a simple template.

I suggest you read a book about Flash or Actionscript, that will get you started. Or you can read some more of the tutorials on this site. And you would be suprised of what you can learn from reading this forum…

> [@simonsebergsen](#):
>
> Does a flash site have to just be one .fla/.swf file?  
> Or is it possible to use several .swf files and link them with :

Yes, you can load several swfs into one main swf. This is also a good practice, cuz it minimizes the amount of time the user has to wait until the files get downloaded.

---

<div class="post-metadata">

**Author:** ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)\
**Post date:** [July 26, 2004, 9:40pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/3 "2004-07-26T21:40:18Z")

</div>

Yes, you can load several swfs into one main swf. This is also a good practice, cuz it minimizes the amount of time the user has to wait until the files get downloaded.[/QUOTE]

good great!

Well then i have a question for you!  
Wich AS do i use to open another .swf

Lets say the first thing to happen on my page is :

A heading fades inn

then i push the heading :

and then thress buttons fades inn (without the heading disappearing)

then i push lets say “showcase” :

A set of numbers from 1-20 fades in (20 buttons so to say) (without the heading or three button disappearing)

then i push whatever number and a pictures fades in or i use a transiton.  
Yes you guessed it (without the heading,buttons or numbers disappearing;)

So far its a .swf with the heading  
.swf with 3 buttons  
.swf with numbers  
and loads of .swf`s with movieclips with a picture within

Does this make any sense?

Got any tips for what kind of AS i should assign for my buttons.

Great help :p:

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 26, 2004, 9:48pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/4 "2004-07-26T21:48:49Z")

</div>

Well you can use levels to load the swfs in…  
So for example you load the file: buttons.swf in through this code:

[AS]  
on(release) {  
loadMovie(“buttons.swf”, 10);  
}  
[/AS]  
this loads the swf in on level 10

use different levels for different movies (preferably with steps of for example 10, so you can put movies in between them later).

you can also load a swf movie into a movieClip, but in your case it better to use levels, but I’m just giving you this to be complete:  
[AS]  
on(release) {  
loadMovie(“buttons.swf”, “movieclipname”);  
}  
[/AS]

---

<div class="post-metadata">

**Author:** ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)\
**Post date:** [July 26, 2004, 9:54pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/5 "2004-07-26T21:54:12Z")

</div>

[QUOTE=sintax]Well you can use levels to load the swfs in…  
So for example you load the file: buttons.swf in through this code:

Now we are starting to get somewhere=)!

What do you mean with levels thou? Layers?

Simon

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 26, 2004, 10:01pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/6 "2004-07-26T22:01:49Z")

</div>

No, levels and layers are something different, but it’s the same principle. Levels are used in actionscript, layers with the flash gui.

The \_root is level0, and level10 appears in front of level5.

---

<div class="post-metadata">

**Author:** ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)\
**Post date:** [July 26, 2004, 10:05pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/7 "2004-07-26T22:05:51Z")

</div>

> [@sintax](#):
>
> No, levels and layers are something different, but it’s the same principle. Levels are used in actionscript, layers with the flash gui.
> 
> The \_root is level0, and level10 appears in front of level5.

Sorry to be bathering you so much but can you show me and easy example?

how do i assign .swf levels

my heading is the root level 1  
my 3 button .swf is in level 2

and so on

Man if i get this to work!😉

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 26, 2004, 10:08pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/8 "2004-07-26T22:08:53Z")

</div>

Simple, by assigning them the correct number with the loadMovie statement

[AS]  
on(release) {  
loadMovie(“buttons.swf”, 2); //this load your buttons into level 2  
}  
[/AS]

---

<div class="post-metadata">

**Author:** ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)\
**Post date:** [July 26, 2004, 10:19pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/9 "2004-07-26T22:19:36Z")

</div>

YESSSSSSSSSSSSSSSSSS!

You saved my day  
I have been looking for your answear a week.

tanks again!!! :+)

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 26, 2004, 10:21pm UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/10 "2004-07-26T22:21:45Z")

</div>

no problem dude,

and now i’m off to bed ! :snooze:

---

<div class="post-metadata">

**Author:** ![Gupps](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@Gupps](https://forum.kirupa.com/u/Gupps)\
**Post date:** [July 27, 2004, 12:43am UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/11 "2004-07-27T00:43:56Z")

</div>

sintax, quick question. Does the swf files get replaced by the other swf file with a higher level. If so what can I do so that they stay in the mainswf

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 27, 2004, 7:45am UTC](https://forum.kirupa.com/t/im-going-crazy-plz-help-me/117352/12 "2004-07-27T07:45:14Z")

</div>

They only get replaced if you load them in on the same level. So if you have one loaded on level 10, and you then load another one into level 10, then the first one gets kicked out.

If you use different levels for each swf, then they just get stacked on top of eachother, just as you would use layers.
