Hi. Im working on a site for a client i i dont have mutch time left.
Therefor i have desided(ignor my bad spelling=) to do something i have no idea how to do!=)
The thing is im trying to get into action scripting but i lack any good exampels(and i dont have to mutch time now=)
What i want to make is a rollover function for buttons. When u roll over a “cartoon boubble” Whith tekst inside it appers and follows your pointer, it dissepears when u roll out or push the button to go to the next scene.
Can anyone help me whith the codes for this? I think i kinda know how to make it, im guessing its a simple load action for getting the boubble…but i realy dont know.=)
PLEASE HELP ME:)
system
October 19, 2002, 9:18pm
2
Lets say the bubbles name is “bubble”…
then on rollover (actions for the button):
on(rollOver){
_root.bubble._visible=true;
}
On(rollOut){
_root.bubble._visible=false;
}
on(press){
_root.bubble._visible=false;
}
And then the actions for the bubble itself:
onClipEvent(load){
_visible=false;
}
That should do it…
system
October 19, 2002, 9:21pm
3
Anyone know how i make the boubble follow the mouse cursor inside the buttons HIT area?
And thanks again for the help. I joust found this plase and it cool=)
system
October 19, 2002, 9:23pm
4
yeah, just put this code on the button too:
on(rollover){
startdrag(_root.bubble);
}
on(rollout){
stopdrag();
}
system
October 19, 2002, 9:27pm
5
do i have to put them in a spesial order for them to work, like first the roll ins then the roll outs?
system
October 19, 2002, 9:31pm
6
No it doesn’t matter
At least i don’t think so…
system
October 19, 2002, 9:33pm
7
now i will make my deadline=)
system
October 19, 2002, 9:35pm
8
If you can’t make it work, just post the fla here
I’ll gladly fix it for you
system
October 19, 2002, 9:50pm
9
i think this file should help.
enjoy
system
October 20, 2002, 11:09am
10
i cant get i to work elisoe. I get this : Scene=kontakt, Layer=mobil, Frame=36: Line 4: ‘;’ expected
On(rollOut){
The thing is,…im stupid=) This is my first thing beyond stop and start=)
ive put the file here. coud you help me?
The action is on the mobile phone. And the boubble is on the left side of the stage.
system
October 20, 2002, 11:15am
11
I CANT GET THE STUPID FILE TO GO UNDER 2.9 MEGS AN I REMOVED EVERYTHING. can u get it via mail? or do u get the error message?
system
October 20, 2002, 11:40am
12
lol
I’ve seen many people haveing that same problem
If you have ICQ, send it too me that way (54774078)
btw: Are you danish? I saw a scene named “kontakt”…
system
October 20, 2002, 12:27pm
13
did u get to download it?
i cant see it in the board.
tying to reatch u on icq now=)
system
October 20, 2002, 2:28pm
14
All taken care of now people
system
October 20, 2002, 6:07pm
15
lol
coulda just downloaded my file … but noooooooooooo gotta do it the hardway … hope you got it working
system
October 20, 2002, 7:31pm
16
here’s an example without the text … just replace the object in the popupmc with whatever you want to follow the mouse while over the button