PDA

View Full Version : same button.. multiple functions


adroitemedia
02-25-2003, 01:34 AM
I have a button that is used in many different categories, and depending upon which category it isin bring, when clicked, up the related information/images/.swf's. This whole concept is very vague to me.. Any help would be greatly appreciated.
Button 1 for example, could bring up a images realted to that category and color scheme, whos contents are in a folder named "stuff"

the same button 1 could also bring up images related to that category, (yet be in a different category), and color scheme whos contents are in a folder named "things".


Does anyone get what im tryin to sat here.. I could try and make a mock up and post it, if need be..

Billy T
02-25-2003, 02:09 AM
ok when the user chooses a category set a variable like so

current="stuff";

and then on the button have something like

on(release){
loadMovieNum(current+"/mov.swf",5);
}

make sense?

adroitemedia
02-25-2003, 02:15 AM
loadMovieNum(current+"/mov.swf",5);



would that work if i had to go "images/current/mov.swf", 5)?[

Billy T
02-25-2003, 02:18 AM
sure

loadMovieNum("images/"+current+"/mov.swf",5);