View Full Version : Mouse over effect...?
Pyralis_Ryu
05-21-2003, 10:14 AM
Hi Everyone
I'm trying to work some effects into my navigation.
I created a movieclip (called "home") over 5 frames
On my Actions layer
Frame 1: Stop();
Frame 2: Stop();
Frame 3: //Nothing
Frame 4: //Nothing
Frame 5: gotoAndStop(1);
On my Button layer
I have a shape tween
In my main movie I have the following code relating to the button
on (rollOver) {
_root.home.play();
}
on (rollOut) {
_root.home.play();
}
on (dragOut) {
_root.home.gotoAndPlay(3);
}
on (releaseOutside) {
_root.home.gotoAndPlay(3);
}
on (dragOver) {
_root.home.play();
}
The Problem: When I mouse over really fast the movieclip doesn't play out, i.e. the shape tween stops halfway....
Any ideas?
I looked around and found that the chaps at www.designchapel.com didn't seem to have this problem...
Suggestions will be much appreciated.
Thnx
RYU
Pyralis_Ryu
05-21-2003, 07:38 PM
http://www.wddg.com/johnmarksorum/jms_photographer.asp
How did they get the "fashion" "beauty" "portrait" ect buttons/mc do do that??
Thanks
RYU
magicwand
05-22-2003, 02:24 PM
on (rollOver) {
_root.home.play();
}
on (rollOut) {
_root.home.play();
}
on (dragOut) {
_root.home.gotoAndPlay(3);
}
on (releaseOutside) {
_root.home.gotoAndPlay(3);
}
on (dragOver) {
_root.home.play();
}
from example link, i can see what you are trying to do i think ...
but i can not understand this code.
please post your fla so we can help you better
Pyralis_Ryu
05-22-2003, 05:22 PM
Hi Magicwand
Try the Home & Gallaries button, sometimes when I move the mouse over them it gets stuck, i.e. the mc on the button gets confused.
Thanks a million
RYU
magicwand
05-22-2003, 06:28 PM
something like this might help?
Pyralis_Ryu
05-22-2003, 06:44 PM
You are a supa-STAR!
Thanks a million- That's just what I was trying to do!
I owe you one bruffa!
Again thanks!
RYU
hero_x
05-23-2003, 05:15 PM
new question on this...
if you we're going to do something like design chapel and have a zillion links in your portfolio, what would be the best way to go about duplicating your movie links? I mean...if you change the text in one, it'll change them in all if you just copy and paste. So is there a way to duplicate something yet make it a totally independent mc?
magicwand
05-23-2003, 05:49 PM
this._name will give you the instance name of that MC if used on MC.
therefore you will have unique and independent action with same code.
i hope this is what you are asking....
hero_x
05-23-2003, 06:31 PM
yes. i can see how changing the instance name will make it so you can do different buttons, however my concern is when you have to change the text. for example if you make 5 copies of the galleries button, if you change the text on that, it changes the text on all 5.
anyway to get around that?
Esquared
05-23-2003, 11:52 PM
Hey-
It seems to me that what you really want to investigate is smart clips. Any movie clip you have can be turned into a mart clip by right-clicking it in the library and selecting "Component Definition." This allows you to define variables that the movie clip will use, and set their defaults. The difference between these variables, though, is that they show up in the Properties panel, near where the instance name is. This allows you to hard code DIFFERENT variables for each instance of the movie clip.
In order to answer your text issue specifically, you want to make it a dynamic textbox, instead of static, and then have its variable be whatever you declared in your smart clip.
Hope that helps.
PS. Oh...if you want to be able to edit the code on a smart clip and have it change the code on ALL of those smart clips on the stage, you have to embed it in another movie clip and have the script reference _parent.smartClipVariable instead...
Pyralis_Ryu
05-28-2003, 06:32 PM
HI Wand
Odd thing: Sometimes the buttons get stuck! Any ideas?
Thnx
RYU
Esquared
05-28-2003, 09:23 PM
Hey-
I took a look at your code. Does it seem that the buttons sticking has some relation to you clicking the mouse? Try this and see if you still have problems:
on (rollOver) {
_root[this._name+"Mouse"]=true;
_root[this._name].play("rollover");
}
on (rollOut, releaseOutside) {
_root[this._name+"Mouse"]=false;
_root[this._name].play("rollout");
}
Pyralis_Ryu
06-09-2003, 09:24 AM
Hi Esquared
I tried that addition to the script, but no luck.
I include the file I have at this point. It takes a bit of playing around before it sticks. There doesn't seem to be a pattern to any of this. It is different everytime I publish it.
I much appreciate your post.
Thanks
RYU
Esquared
06-13-2003, 06:11 AM
Hey-
I checked out your file and tried publishing it also. I can't seem to reproduce the glitch. Everything ran smooth for me no matter what I tried. I don't know if that's good news to you to know it works for others, or bad news because it doesn't solve your problem. Unless you can pinpoint what exactly CAUSES the button to stick, I don't know where to start.
Sorry.
Pyralis_Ryu
06-13-2003, 08:01 AM
Thanks Esquared
I'll see if there is a pattern to any of this!
Thanks again
RYU
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.