Q on buttons and frames and scenes

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

:: unexpected file format

:::: check your PM

check your pm too :slight_smile:

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

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



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,


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


 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 , :slight_smile: 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! :smirk:

hey soulty checkout my site!

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?

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 ?

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

yeah im using the load method :slight_smile: 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 :slight_smile:

heres the code for the choose a tune


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


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

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 :smirk:

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

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.

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)
:slight_smile:

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??:scream:

hey pares , old thread, lol.

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

are you using frame labels to target different scenes?

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

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

how funny we both use the high bee sound haha :slight_smile:

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