Problem With 3 Functions Button > On (rollOver) On (rollOut) On (rollOut) ...
on (rollOver) { tellTarget ("_root.maitre_reception") { gotoAndPlay (300); } } on (rollOut) { tellTarget ("_root.maitre_reception") { gotoAndPlay (1); } } on (rollOut) { tellTarget ("_root.maitre_reception") { gotoAndPlay (320); } }
. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........
A Button assigned with action above is used to control movie clip , maitre_reception , when mouse is rolled over and rolled out ;
that works fine except that has the inconvenient to force me to maintain the mouse over the button after releasing the click in order to work - by obvius reasons because if I click and roll out the mouse cursor it occurs the second condition:
on (rollOut) { tellTarget ("_root.maitre_reception") { gotoAndPlay (1);
causing the movie to go and play 1 before movie goes and play 320 ;
Is there a way to avoid that ?
(to ensure only one click makes it to play frame 320 even if cursos has been rolled out )
. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........
KirupaForum > Flash > Flash 8 (and earlier) > Flash 5
Posted on: 10-24-2002, 02:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
RollOver/rollOut Custom Functions
ok I am trying to make these custom rollOut/Over functions and the rollOver one works fine, and so basically I tried to copy it and change variables and stuff to make the rollOver one work out. But the rollOver one isn't working or the rollOut one isn't canceling right. I am not sure what it is I am sure it is a stupid small mistake. Could you please take a look? here is the code for the file so far and I have attached the file. Don't worry about the swapDepths stuff I am gonna use it later.
code:
amountOfItems = 7;
menuColorArray = new Array(0xFFFF00, 0xFF0000, 0x006600, 0x0000CC, 0x9900CC, 0x6699FF, 0xF18001);
menuNameArray = new Array("Home", "Multiplayer", "Campaign", "Variety", "Links", "About Us", "Other");
depth = 20;
MovieClip.prototype.setVariables = function(bgColor) {
myColor = new Color(this.colorBG);
myColor.setRGB(bgColor);
this.colorBG._alpha = 0;
};
this.onLoad = function() {
for (i=1; i<=amountOfItems; i++) {
_root["btn"+i].setVariables(menuColorArray[i-1]);
_root["btn"+i].btnText.text = menuNameArray[i-1];
}
};
function buttonsAlpha(changeAmount, maxAlpha) {
for (b=1; b<=amountOfItems; b++) {
if (_root["btn"+b].hitTest(_root._xmouse, _root._ymouse)) {
if (_root["btn"+b].colorBG._alpha<maxAlpha) {
_root["btn"+b].colorBG._alpha += changeAmount;
}
}
if (!_root["btn"+b].hitTest(_root._xmouse, _root._ymouse)) {
if (_root["btn"+b].colorBG._alpha>0) {
_root["btn"+b].colorBG._alpha -= changeAmount;
}
}
}
}
setInterval(buttonsAlpha, 10, 2.5, 50);
//above script is for the background color of the buttons
function lowerAlpha(lowerThese) {
if (lowerThese._alpha>41) {
lowerThese._alpha -= 5;
}
}
function raiseAlpha(raiseThese) {
if (raiseThese._alpha<100) {
raiseThese._alpha += 5;
}
}
MovieClip.prototype.rollOverFunc = function() {
this.onRollOver = function() {
clearInterval(raiseA);
this.swapDepths(_root.getNextHighestDepth());
for (rm=1; rm<=amountOfItems; rm++) {
if (_root["btn"+rm]._name !== this._name) {
lowerA = setInterval(lowerAlpha, 20, _root["btn"+rm]);
}
}
};
};
MovieClip.prototype.rollOutFunc = function() {
this.onRollOut = function() {
clearInterval(lowerA);
this.swapDepths(depth);
if (depth<3) {
depth = 20;
} else {
depth--;
}
for (rm=1; rm<=amountOfItems; rm++) {
if (_root["btn"+rm]._name !== this._name) {
raiseA = setInterval(raiseAlpha, 20, _root["btn"+rm]);
}
}
};
};
function activeRoll() {
for (bts=1; bts<=amountOfItems; bts++) {
_root["btn"+bts].rollOverFunc();
_root["btn"+bts].rollOutFunc();
}
}
setInterval(activeRoll, 10);
A Rollover/rollout Movieclip With Rollover/rollout MC's Inside It
Hi there, I am trying to figure out how to make a bottom bar similar to the one seen on www.1000pis.com how he's got clips with animations inside the bar- here's what I've got so far: http://cg.psdsliced.com/test1/ - as you can see I have a date/time MC inside the bar_mc which is working fine but whenever I try to have a new rollover/rollout movieclip (or button) inside the bar_mc it won't work/won't show rollover animation.
so does anyone know how the guy at 1000pis.com does it or can offer me any help at all?
Button RollOver/RollOut Effects WITH Looping On RollOver
I'm planning to use this tutorial, below to make a button:
http://www.kirupa.com/developer/mx2004/button_effect.htm
My question is how can I make it so that only on the rollover, the effect will keep looping?
Example: http://jump5.com/
On the right side, the navigation has this nice hover animation with the pointing arrow that continues to twitch on rollover.
Button/rollover/rollout
I am having trouble with a button rollover/rollout. Here's the deal:
I created a movie clip (called clip1). I placed stop();
in frame one of the clip. In frame two of the clip I placed my drawing along with stop();
I went to the stage, selected the button, selected actions and applied the following:
on (rollOver) {
clip1.gotoAndPlay(2);
}
on (rollOut) {
clip1.gotoAndPlay(1);
}
I positioned clip1 on the stage where I want it to appear when the button is rolled over, clicked test movie, and the rollover/rollout doesn't work.
I wonder what I am doing wrong? Much thanks to anybody who can help.
Christina
Rollover/rollout Button......?
i can get the button to play when i rollover it and then when i rollout again...but if i place my cursor on the edge of the button the button then loops playin the clip over and over..
any suggestion to wot the problem is or how i could fix it..?
i attached the file if it will help.
thx
RollOver And RollOut With A Button
Version: Flash MX
I have a map with several invisible buttons over different areas and I want the user to rollover each area. When the user rolls over an invisble button a pop up box comes up to give them information about that area. Everything seems to work just fine except when I do a Ctrl+F12 to view in a browser. Flash freezes up. and I have to shut down Flash and then reopen the FLA. I also have Lotus Notes, Sophos Anti-Virus and a DLO Agent (network backup) running at the same time. (I'm working in a corporate environment.) Is the freezing up because I have these actions attached to the invisible button or because I have so many applications running? Should I get rid of the invisible buttons and do it with movieClips? I assume I could use the same actionscript. Can I use "On" actions with movieClips?
Here is the actionscript I have attached to the invisible buttons.
on (rollOver) {
setProperty(textbox01,_visible, true);
setProperty(textbox02,_visible, false);
setProperty(directions,_visible, false);
}
on (rollOut) {
setProperty(textbox01,_visible, false);
setProperty(textbox02,_visible, false);
setProperty(directions,_visible, true);
}
Thanks for the assistance,
Sean
RollOver And RollOut Button MC
Hello
I have a button, and when I roll over it, it plays an animation. It is so far all good. But when I roll out of it, it just instantly goes back to its place. Which technique can I use to make a smooth animation from A to B (on roll Over) and from B to A (on roll Out)?
Thanks in advance
MC Rollover And Rollout Button....Please Help
what's up y'all!?
I need some help with the button I'm trying make....basically, I got my button created and actionscripted but it still not functioning right, I could get it to rollover and rollout but it only does it when I first rollover and out, after that it wouldn't function the over and out anymore. I would also like my button to stay "open" when it's on the down state....to get a sense of what I'm talkin' about, please view my fla file and please help me out on what I'm doing wrong.
Thanks in advance! I'm very new in flash obviously.
JOSQUARED
here's the file....
http://www.geocities.com/jocksteady/button_exp.zip
INVISIBLE BUTTON...RollOver RollOut
okay...this is sooo close to working! but there is no definition of how set an invisible rectangle around the MENU AND BUTTONS without including them...please help before i beat my computer further. i want to stop drinking these disgusting energy drinks and sleep...i've seen the tutorial, but how do you go around the buttons and menu?
http://www.hungrywoman.com/?0A6B7D7...B727979386D7977
oh i am agnostic but at this point bless anyone who can get me through this...
Animated Button,mc Rollover,rollout
Hi there,
I'm having probs on a animated button.The button is actually animated by an mc.On rollover it should animate frame 1 to 20, on rollout frame21 to frame 40(animated mc).
My button is placed inside an mc togheter with the animated mc witch I gave an instancename Ani1 for other buttons the abimated mc is called Ani2,Ani3,...
It's just not working.It must have something to do with _parent,this.?Can't figure it out someone can help.Big thx in advance.
//Btw I'm working in Mx//
Here's the script that needs some ajusting.
on (rollOver, dragOver) {
if (active ne "/Ani1") {
tellTarget ("/Ani1") {
out = "0";
if (Number(start) == 1) {
gotoAndPlay(2);
} else {
gotoAndPlay(altframe);
}
}
}
}
on (rollOut, dragOut) {
if (active ne "/Ani1") {
tellTarget ("/Ani1") {
out = "1";
gotoAndPlay(altframe);
if (Number(stop) == 1) {
stop = "0";
gotoAndPlay(altframe);
}
}
}
}
on (release) {
tellTarget (active) {
play();
}
active = "/Ani1";
tellTarget ("/Ani1") {
gotoAndStop(20);
}
}
Grtz,
Modulater
Button With Rollover,rollout Effect
Hi people,
I made a button with a rollover,rollout effect like this.
Made a but. placed it in an mc.frame2 to 12 is the rollover,frame13 to.. is the rollouteffect.
Prob.is the following.Now the button is an mc.The mc in my case is placed inside another mc.
The button had the following code:
on(press){
_parent.noPass45 = true
this.gotoAndPlay(40)
unloadMovieNum(2);
}
But because the button now is an mc(because of the rollover,rollout effect) the script ain't working.
What should I change in the script so the button(mc) calls this function on the mc it's placed on ?
Big thx in advance!!!
Grtz,
modulater
Button With (Rollover And Rollout) Not Workin
Hey,
I got pretty much two buttons inside a MC, linked to frames in the same mc to play on rollover and rollout. But it only works if you roll nicely onto the button, most of the time they jus seem to glitch out..
I've attached the fla to help explain what I mean, and hopefully you can figure it out. All of it has to stay in the mC though.
Thanks,
Ian
Please Help W/rollOver/rollOut And Invisible Button
Hi All!
Thanks for taking the time to view my post.
I've attached a sliding menu that appears when you rollover the bottom center invisible box. It should STAY up when activated and go down when the buttons on the sliding box are pressed for further actions (ie gotoAndPlay,etc)on the main timeline. If you do a test movie you'll notice my dilemma. It (the sliding in menu)goes up but immediately goes DOWN not giving any time for the user to click any of the attached buttons.
Ideally I would like the slider to appear with three buttons and disappear when one of the buttons on the slider are clicked. I'm decently familiar with actionscript but am real perplexed as to what I'm doing wrong.
Thanks so much in advance.
Rollover/rollout Button Event
Can someone please show me, possibly with an fla example--or not how
to get a button to animate on rollover and reverse the animation on rollout?
Can't seem to get a grasp on this one.
Button Rollover/rollout Problems
i'm still learning so this is probably pretty sloppy so forgive me in advance. basically I've made a map and it has four regions and you can mouse over those regions to see what locations are in that region and when clicking on the region it will take you to a page with another movie that has that region highlighted but allows you to still mouseover other regions to see what locations are under those regions. What I'm having trouble with is with the rollover and rollout animations. Ive set the buttons up as movieclips and the actual animations work fine. its just when you play the actual movie, the button that is to the front usually messes everything up. For instance in this movie when you mouse of Europe and then try to mouse over another region it will stay on Europe. I'm pretty sure its because the rollOut animation's size is as big as the actual movie document so you're not able to really roll off of it. If that makes any sense. Anyways the code isnt anything complicated, just standard:
on (rollOver) {
gotoAndPlay("over");
}
on (rollOut){
gotoAndPlay("out");
}
on (release) {
getURL("http://www.macromedia.com","_self");
}
here's the file: http://www.mediafire.com/?8cjnjnmlujz
any ideas would be appreciated - even if they're more logical ways to set things up. like i said ims till learning so i'm just doing things as they make sense to me.
thanks.
Button Rollover; Rollout Question
Hi, I'm having some troubles with some buttons I'm doing. I want the button text, to be black, to turn white (gradually) when rolling over, and to turn back to black when rolling out. Is there a way to do this simply through the button's different states? If I place the rollout animation under the Up state, it'll play that when the button appears, and it doesn't look pretty when it flashes white when it shows up
I also tried with AS to have a transparent button over the text and have it play or rewind the text clip when rolling over or out but for some reason it kept brining the text forward on top of the button and I could no longer use the button.
Any help please?
RollOver/RollOut Button Effects
Hello everyone
I am having some problems with one of the tutorials on this website.
http://www.kirupa.com/developer/mx20...ton_effect.htm
I have had a nose at the tutorial and I was hoping I could modify the buttons.
I have placed five seperate buttons onto the stage and would like each one to go to a different place.
I have removed the kirupa.com line and replaced it will code saying onreleasegotoandstop (5) on the assumption it will go to frame number 5, but I am not sure if this will simply go to frame five in the button movie or in the main scene movie.
However when I published the movie I was told that the action I wrote in could only be applied to buttons and I believe the button is a movie clip and not a button.
I would post up my Flash File but I have not worked out yet how to upload stuff to the website yet.
Thanking everyone in advance for their help.
P.S. this is my first post and I am not that proficient at Flash so if this is a very simple problem then I apologise.
Ta
Button RollOver/rollOut Question
Hey all,
I'm new to this whole flash thing... Only been in it for a couple weeks, so this might seem like a pretty basic question... but it's got me stumped! Here's what I'm trying to do:
1) I have a rectangular button on my main stage at the very top.
2) When the user rolls over the button, it tween animates (approx 5-6 frames) downward to reveal two more rectangular buttons that came from off the stage. (essentially, it's a scrolling menu)
3) There are now 3 rectangular buttons on the main stage and they are all butted up next to eachother.
What I want to do: I want to detect if the mouse pointer is on ANY of the 3 buttons. If the mouse pointer is on any of the 3 buttons, I want the menu to remain down. If the mouse pointer leaves all the buttons (EG. rolls out over the background, leaving the "menu" completely) I want the menu to roll back up.
I have it all working except for the rollling up part. That's what has me stumped.
Any help would be greatly appreciated.
.k
PS. Sorry if it's a poor explanation. I found it kind of hard to explain this issue. Let me know if I can do anything to further clarify what I'm trying to do.
RollOver/RollOut Button Effects
Hello everyone
I am having some problems with one of the tutorials on this website.
http://www.kirupa.com/developer/mx20...ton_effect.htm
I have had a nose at the tutorial and I was hoping I could modify the buttons.
I have placed five seperate buttons onto the stage and would like each one to go to a different place.
I have removed the kirupa.com line and replaced it will code saying onreleasegotoandstop (5) on the assumption it will go to frame number 5, but I am not sure if this will simply go to frame five in the button movie or in the main scene movie.
However when I published the movie I was told that the action I wrote in could only be applied to buttons and I believe the button is a movie clip and not a button.
I would post up my Flash File but I have not worked out yet how to upload stuff to the website yet.
Thanking everyone in advance for their help.
P.S. this is my first post and I am not that proficient at Flash so if this is a very simple problem then I apologise.
Ta
I posted this before the weekend and no one responded so thought I would re post it first thing on Monday morning
RollOver/rollOut Button And Menu
I've made a rollOver/rollOut button with the help of ComplexButton tutorial.
Now I need to assign an animated dropdown menu to it. So that on mouseOver the button itself animates and the menu item slides down. And reverse in mouseOut. I've managed to do this so that the animations work, but not the buttons on the menu item. Is this the wrong way to even try to do this?
Complex Button RollOver/RollOut XF
I have the following script to give effect to my loaded menu "movie clip" on my main stage. From the menu "movie clip" I have a about movie clip loading onto my stage. I think the effect script on my menu movie clip is over riding the load script for my about movie clip
the following script is on the first frame of my menu movie clip:
//stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
the following scripr is on my menu button to load about onto the stage.
Can anyone tell me why my menu button does not work with the effect script on the 1 frame?
Button RollOver/RollOut Effects
Hi in my MC i have the following code
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
is there any possible way to do a onRelease function outside the MC?
ex.
Code:
gotoAndPlay("scene2", frame3);
Button RollOver/RollOut Effects
Hi everybody
i need to make a button out of an image and i want it to go BW (black & white) when rollOver and back to color when RollOut.
can i do that ? can someone help me with the AS ?
Thanx
Rollover Rollout Button Problem Help Please
Hi,
I used a tutorial to create a rollout button, but now I dont know how to let it go to another frame. This is the last piece of the script that takes it to a url, but I dont know what to change for it to go to the next frame.
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Here is the top part of the script:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
Thanks, hope this makes sense!
Button - RollOver, RollOut, And Press ?
Ok.. I need some help here. I have a button, which is actually a movie clip. Here is my actionscript for it:
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(31);
}
Basically when you mouse over the button it tweens larger, and when you mouse out it tweens back to original state.
Thats good and all BUT now how do I add a on (press) event that if pressed and then you roll your mouse out it doesn't run the rollOut actions????
Thanks!
Button Problems: Rollover And Rollout
I have a button and when I rollover it I want a graphic to move up. When I roll off the button I want the graphic to return back to its original position.
For my up state I have a static graphic.
For my over state I have a movie clip with the tweened graphic moving up.
I want to make the graphic return to the original position when I roll off the button.
Thanks!
Button States RollOver/RollOut
Buttons. Oh how we like buttons! But animated buttons, we love even more am I right? Damn straight.
But then best has to be an animated MouseOver state, then a reverse animation for the MouseOut. I was just wondering what is the best way of creating a MouseOut animation and getting it to play.
Are there any FLA files that I could inspect?
Many thanks
Anim. Button With On (rollOver/rollOut) Action
Hi - I'm extremely new to flash, and it's even more new to me.
I'm trying to make an animated button with rollOver/rollOut action
my code for the button is:
on (rollOver) {
_root.roll.gotoAndPlay ("over")
}
on (rollOut) {
_root.roll.gotoAndPlay ("out")
}
This works, until I move my mouse too quickly over the button.
Then the animation fails and plays different phases, and stuff.
I believe, that the code is too simple, and error riddled.
Can anyone help me out?.
I'm attaching the file, for you to see what I mean.
Button With Rollover,rollout Effect Prob.
Hi there,
I made a button with a rollover,rollouteffect.I made it like this.
Placed a button inside an mc.I coded the button so frame2 to frame12 is the rollover and from frame13 we have the rollouteffect.No probs so far.
Only the button in the first case(without the effects) was placed inside an mc and had following code:
on(press){
_parent.noPass45 = true
this.gotoAndPlay(40)
unloadMovieNum(2);
}
Now with the effects the button becomes an mc and placed inside an mc.So how can I refer this code to the mc where the mc_button is placed in.Must be a _parent prob i guess.
Someone can help out.
Big thx in advance
Grtz,
Modulater
How To Make Rollout And Rollover Effects On A Button?
Hi Guys,
I would like to know how can I add rollout and rollover effects to a button. Here´s what I want to do:
Let´s say I´ve got a green circle, which will be my button. When the user pass the mouse over it, the circle grows in a fluid animation, and when the user takes the mouse out of it the circle shrinks fluidly... Do I have to use the AS tween class? Can anyone help? Thanks!
[F8] Help With Rollover And Rollout On Button Movie Clip
hello,
i only know the very basic actions with flash just so you know.
i have a movie clip on the "over" frame of my button and this works fine, when i rollover the mc plays.
what i need (i think) is some script so that on rollout the movieclip reverses.
please help ive looked everywhere and i can only find old script that doesnt work, im presuming they are for older versions.
thanks
Button RollOver RollOut Play Sound (MP3)
Hello:
Using Adobe Flash CS3 I am unable to figure out the actionscript on my invisible buttons on the stage.
I want the 'on RollOver' to play a sound (an mp3 located in the library not on the stage) and the mc (on the stage) to play. 'On RollOut' I would like the mc to stop playing and the sound to stop.
So far the mc will play on RollOver and stop on RollOut but the sounds do nothing. Can I play a sound located in the library without having to place it on the stage?
Thank you in advance for any advice or help.
gBebos
Rollover/rollout Of Multi-button Menus
I keep running into a situation where I want to rollover on one object, then rollout on two overlapping objects. So, say I have button A, with a rollover event that makes button B appear. B partially overlaps A. Now I want both buttons to stay visible (and clickable) until I roll away from both of them, then B should dissappear again.
Seems like a common problem, but for the life of me I can't figure out a clean, reliable way to implement the rollout when you move between A and B. My current solutions involve either a "border" around both objects that hides B when you roll over it, or a delay on the close function and an interval timer stack. Both seem like messy hacks to me; there must be a better way.
How is this usually accomplished? Can you point me to any examples? Thank you! :)
Complex Button RollOut/RollOver Effects
Hi People.
Ive been following the tutorial: http://www.kirupa.com/developer/mx20...ton_effect.htm
Couple of questions
1. Im wanting the button movieclip to play a certain part of a different movie when on the roll over state... can anyone help me find the best way of doing this?
2. Im also wanting the button to play an external swf in a container mc: http://www.kirupa.com/developer/mx2004/transitions.htm
can this done using the button mc.
Im pretty new to this actionscript business..
please help'eth.
keljnr
Complex Button RollOut/RollOver Effects
I went through the Complex Button RollOut/RollOver Effects tutorial. I'm trying to mimic a similar situation. I want to create several clickable buttons within the animation. When I mousover the effect I can click on one of several buttons, and when I rollout, I cant. Any suggestions?
Complete Button Rollout/rollover Animation
Hi
I am searching for a tutorial (or, if someone can post here...) that can explain me how to make a complete button rollout/rollover animation.
I want something that can do not only the rollOver animation, but rollOut too. For example, a button that in rollOut becomes bigger, and on rollOver becomes the size that it was before, but with animation on it.
sorry my english
very thanks
Complex Button RollOut/RollOver Effects
Thank you for this great tutorial.
I have one question...
i would like to use these mc_buttons to navigate from scene to scene within my root movie. i know i need to replace the getURL...
this.onRelease = function()
{ getURL("http://www.kirupa.com","_blank");
}
I tried gotoAndPlay(scene, frame);
with no luck.
do i need to target the root timeline? and how?
Thank you.
Kurt Lorenz
Complex Button RollOver/RollOut Effects HELP
I did the "Complex Button RollOver/RollOut Effects" tutorial. But whenever I play the animation, it does the rollover at the very beginning. And when you hover over it, it goes down to the normal position..
whats going on?
Complex Button RollOut/RollOver Effects
Hi,
I completed the Complex Button RollOut/RollOver Effects tutorial and wanted to know how to implement this correctly to a button that already has a motion tween.
For example I have a button which comes up from the bottom and adding the AS provided by the tutorial, when my mouse rolls over the button the button goes to the original state which is the bottom. (I also have a ripple effect on the button which is a movie clip but it serves as a background to the button) How can I arrange it so that my button can come up from the bottom, stay in place and then have the rollout/rollover effect when my mouse rolls over the button (and not go back to its very original state)?
Thanks
Rollover, Rollout Button, Action Problems..
Hi. I followed at guide on how to make a rollover animations, which rewinds it self, when you roll out..
My problem is, that the Action Script when you press the button links to the beginning of the movie.. How do i change this to a Scene and Frame ?
I tried to insert ("Scene 2", 1) at the end in gotoandplay, but nothing seems to work..
Here is the Actionscript.
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
_root.gotoAndPlay(1);
};
Complex Button RollOut/RollOver Effects
i learned alot from this tutorial but the tutorial shows you how to open a new window when you click on the button, I am looking to jump to a frame label in the same movie, I tried adding the goto function in place of the get url but it wont work. This button is on the main timeline in scene 1 and I need it to go to a frame thats labeled port on its release.
here is a link to the tutorial you currently have:
http://www.kirupa.com/developer/mx20...ton_effect.htm
please help
thanks guys!
Complex Button RollOver/RollOut Effects
"Hello" Is anybody familiar with these actions? Does anybody know how to make it go to a scene?
(Rather than to a URL)
//stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Complex Button RollOver/RollOut Effects
ComplexButton RollOver/RollOut Effects
by warhero : 24 April 2005
THIS IS POSTED BY WARHERO
HOW DO I USE IT TO TRANSFER TO ANOTHER SCENE
ANY THOUGHTS OR SUGGESTIONS?
HERE IS THE CODE:
//stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true; } this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); }
Complex Button RollOver/RollOut Effects
Hi
This is only the second time I've posted in this forum. I'm a a flash newbie, its not a program I use often but the more I use it the more I want to get into it.
I've just sucssesfully completed the tutorial ComplexButton RollOver/RollOut Effects here...( http://www.kirupa.com/developer/mx20...ton_effect.htm )
Everthing works except when I publish it to a web page the links dont work....nothing at all happens. All the rollover effects are working, just no links. Ive modified the tutorial and have made 5 buttons in a flash movie, the SWF is to sit in a web page as the navigation for a html/css site. heres the code below, all I did was to copy the code straight out of the tutorial. I simply need to get the links working so each button navigates to an internal page of my site.
If anyone could give me a hand to work out whats up that would be great.
Thanks in advance
Kuos
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("http://www.kirupa.com", "_self");
}
RollOver And RollOut Animation On Button Troubles
So, basically I'm looking for some help or ideas on how to control a movie clip with a button. This animated movie clip is controlled with AS and has an animation for the rollover and rollout.
I've searched the forums and found a couple ways to do things like this but none seem to work the way I'm looking for (or I'm missunderstanding them which could be the problem). I've tried creating a movclip with the animations and putting an empty button on the clip. In this method I can't get the button to work.
If I put the rollover animation on the over state of the button then the button works but I can't get the animation to play and the rollout feature doesn't work.
So, at this point I'm thoroughly confused and I don't know where to go. If anyone can help out I'd be very gracious.
Button - RollOver/rollOut - Background Color
I got my hands on Macromedia Flash MX Professional 2004 today and I've been playing around with it. Anyway, I have this problem - and I assume there's an easy solution to it.
I can't get rollOver/rollOut to change the background color of a button.
This is what I've done. I've drawn a box with Rectangle tool -> Convert to Symbol -> button
Then I'm trying to add an action....
Code:
on (rollOver) {
mycolor1 = new Color (_root.button1);
mycolor1.setRGB (0xFF0000)
}
.... but it doesn't work. What am I doing wrong? What should I do?
Oh, and if any of you know some online tutorials, I'd appreciate the urls
Thank you in advance
- Kimppa
Taking A Button And Making It Fade In And Out On Rollover And Rollout
hello,
i am trying to modify some code i have for expaning rollover buttons,
i want to use alpha to have it start at 50% transparency, then when you rollover it slowly goes to 100%... then when you roll off, it slowly goes back to 50%.
whats happens now, is that it starts at 100% transparency and just fades to nothing on rollover, the Rollout is doing nothing
This is my code so far, it invloves a button inside of a MC,
the MC code is this
onClipEvent (load) {
fade = 50;
}
onClipEvent (enterFrame) {
if (this._alpha > fade) {
this._alpha += 2;
} else if (this._alpha < fade) {
this._alpha -= 2;
}
}
the button code is this..
on (rollOver) {
fade = 130;
}
on (rollOut) {
fade = 100;
}
|