View Full Version : Visited buttons - possible?
ginar
02-28-2005, 06:33 AM
Hello, I have 24 buttons on my website and I want to allow users to see where they have been but Flash buttons don't have a visited link option. Because of the number of buttons, there are thousands of possible selection orders, so I can't solve the problem by taking viewers to a new frame on the timeline for each button used. (It might be easier to understand my problem if you look at my site: www.xs4all.nl/~grogers.)
Does anyone have a solution? Thanks, ginar
Darkware
02-28-2005, 07:43 AM
on(release){
button1.TextFormat.color (I don't know how you work this one, but you can change color of text for button1)
}
burnedalive
03-12-2005, 06:16 AM
Ok this is a simple solution but will take a small amount of reworking your buttons and a tiny bit of actionscript.
First instead of using a button symbol use a movie clip symbol.
Now, looking at your site, I noticed that the buttons only have a default state (blank white box) and a rollover state (the image of your artwork).
SO, in this new movie clip symbol you make two keyframes. Keyframe 1 has the default image of your button (blank white box) and Keyframe 2 has the rollover state (your artwork thumbnail).
Now use the following AS in frame 1:
this.onRollOver = function() {
this.gotoAndStop(2);
}
stop();
And this AS in frame 2:this.onRelease = function() {
visited = true;
// and the rest of the code, like what else the button should do when you click it
}
this.onRollOut = function() {
if (visited != true){
this.gotoAndStop(1);
}
}
stop();
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.