visited links in flash
- Started
- Last post
- 5 Responses
- fifty50
i know how to make a button have an idle, over, and active state in flash, but how can you give it a "visited" state, like on joshua davis' site:
www.joshuadavis.comi'm guessing a movie clip would be better than a button, but I cant' figure out what actionscript to put on it to make it go to the "visited" frame
- unfittoprint0
as u stated, the usage of a movieclip is better than of a button.
you should create 4 labels ["over","down","out" and"visited".]. the visted status can be easily acheived by using a boolean variable. for the variable visited and when pressed:
this.onPress = function(){
this.gotoAndStop("down");
this.visited=true;
}and for the other states:
this.onRollOver = function(){
this.gotoAndStop("over");
}this.onRollOut = function(){
if(this.visited){
this.gotoAndStop("visited")
} else {
this.gotoAndStop("out");
}
};
- fifty500
ok that kind of works, but what i'm REALLY going for is what they've got at this site:
go to Feel, then Design.
The little button boxes are the thing i'm going for.
- unfittoprint0
something like:
this.onPress = function(){
_parent.active.useHandCursor=_pa... =false;
_parent.active.gotoAndStop("visi...
_parent.active=this;
this.gotoAndStop("down");
}
- fifty500
that gives me the effect i was looking for, but now i am unable to click on the buttons I have already visited.
- fifty500
nevermind I just deleted the 1st line of your actionscript and it's working the way i wanted it to ;)
thanks a lot unfittoprint