Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appear in new window kind of thing... 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I don't really know how to describe this...
uses it for the menu they have there.

Basically, I want to know how to make it show text or an image somewhere else when you hover over a certain thing.

Does that make any sense...?
 
that effect is easily done with a movie clip..create the movie clip with the text that fits in the area that you want it to..create a button..in the over state of that button place the mc in the area that you want it to appear..and thats it..but for these buttons it looks as if there is some scripting envolved because on roll out the mc stays active untill the next roll over..i my self don't know that script but i'm sure someone here does..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Just add a stop() action at the end of each mc, if you're using more than one. If you use only one mc for all the texts, there should be a stop() action at the end of each text, and rather than targeting different mcs, you would target the same mc but add a gotoPlay to a different frame number according to which button was pressed.

;-)
 
thats a good idea targeting the same mc just using seperate frames i never thought of that..that would definatly guarentee that each mc would appear in the exact same place..no room for error that way.. but there has to be some script envolved here because the mc stays active after the mouse has rolled off the button that activated it! seems like if not the text mc would dissapear after the mouse rolls off the button,even if it had a stop action..
e.gif


carlsatterwhite@endangeredgraphics.com
 
No because this isn't a mc added on the rollover state while in editing mode of a button, but a mc targeted from a button(s) on the stage. It's not the button itself that's animated, pressing on it (or on rollover), it starts up an mc located somewhere else on stage. If you have a stop action, it will stop until, with another button you tell it to start up again!

;-)
 
i see!! your the man..have never used the on-rollover action before i wasn't thinking off that..always been the on release and/or press command..learn something new everyday..thats why i love this place..would this by chance be the code for such a command..

on (rollOver) {
tellTarget ("blankmc") {
gotoAndPlay (2);
}
}

with the first frame being blank with a stop action(thus hiding the mc untill it is called)..and the second frame having a stop action as well(thus stoping the movie in it's place until the next is called)..


e.gif


carlsatterwhite@endangeredgraphics.com
 
Exactly! Nice to have added the blank frame stuff (with a stop action also)! You must do it that way! Forgot to mention it!

When I finally retire... Some guy( you might know) just made me a money-making proposition, you can fill in the spot!

;-)
 
indeed..well anyways there ya go benguin..thats how ya do it..

:)
e.gif


carlsatterwhite@endangeredgraphics.com
 
Hrmm...I'm not doing something right. let me see if I understand this.

You make a movie clip (let's call it "mc"). In this movie clip, the first frame should be a blank keyframe(?), and the second should start the animation or whatever that you want to happen. when I do that and test it, everytime I rollOver the button, it gives me the output "Target not found." I'm obviously doing something wrong. Here's what the script on the button looks like. ("mc" is the movie clip I made. It basically consists of that first blank frame, then 20 frames of text fading in, then another blank frame [dunno if that should be there or not] and then 20 more frames of the text fading out).

on (rollOver) {
tellTarget ("mc") {
gotoAndPlay (2);
}
}
on (release) {
tellTarget ("mc") {
gotoAndPlay (23);
}
}


btw, thanks for the help so far. you guys rule!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top