# Q on buttons and frames and scenes

**URL:** <https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476>\
**Category:** flash\
**Created:** [February 13, 2003, 7:02pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476 "2003-02-13T19:02:35Z")\
**Posts on this page:** 17\
**Page:** 2

<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:** [February 18, 2003, 7:22am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/21 "2003-02-18T07:22:54Z")

</div>

something is wrong with the fla, dosent seem to want to open,

:: unexpected file format

:::: check your PM

---

<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:** [February 18, 2003, 4:38pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/22 "2003-02-18T16:38:59Z")

</div>

check your pm too 🙂

---

<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:** [February 18, 2003, 4:39pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/23 "2003-02-18T16:39:32Z")

</div>

ok pares101 i check out the fla and i would definitly go check out the full site tutorial,

[http://www.kirupa.com/developer/mx/full\_site.htm](http://www.kirupa.com/developer/mx/full_site.htm)

it would make your life so much easier!!

::: here is the life of the variable that i set in my original file, this should clear up what you should do with this sort of variable in the future,

OK, the variables start life in a action where a stop is placed,  
the variable is set

```auto

content = 0

```

this is telling flash that there is a variable called ‘content’ and its value right now is 0. ok now you navigate through the website , and once you click on a button, we have some commands to tell the variable to change,

```auto

on (release) {
    content = 1;
    gotoAndPlay("end");
}

```

this code tells flash that when the mouse button is released on the button that we selected (this one would be button one) the variable ‘content’ now is 1 , we have changed its value, now we tell it to gotoand play a frame label called end. this is where we have the animation for the outros then after the outros we have the action of the if statments, this will use the variable

```auto

 if (content == 1) {
    _root.gotoAndPlay("pressreviews");
}
if (content == 5) {
    _root.gotoAndPlay("thirsty");
}
if (content == 2) {
    _root.gotoAndPlay("events");
}

```

this is a true and false statement (if statment) if the statement is true then it will execute the following task, if its not true it will pass the task and go on to the other, if there is nothing there it will just load the next frame and continue this is why he have a action to tell flash to go back to the loop statement so it can be a loop. In this code, we ask flash, what is the varable number? if the variable number is 1 then load pressreviews, if 2 load events and so on and so forth. remember that we made the variable a particular number when we pressed the button .

now flash thinks and does what u command!

you probably knew this already but just wanted to tell you the path that the variable gets in a movie such as this. and remember with every click of a different button the variable will change, according to whats in the buttons actionscripting.

::NOW , 🙂 check out that link i gave you about full sites, it wont be hard at all to fix it up your scenes as external movie, if you have any more questions, ask me.  
best of luck! 😏

---

<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:** [February 25, 2003, 2:24am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/24 "2003-02-25T02:24:14Z")

</div>

hey soulty checkout my site!

[www.autodaze.com](http://www.autodaze.com)

now i have one last problem

why is it that when i click on stop (after i click on a numbeR) the crowd stops?

---

<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:** [February 25, 2003, 12:21pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/25 "2003-02-25T12:21:47Z")

</div>

do you have stop all sounds code on stop?, cant remember what code you used for sound.

edit:::so your using the load movie method now? looking good, did you dropped the movie closing animaton ?

---

<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:** [February 25, 2003, 12:26pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/26 "2003-02-25T12:26:50Z")

</div>

and dude drop that crowd sound , i think its a bit too much, especially as it is repeated. 😏

---

<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:** [February 25, 2003, 3:22pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/27 "2003-02-25T15:22:24Z")

</div>

yeah im using the load method 🙂 i dropped everything to make it much easier for me to do and stuff! On my next project which will be my website ill have a wee bit more time to work on it

I need the crowd or else id just have the music and stuff and its a bar enviroment 🙂

heres the code for the choose a tune

```php

actionscript

mySound = new Sound();
mySound1 = new Sound();
mySound2 = new Sound();
mySound3 = new Sound();
mySound4 = new Sound();
mySound5 = new Sound();
mySound6 = new Sound();
mySound7 = new Sound();

```

heres the STOP Button

```php

on(press) {
if (playing==true) {
playing=false;

mySound.stop()
mySound1.stop()
mySound2.stop()
mySound3.stop()
mySound4.stop()
mySound5.stop()
mySound6.stop()
mySound7.stop()
}
}

```

and for the crowd thats in a another movie  
and i added it the normal way clicking on the frame and insterting the music

---

<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:** [February 26, 2003, 7:44am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/28 "2003-02-26T07:44:13Z")

</div>

hey dude, just to inform you that i got your email, bad news , because i cant download the file until my connection get back to its normal speed (will in about 3 days) i will try if i get the chance, congrats on getting the web site, up .

If you cant drop the crowd sound, i think you should make a jazzy type of track with the crowd noise included in it, so you can tone the crowd back, and some chilled out beats.

ill try to check it out as soon as i can, just major busy right now , talk to you soon mate 😏

---

<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:** [February 26, 2003, 7:51pm UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/29 "2003-02-26T19:51:12Z")

</div>

how do i decrease the volume??? in the code?

---

<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:** [February 27, 2003, 7:04am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/30 "2003-02-27T07:04:23Z")

</div>

Actually i was talking about composing a track using something like Fruity loops, you can put the crowd sample on one channel , decrease the volume on that , and lay down a jazzy beat on another channel . and have that looped.

edit::: and save that song as a mp3 or wav and then replace the new file with the crowd file.

---

<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:** [February 27, 2003, 7:07am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/31 "2003-02-27T07:07:40Z")

</div>

ahh i c what youre saying but how would i make the sound not stop (i guess i have to wait until your computer is running better)  
🙂

---

<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:** [May 8, 2003, 5:20am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/32 "2003-05-08T05:20:24Z")

</div>

ok…

i was looking over what eletronic geek posted.

i have 1 scene

and in this 1 scene i have 5 buttons

ex.

MAINPAGE

```
    LOGO DIRECTIONS (pictures))

```

now i click on button

1

now i want DIRECTIONS to dissappear (does a lil animation i have in frame 1- 10 and than it loads

im very disgruntal!!! im going nuts here!!

1 which is info

so

INFO PAGE

```
   INFO STUFF

```

now i click on another button

i want it to goto frame 11-20 and than load WHATEVER button…

basically what im trying to get at is that i want each button to have a deload animation and then it loads the button pressed can someone give me an example of this with 5 buttons??😱

---

<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:** [May 8, 2003, 6:14am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/33 "2003-05-08T06:14:15Z")

</div>

hey pares , old thread, lol.

So your using scenes now? i thought you ended up using load external movie method?

---

<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:** [May 8, 2003, 6:20am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/34 "2003-05-08T06:20:59Z")

</div>

are you using frame labels to target different scenes?

---

<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:** [May 8, 2003, 7:22am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/35 "2003-05-08T07:22:56Z")

</div>

well the files the whole design is so small so i kicked the loading method out the box!

yes its an old thread hehe but i still always get confused , and this time i dont even want to use scenes i just want to use frames

checkout the design

[http://www.autodaze.com/design5.html](http://www.autodaze.com/design5.html)

havent added music or the other stuff (about stuff and company are working)

---

<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:** [May 8, 2003, 7:23am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/36 "2003-05-08T07:23:53Z")

</div>

how funny we both use the high bee sound haha 🙂

---

<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:** [May 8, 2003, 7:27am UTC](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476/37 "2003-05-08T07:27:40Z")

</div>

im changing all my sounds, sooner or latter, they were thrown up like the rest of the site. gotta run , check the link later 🙂

[Previous page](https://forum.kirupa.com/t/q-on-buttons-and-frames-and-scenes/13476.md?page=1)
