Posted by: wktd | March 11th, 2010 |
8o
_______________________________________
this is where the sections (movie clips) play
________________________________________
menu
w/buttons
you press one of the buttons and a movie plays in the "box"...
treat me like a dumb...
i think i'm getting something...please if u can explain me the lines one by one...
on(press){
nNumber = 2 // this sets the variable "nNumber" to 2.
}
onClipEvent(enterFrame){
if (_root.nNumber == 3){ //says if nNumber = 3 do the following
_visible = 0 //0 = false
}else{ //if nNumber is not equal to 3 do the following
_visible = 1 //any other number = true
}
}
The thing is that i have a menu with 10 sections and i want them to open (already accomplished by the tell target action)...the thing is that i want that when you press ANY section, the ACTIVE movie go kind of visible=false...capisci?...
@#%$ i'm desperate...the company i work for kinda expects a "little" (sarcastic) more than i know...i asked for the book cuz they're going to pay for it...or them...so there's no prob with the money...
i know i'm not explaining it very well but truly i don't know any other way to say it....hope u understand...
oh and sorry for making the new topic and everything but the last time nobody answered me anymore...i kept replying and no one answered... :-(
THANX!!!!!!!!!!!!!!!!!!
-what is nnumber?
or nNumber is gonna be always 2...because that is a variable for all buttons so that the movie recognizes ...........? @#%$ i'm completly lost all of a sudden...
can i send u an email with the source?
THANX!
The thing is that i have a menu with 10 sections and i want them to open (already accomplished by the tell target action)...the thing is that i want that when you press ANY section, the ACTIVE movie go kind of visible=false...capisci?...@#%$ i'm desperate...the company i work for kinda expects a "little" (sarcastic) more than i know...i asked for the book cuz they're going to pay for it...or them...so there's no prob with the money...
on (release) {
        tellTarget ("/menu") {
                gotoAndPlay ("continue");
        }
}
on (release) {
        tellTarget ("high low tide") {
                gotoAndPlay ("start");
        }
}
on (press) {
        nNumber++;
}
and for the movie clip:
onClipEvent (enterFrame) {
        if (_root.nNumber == 1) {
                _visible = 0;
        } else {
                _visible = 1;
        }
}
on the next movie clip i wrote nNumber == 2
is that it?....
Also: you don't need to start a new thread each time you want to post something, you can just add a reply to your previous topic, and people will check it.
Ok, heres the deal. Even the most complicated Flash Websites, or effects are only one, or maybe 2 pages at the most. There are some exceptions but we won't get into those now. What are you creating? Ok, so I feel that scenes, unless you are doing some sort of animation, are unnecessary.
Ok, now that that is out of the way...Can you explain a little bit more clearly what you want to happen? Do you want them all to disappear at once, or do you want them to dissapear one-by-one each time the mouse button is release? Answer me, and then I can answer you. :)
BUt I got it, i'll take a look.
If this is what you want, then all you have to do is use the buttons to set the variable nNumber.
Button Code::
on(press){
nNumber = 2
}
MovieClip Code
onClipEvent(enterFrame){
if (_root.nNumber == 3){
_visible = 0
}else{
_visible = 1
}
}
let me know what ya think.
mangrove (http://www.mangrovepr.com/redesigned)
8o
on(press){
nNumber++
}
This means that everytime you press a button nNumber will increase by 1. Now on the movie Clips put the previous code and each time you press a button one will disappear, but start at if(nNumber == 1) and finish with if(nNumber ==10) and do each number in between.
Maybe I'm missing something but I think you could accomplish this by simply using:
onClipEvent (mouseUp) {
mcname._visible = false
}
That should do it.
8o
Button Code:::
on(press){
nNumber++
}
MovieCLip Code:::
onClipEvent (enterFrame){
if (nNumber == 4){
_visible = false
}
}
WIth this code, the movie clip that contains that code will disappear once the button is press 4 times if you have multiple buttons and you want the same reaction, just put that code on each button.
if(_root.menu.submenu.nNumber == #)
where submenu is the name of the Movie Clip inside of the main menu Movie Clip, and # is the number that corresponds to the button pressed...it worked for me.
mangrove (http://www.mangrovepr.com/mangroveredesigned.fla)
sorry i typed the wrong address...i'm sure there's the file...Thanx a lot...
Oh and the buttons that work are just: high Low Tide and sonidos del mangle...it's one after the other...sorry...another mistake
THANX, thanx, thanx a lot...
8o
tellTarget ("/menu") {
gotoAndPlay ("continue");
}
tellTarget ("high low tide") {
gotoAndPlay ("start");
}
}
on (press) {
nNumber++;
}
it worked for me if you want to send me the FLA e-mail me at je****1@binghamton.edu
#If you have any other info about this subject , Please add it free.# |
submit comment