Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Random Rollover Navigation - Help



Hi all! I am trying to figure out the navigation at http://www.chipotle.com There is this random image that appears everytime your mouse rollover. If you guys noticed, when it rollover to rollout, the animation seems to control by the x y position of the mouse. It seems logical to be done in animation but not by actionscripting. Would love to get some tips on using actionscripting(randomness) or whatever to do this. Thanks!



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 08-21-2004, 02:10 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Random Rollover Navigation - Help
Hi all!

I am trying to figure out the navigation at http://www.chipotle.com

There is this random image that appears everytime your mouse rollover. If you guys noticed, when it rollover to rollout, the animation seems to control by the x y position of the mouse. It seems logical to be done in animation but not by actionscripting. Would love to get some tips on using actionscripting(randomness) or whatever to do this. Thanks!

Rollover Navigation
Hello - What I am looking to do is similar to what they do on the macromedia home page with their navigation system at the top of the page. You mouse over a link and several sub menu options appear. I know how to do an on (rollover) and an on (rollout) for my buttons to make that sub menu appear and disappear, but what I don't know how to do is make that sub menu stay there as you rollout so that you can choose the links from that sub menu. Does this question make sense? So, what I do is on (rollover) I go to a frame and play a sequence where the submenu appears. The sequence stops after a few frames. On rollout I have it go back and stop at frame 1 where the movie originally started. I'm missing something.

thanks for your help

ROLLOVER Navigation Bar
Hey guys,

I made an easy roll over menu, but when I roll over them, they stay open no matter what..

heres the code im using atm.. not sure on the correct code for making them close, thats why im posting here.

===

stop();
function openMenu(yourEvent:MouseEvent):void {
this.gotoAndStop("open");
}
home_btn.addEventListener(MouseEvent.ROLL_OVER, openMenu);

===

if anyone can fix that up for me, id appreciate it alot

Thanks guys

Scroll On Rollover Navigation
Heloooo everybody! just joined, hope ur all friendly in here.
Ive been learning flash for the past year but have not totaly grasped actionscript yet, im getting there tho and will help anyone if i can!)

I am hoping to find some help or a good tutorial for a navigation mc id like to build.

Specifics:

I plan it to be an mc, inside which are buttons, laid out horizontallty. Like this one; [url=http://www.dieselmarketing.com]]

I have found 2 tutorials on this site but their not as smoooooooooth as thr one i mention above!
I would like the navigation to scroll left to right as you roll the mouse over and important that the movie stops scrolling on rollout.
Nobody on the macromedia forum could help, im starting to find em a bit fickle in there so i hope this site is sweeter. Please help if you can, will return the favor anyway i can! Ooooohh!

Menu Rollover Navigation
Hi there,
I have Flash MX.
I noticed that most of the tutorials involving navigation consisted of the user actually clicking on the button for a drop down.
I would like to know if there are any tutorials out there, where I rollover the button and a sub menu appears.
I would like to know how to do a horizontal one like the one on www.macromedia.com and also a vertical one.
If anybody knows of a tutorial please let me know.
Or if you don't and have some hints as to how to start, please tell me.
I am sort of Ok in Action script.
Thanks.

Navigation Rollover Issues
ive created a flash navigation on this site: http://www.radioliverpool.co.uk/

if you rollover any of the links, the sub links come in and that all works fine, the problem im having is that if you rollover another main link while moving towards one of the sub links it loads the sub links for that instead - is there a work around for this (eg have a timer that ignores any mouseovers of the main links so that people have time to get to the sub links without any others loading)

hope that makes sense!

Rollover Navigation Problem
Hi guys,

I have designed navigation for a site im building, basically there is a rectangular row of links at the bottom of the page and i have set up a rollover effect for a second row of links to appear above in a line when the mousee goes over the link and this collection of links stays there when it is clicked.

My problem is that instead of hovering over this second breakdown of links and going to a page, this row becomes one large button attached to the first links below rather than just being an effect of hovering over the small individual button below. Is there anything i can do so that this is a seperate set of links?

[CS3] Help With Navigation Rollover Buttons
I need help with making the navigation bar on top of my flash to work in pointing to url's. I am still learning action script, so beginner here. This file calls for 2.0 script. Not familiar with that much.

There are 5 buttons on top that each need to point to there own URL.

here is link to view http://www.whenallplansfail.com/review/index.html

Thanks for any help in advance.

Rollover Navigation Menu Help?
OK. Stick your mouse over the 'product' section of the navigation bar on this page, since I have no example of my own to direct you to.
I think I read somewhere that the navigation bar on adobe.com was made with flash. Because the site is so oddly designed, I have not a hope of ever finding that specific page again.
I went through several tutorials, tried several things, and eventually ended up making my own flash navigation bar, with the lists that shot down when you hovered your mouse over the topic. Go me.
However, when I went to put that navigation bar into my web page, I found that, while the actual navigation bar was no taller than the one on adobe.com, the entire stage was a solid white and much bigger.
My first solution: make the stage the size of the bar, and have the drop-down lists open OFF of the stage. Well, newbie that I am, that didn't work, as once the bars dropped down off of the stage, they weren't shown.
My second solution: use layers in my page, and put the entire large stage and actual page content in different layers on my website. That didn't work either. If the navigation bar is on a higher layer than the page content, the stage covered the content, and if the navigation bar was on a lower layer than the page content, the roll over lists dropped down BEHIND the words.

So, now with all that said/typed/read, Is there a way, (keeping in mind that you have to speak to me as if I was 4, a huge techie answer will confuse me more than help me), is there a way for me to create a rollover navigation bar that has lists that cover the page content when hovered over, like the bar on this page, WITHOUT having the stage on it?

All tutorials I have taken so far have taught me how to make a total flash site, but as I am designing this for stone aged computers, I'd rather have JUST the flash bar, and not a whole flash page.



HOW do I make a navigation bar, just like Adobe's?





























Edited: 01/12/2007 at 01:23:19 PM by valarauca

Rollover Navigation (OS X Style)
Hi People,

I was just browsing the Source/Experiments board and came across this thread:
http://www.kirupa.com/forum/showthread.php?t=93941

I`ve notived that Arkitus on his site http://arkitus.com/ features a rollover navigation just like OS X does. Currently I`m working on a site that`s similar, but I can`t perfect it like Arkitus has. The problem is the rollover situation. Whilst I`m rollod over I can navigate the navigation. Onnce I`m rolling out, it disapears. Can anyone be of assistance (threads, posts, example files).....arkitus????? ;-)

Thanks in advance, always a pleasure,
m.

Problems With Rollover & Link In Navigation Bar
I purchased a template that has a Flash header in it from template monster, which I had to decompile.

I can't figure out how to do a rollover effect, and I've also been unsuccessful in the linking attempts I've made.

There is a rollover-type effect when you load the page ( see http://www.scorchingweb.com/whispllc/index_new.html for reference), but all my linking attempts have failed.

I've located a graphic & movie clip of each of the navigation buttons, but when I add an "On Release Go to Web Page" function to them, the link doesn't work. I also right-clicked on the movie clip & put linkage properties, but neither worked.

I can't even see the actual navigation buttons when I look in the frames at the top. I see areas where they would go, but no actual text. I'm guessing this has to do with the effect that's used upon page loading (some sort of movie clip)?

Again, this was purchased & decompiled. My knowledge of Flash is limited (I usually create just 1 scene with a few layers), and this has much more going on than I'm used to. I'm thinking there's some files I haven't been able to access in the library for some reason (maybe hidden somehow???).

Any help is appreciated ~ THANKS!!

Arrow Follows Navigation On Rollover Any Ideas?
Hi all, I am after an effect I have seen somewhere before, but cannot remember the link. What I am after is a simple navigation like the image I have included, where my arrow only appears when you hover over the buttons, Simple enough to do right. But then I would like the arrow to move from left to right for each button. So if I was to hover over contact us, the button would move with the mouse when it hits that area, but I would require the arrow to be constrained within a desired area. And only move on the hrizontal pane.

I hope all this makes sense, can anyone help me understand how this can be achieved, or equally direct me to a tutorial of some sorts.

Please Help: Slideshow With Navigation Control With Rollover
Hello--I promise I've done a very thorough search. I've been away from Flash for a while and I'm at a loss. I'm hoping someone will be able to guide me in the right direction.

I'm making a slideshow consisting of 25-33 images. The slideshow needs to "auto-launch,"--begin as soon as the user visits the URL. We will be adding or replacing images in the future, so I need to make something flexible in this regard. I'd like to accomplish the following:

1) Each image will display for a set duration of time (e.g., 2 seconds)
2) At the end of the slideshow, it will return to the first image and cycle through indefinitely.
3) Upon rollover (over an image), the slideshow will pause;

And...
*Only* upon rolling over the image that's currently showing, a navigation control will appear beneath the image, showing:
a) the name of image;
b) where they are in the slideshow [e.g., 1 of 33];
c) previous and next controls; and
d) static text [contact info].

Finally, when one clicks a "close" button or something or another (or, just roll off the "navigation control" area...whichever is easiest and/or more intuitive), the slideshow will resume where it was last paused.

I was working with Kirupa's XML slideshow tutorial, when I (belatedly) realized that one cannot implement rollOver actions using XML. (This is the extent of my familiarity with XML. )

I'm wondering what method I should take to achieve the above criteria--putting each image and description in external swfs that loads one after another, somehow using XML, or keeping the entire slideshow in one big swf, or some other cleaner and smarter method that I'm unable to come up with.

I greatly appreciate your input in advance. I'm at a complete loss at this point, and I'm grateful for any guidance.

Thank you so much!
macgirl

Arrow Follows Navigation On Rollover Any Ideas?
Hi all, I am after an effect I have seen somewhere before, but cannot remember the link. What I am after is a simple navigation like the image I have included, where my arrow only appears when you hover over the buttons, Simple enough to do right. But then I would like the arrow to move from left to right for each button. So if I was to hover over contact us, the button would move with the mouse when it hits that area, but I would require the arrow to be constrained within a desired area. And only move on the hrizontal pane.

I hope all this makes sense, can anyone help me understand how this can be achieved, or equally direct me to a tutorial of some sorts.

Flash Navigation Bar – Keep Rollover State
I am very new to Flash and have created a navigation bar with rollover effects in Flash. I like to add the file to a HTML page and have the navigation trigger the various pages. That part I understand…the part I can’t figure out is how to keep the rollover effect when the page changes. Note, this is not a framed page.

The basic effect I am trying to achieve is that when you click on a button that button highlights and loads the appropriate page while keeping the button highlighted. The problem is that when the page loads the flash navigation reloads and thus the rollover effect is lost.

I could create different navigation movies to load with each page, but is there a way through action script to have the Flash navigation file determine what HTML page is loaded and go to the appropriate frame in the flash navigation. Basically, you click on FAQ, the page loads and the flash file sees that you are on the FAQ.HTML and goes to the rollover effect on the flash movie for FAQ. I was hoping that this could somehow be achieved through the condition command…if URL=”FAQ.htm” then goto FAQ frame with rollover….

Simple Navigation With Button Rollover Or Release
I'm working in FlashMX2004
When the user clicks a button, I want the playback head to jump to another frame on the main timeline (which contains a submenu.)
I tried copying and pasting script from a button instance from another project, where it functions perfectly.

cal2pt1.onRelease = function (){
gotoAndPlay("Scene 1", 10);
};

I changed the instance name at the beginning of this script (to the instance name of the button in the new project, and the frame number. But this script doesn't work at all in my new movie, even though I'd swear I'm using it in an identical, simple context. I've triple checked the instance name including upper/lower case. Also I get an error message-
"Statement must appear within on handler"

I've also tried instead attaching an instance script to the button that reads:
on(release) {
gotoAndPlay(5)
}
I get no error message for that, but nothing happens when you click on the button in the exported swf.

I would also like to have a successfully functioning script, where a user rollsover a given button and the playback head junps to specific frame in the timeline.

Any help would be greatly appreciated!
(I can't believe I'm so stuck on something so simple, oh well).
thanks!
Kyle

Slideshow, Hiding Captions And Navigation Until Rollover
Hello, I'm new on this forum. I was relatively familiar with Flash (for a designer...) at one point, but now that I'd been away from it for a while, I've lost my footing.

I'm wondering if someone could point me in the right direction in achieving the below slideshow requirements. I'm just at a loss regarding how I should put this together--putting each image and description in external swfs that loads one after another, somehow using XML, or keeping the entire slideshow in one big swf, or some other cleaner and smarter method that I'm unable to come up with.

I'm making a slideshow consisting of 25-33 images. The slideshow needs to "auto-launch,"--begin as soon as the user visits the URL. We will be adding or replacing images in the future, so I need to make something flexible in this regard. I'd like to accomplish the following:

1) Each image will display for a set duration of time (e.g., 2 seconds)
2) At the end of the slideshow, it will return to the first image and cycle through indefinitely.
3) Upon rollover (over an image), the slideshow will pause;

And...
*Only* upon rolling over the image that's currently showing, a navigation control will appear beneath the image, showing:
a) the name of image;
b) where they are in the slideshow [e.g., 1 of 33];
c) previous and next controls; and
d) static text [contact info].

Finally, when one clicks a "close" button or something or another (or, just rollout of the "navigation control" area...whichever is easiest and/or more intuitive), the slideshow will resume where it was last paused.

I was working with a XML slideshow tutorial, when I (belatedly) realized that one cannot implement rollOver actions using XML. (This is the extent of my familiarity with XML.

When You Rollover The Navigation Bar, Be It The Text Or The Coloured Block- I Want It
I have attached two pictures to try and help add some coherence to my explanation.

Basically I am making a website. The main navigation loads in external swf's through a container movie.

-For this I have used this tutorial : <http://www.kirupa.com/developer/mx2004/transitions.htm>

What I want to do is- when you rollover the navigation bar, be it the text or the coloured block- I want it to scroll down and reveal the 'sub navigation'. (pic2) It's like a drop down menu but kind of the other way around. Then, when you either rolloff of the navigation bar or click on a menu button, it slides back up to its original state. (pic1)

I have played around and only managed a sloppy version which doesn't work very well, especially when you resize.


I think a simple answer to this is if I could get my buttons to work inside a movie clip. I had tried this but then the swfs wouldn't load properly.

Hopefully you can make some sense of this, if not, I will post some fla's so you can have a giggle at my actionscript.

Thanks for your time,

Chris.

Swf Slows Web Site Navigation Rollover Effect
I made a flash movie embedded in a web page and it ends on the last frame of the movie with 10 small movie clips interacting constantly with the action script-- they are things that are perpetually hovering/floating on the stage. the movie is only 5 frames long and no tweening.
The problem is that the navigation on the web page that this swf is in has typical html/css list links that are coded to change background color when rolled over, and they work fine until the flash gets to the last frame where the movie clips are floating, then the rollover effect is choppy and slow.
Is there a way to eliminate this or to maybe stop the movie (from outside the swf) while someone rolls over the links?

R

Random Navigation
Clients! What a pain...

Right, have created a Flash navigation that is made up of an image and some buttons.

This is to form the nav for a corporate site, however, the client wants it to work so that each time someone comes to the site, a new picture is shown in the movie. Some 10 images will be used in all...

So, is it possible to randomly display an image each time, whilst keeping the nav the same.

A test version of the Flash can be seen here:

http://www.suburbanmedia.co.uk/archantest/index_v1.html

Thanks a million in advance for any help!

Random Navigation
I am designing a site at the moment which displays various photographs. I want the navigation of the site to be based around a "wheel of fortune" concept where there will be a large wheel with multicoloured segments which the user will make spin by clicking a button. Each time the wheel spins it will end up at a different angle of rotation. After the movie clip containing the wheel finishes I want a photograph to pop up in its own window - but a different photograph each time the user clicks. I want this to create the illusion of a random navigation but I am having problems with the random angle of rotation and with the random photographs popping up. Any help would be greatly appreciated.

Random Position On Rollover
hey,
i have 10 boxes that, when any 1 is rolledover they all randomally change their horizontal position across a 600 pixel width. once they settle into their new position, they can be rolledover again, and again eachtime changing to a new position. if they reach the end - or the begining of the 600 pixel width they continue the other way until their randomally generated position is reached.

so, how do i do that? can someone please help me, cause i dont know where to start.

Random Movement On Rollover
hey everyone
i am trying to to make a movie in flash where there are a certain of pictures in random spots on agrid, and when i rollver one of them, the rest randomly move around the grid, but not overlapping. when you rollover another picture, the same thing happens to the rest of the pictures.

i dont know how to even begin to do this
any suggestions?
is there a script or post somewhere that might start off in the right direction?
is that description clear enough?

thanks

Best Way To Do A Random Rollover Animation
hello all,

just so you know i'm new to this forum, and a beginner at actionscript.

could anyone give me some tips on the best way to make a rollover -- but as you rollover it, it plays a random animation? (even if it's not random but one in a series of 4 or 5)...

hope this makes sense... please try and be specific with reference to the AS, or i will be confooozled..

ps. i know how to make a rollover button, it's just the random part i don't know how to do.

thanks!
betta

Random Movement On RollOver
just an experiement, basically bunch of dynamicly attached movieclips and each goes to a random loacation on rollOver.

aldo

Random Effect For RollOver
Anyone know how to even approach this effect and can it be done with one symbol?...

http://www.anim-fx.com/samples2/christmas-star.htm

And how would I go about making it a roll-over effect which on mouse roll-over, fades the animation in then on roll-out, all the stars would fall down and fade out as they fall?

Best Way To Do A Random Rollover Animation
hello all,

just so you know i'm new to this forum, and a beginner at actionscript.

could anyone give me some tips on the best way to make a rollover -- but as you rollover it, it plays a random animation? (even if it's not random but one in a series of 4 or 5)...

hope this makes sense... please try and be specific with reference to the AS, or i will be confooozled..

ps. i know how to make a rollover button, it's just the random part i don't know how to do.

thanks!
betta

Flash 8 Random Navigation
Dear people

I'm trying to set-up a simple random navigation using labels and an array that jumps to different points in the timeline. I've used a simple onpress handler to initiate. As far as I can figure this should work, however I only ever get one random selection. If I press the button again the playback head does not jump to a new random location. What am I missing here that is obvious?

p.s. thanks for the random sound tips.

julie
xx


Code:


labelarray=["blob","blob_0","blob_1","blob_2", "blob_3"];


// calculate a random index for this array
random_anms = random(labelarray.length);

button_mc.onPress = function() {
// jump to the label at the random index
gotoAndStop(labelarray[random_anms]);

}

Random Sound Clips On Rollover
Herow,

I was looking for a way to produce random sound clips that would start on a rollover.

Any ideas?

[f8] Random Mc's To Move To Somewhere Else On Button Rollover
Hi. I used the code from kirupa to make my movieclips move randomly.



Code:
//special thanks to Suprabeener for the code
function getdistance(x, y, x1, y1) {
var run, rise;
run = x1-x;
rise = y1-y;
return (_root.hyp(run, rise));
}
function hyp(a, b) {
return (Math.sqrt(a*a+b*b));
}
MovieClip.prototype.reset = function() {
//specify the width and height of the movie
width = 1000;
height = 700;
//-------------------
var dist, norm;
this.x = this._x;
this.y = this._y;
this.speed = Math.random()*1;
this.targx = Math.random()*width;
this.targy = Math.random()*height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed/dist;
this.diffx = (this.targx-this.x)*norm;
this.diffy = (this.targy-this.y)*norm;
};
MovieClip.prototype.move = function() {
if (_root.getdistance(this.x, this.y, this.targx, this.targy)>this.speed) {
this.x += this.diffx;
this.y += this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if (getTimer()-this.t>1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
I want the random moving movieclips to gather around a button when it's onRollOver. Can someone advise me on this? Thanks..

[f8]Stopping Random Motion On Mouse Rollover
Hi!

How can i make a random moving movieclip with a button in, stop on mouse rollover so that the button can be pressed?

Ive put the following code, which i got from kirupa, onto a frame on the movie


PHP Code:



function getdistance(x, y, x1, y1) {
    var run, rise;
    run = x1-x;
    rise = y1-y;
    return (_root.hyp(run, rise));
}
function hyp(a, b) {
    return (Math.sqrt(a*a+b*b));
}
MovieClip.prototype.reset = function() {
    //specify the width and height of the movie
    width = 300;
    height = 200;
    //-------------------
    var dist, norm;
    this.x = this._x;
    this.y = this._y;
    this.speed = Math.random()*4+2;
    this.targx = Math.random()*width;
    this.targy = Math.random()*height;
    dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
    norm = this.speed/dist;
    this.diffx = (this.targx-this.x)*norm;
    this.diffy = (this.targy-this.y)*norm;
};
MovieClip.prototype.move = function() {
    if (_root.getdistance(this.x, this.y, this.targx, this.targy)>this.speed) {
        this.x += this.diffx;
        this.y += this.diffy;
    } else {
        this.x = this.targx;
        this.y = this.targy;
        if (!this.t) {
            this.t = getTimer();
        }
        if (getTimer()-this.t>1000) {
            this.reset();
            this.t = 0;
        }
    }
    this._x = this.x;
    this._y = this.y;
};




Onto each movieclip, Ive put this code
PHP Code:



onClipEvent(enterFrame){
    move();
}




Perhaps there is another way of doing this? Thanks for all your help!

Sumon

Kirupas Random Motion - Stop On Rollover
hi,

modifying the random motion script in a kirupa tutorial:

http://www.kirupa.com/developer/mx/random_motionMX.htm

i would like the random objects to be buttons that pause on mouse rollover. don't know how to stop a function then start it again with mouse control....

thanks for any help
doug

Wheel Of Fortune Style Random Navigation
I am making a website in which I would like the navigation to be in a wheel of fortune style. If the user clicks the spin button the wheel will rotate and land with a random segment undernearth the top marker. The segment would have the name of a section of the site on it and when the user lands on it they would be redirected to the appropriate section. These sections would ideally just be images that pop up in a separate fixed size window when activated, leaving the navigation visible underneath. Does anyone have any idea how to do this?

Wheel Of Fortune Style Random Navigation
I am making a website in which I would like the navigation to be in a wheel of fortune style. If the user clicks the spin button the wheel will rotate and land with a random segment undernearth the top marker. The segment would have the name of a section of the site on it and when the user lands on it they would be redirected to the appropriate section. These sections would ideally just be images that pop up in a separate fixed size window when activated, leaving the navigation visible underneath. Does anyone have any idea how to do this?

[CS3] Button Rollover Plays Random Sound From Array
I know this probably sounds really simple but here goes.

I have 5 sounds, each given a linkage number of 1-5 (eg sound1.mp3 = 1 and so on)

What i want to achieve, is that when rolling over a button, a random sound will be played.

How do i do this?

Thanks

Random Motion, Stop On RollOver, Move On RollOut
Using the kirupa tutorial about random motion, http://www.kirupa.com/developer/acti...dom_motion.htm does anyone know if it is possible to stop one of the movie clips on rollOver and then have it resume its random motion on rollOut? If so what would the code look like. Thanks in advance.

Navigation Trouble, Using Button Rollover, Rollout And Button Down
Hello all

Take a look at the following sites; and notice their menus. Both have a rollover and rollout on their buttons, and when the button is hit the button stays down until another button is pressed. In the scissor sisters site, the neon bar still fades out after another has been pressed.

Franz Ferdinand
Scissor Sisters

I am trying to achieve this myself with my own site, which you can view in progess here:

My Site

I have mastered the button rollOver and rollOut effect, in which i gathered the code from a kirupa tutorial. My problem is, getting the neon bar to stay underneath teh last button that has been pressed.

The main movie is located on the main timeline in frame 2, because frame 1 contains the pre loader.

The actions for frame 2 of the main timeline are:


Code:
stop();
movieLoader.loadMovie("news.swf");
total = movieLoader.getBytesTotal();
loads = movieLoader.getBytesLoaded();
percent1 = Math.round(loads/total*100);
movieLoadText.text = "Loading news "+percent1+"%";
if (loads != total) {
} else {
movieLoadText._visible = false;
}
Now the buttons are not buttons, they are movieclips, which are located on the stage, and have instance names of b1 for news, b2 for biography etc etc

Inside the movieclip, the animation of the neon bar fading in takes 25 frames, and this has a stop action on the end.

This code is placed on the first frame:


Code:
stop();

news.onEnterFrame = function(){

if(rewind == true)
{
prevFrame();
}

}




news.onRollOver = function(){

rewind = false;
gotoAndPlay(25);

}

news.onRollOut = function(){

rewind = true;

}

news.onRelease = function(){
_root.logo.gotoAndPlay("buzz");
_root.movieLoader.loadMovie("news.swf");

}
As you have probably noticed this is the same as the kirupa tutorial.

So now my problem is to make sure that the last button clicked leaves the underline bar down until the next button is pressed.

Whoever can solve this for me is a life saviour!

Thanks

Williby

Trying To Make A Button Rollover, Wait And Recheck Rollover
hi. i'm mostly comfortable with the graphical elements of using flash and there a gaps in my knowledge when i want to polish things up.

i have a bunch of buttons which, when rolled over, trigger some text to sweep accross in an area above the buttons and sweep away when rolled out.
this works nicely but if the viewer sweeps the mouse over a few buttons quickly all the MCs with text in play and it gets very messy.

the only way i can think to tidy this up is to make the button delay when rolled over and recheck about half a second later. if it's still rolled over then it plays the MC. i tried this the obvious way (triggering a small MC with onRollover > play MC at the end) but it needs the actual act of rolling over to trigger so i had to roll out and over again which defies the point >.<

i realise this is a really specific problem and it's very cheeky to ask others to solve my problems but if any of you have come accross similar problems and can point me in a better direction i'd really appreciate it.

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.

RollOver Action. I Need It To Stay In RollOver Mode When Mouse Is Off.
I have a movieclip with this action attached:


PHP Code:



on (rollOver) {
    loadMovie("logo_intro.swf", "bottom_logo");








When I roll over it, it loads the movie correctly. Yet, How do I get the movie to stay once the mouse is off ite movieclip/button area?

Rollover On Top Of Rollover OR Exit Flash Reset
So I have been working on a project for the last two days now that requires several layerd boxes to swapDepths in order for them to expand correctly. I have been doing this with a on(rollover) tag on a hit area button which then expands to a full screen.

PROBLEM
I cannot figure out how to add a fuctioning button to on top of this full rollover.

I have attached the files so that they may be viewed below
http://www.jdhillen.com/flash/dc_test.fla
http://www.jdhillen.com/flash/dc_test.swf

If you scroll over the yellow box it will expand and show a blue button. I'm trying to get the button clickable, but I'm afraid the way i built the flash doesn't allow me to do so.

Any advice would be greatly appreciated. Thank You

Random Random Random Timer... Problems
Heyy guys. I know you guys know this stuff backwards & forwards so maybe you can help.

This is a 2 part problem. Part 1 is Im trying to create a timer that functions at random intervals, the function in this case is playing a MC of a car driving on a freeway in 1 to 10 second intervals to give the feeling of, well, randomness. (I've attatched the .fla file if that'll help).

So it works, but not quite as it will generate intervals only twice before it repeats the second interval over and over. So the car will 'drive' in say, 7 seconds the first time and then it will drive in 3 seconds, then again in 3, and in 3 and in 3 seconds. Ive tested it so much I know its not coinsidence.

Here's the code Im using (located in the freeway MC):

var interval:Number = random(10)+1;
function someCodeToRun() {
_root.freeway.diffcars.drive01.gotoAndPlay(2);
}
setInterval(this, "someCodeToRun", interval*1000);

Part 2 is I also wanted the cars to be different colors, which is why there is a diffcars MC with different frames of cars, but now Im not even sure I was headed in the right direction with that.

Ultimately Id love to have different colored cars driving on the freeway at different intervals. Can anyone figure this out?

Background Rollover With Button Rollover
I'd like for my background behind my buttons to rollover, but remain rolled while I touch the buttons and make those rollover. Here's an example:

http://www.zymocreations.com/index_f.htm

I can get both of my rollovers going, but I can't get the background to stay rolled when I move to the buttons.

Any suggestions? Thanks ahead of time!

Button Rollover Disabled Due To MC Rollover
i have used this nifty code from this .fla (http://www.actionscript.org/forums/a...chmentid=12251, 6.4kb) and it works perfectly. it's a rollover effect that plays or reverses an MC on rollover, i have just one extra thing i'd like to ask that maybe someone could help me with.
in my example, i have a curtain that goes up and down when rolled over and out. this works fine, but what i want is to have my menu behind the curtain, so when the user rolls over the curtain, it goes up, revealing the menu. i've done this, but for some reason my basic menu's rollover actions are disabled. can't anyone help me to get them to work?

here's the code from devonair's example:code: stop();
curtain.onRollOver = function() {
this.onEnterFrame = function() {
this._currentframe == this._totalframes ? delete this.onEnterFrame : this.nextFrame();
};
};
curtain.onRollOut = curtain.onDragOut = function () {
this.onEnterFrame = function() {
this._currentframe == 1 ? delete this.onEnterFrame : this.prevFrame();
};
};and here are the actions on my basic menu that is within the 'curtain' MCcode: on (rollOver) {MC1.gotoAndPlay("over");}
on (rollOut) {MC1.gotoAndPlay("out");}
on (release) {getURL("home.htm", "iframe");}many thanx in advance for any help given...

Blink Rollover Effect On Rollover
- i have three layers within the OVER state of a button (layer1, layer2, layer3)

- layer 3 has a rollover fade in effect for my button
- layer 2 has a blinking effect for my button
- layer 1 is the canvas of my button

I just want layer 3 to animate 1 upon rollover but has layer 2 keep on blinking while the user has its cursor on the OVER state of the button.

I have the "stop();" actionscript function for the rollover fade effect on my layer 3 but it stops everything! I want the layer 2 effect to continue the blinking.

I have tried extending the keyframe time on layer 2 but that didnt work.

Anything else I should try?

Complex Rollover -rollover Sounds
Hello,

I've used the complex rollover tutorial and it works great. My only problem is attaching a sound to the rollover. The rollover is set to rewind when you roll off the navigation link and this replays the rollover sound which I don't want. Is there a way to attach the sound to only the rollover?

thanks for any help you might have

CuePoint Navigation Vs. CueSegment Navigation
Having problems throwing up a talking head slide show in MX2004 Pro.

1) The slider works going forwards, but not going backwards
2) The buttons seeking slides work going forward, but not going backwards

After talking with tech support, it seems the problem is with how they set up CuePoint navigation. Basically, a single time point = cue point triggers an event, which is a slide change. This is triggered from left to right in time, but not going the other way.

A slide show requires a different action script; however. It is not cue points that are linked with slides, but SEGMENTS in time are linked with STATES that correspond with a certain slide being in place.

Is there an action script expert out there who could help me program this into a slider that really works, going backwards and forwards?

If that is too ambitious, how can I subtract 300 milliseconds from q.time?

This will at least, hopefully, make the slide buttons work, since they will seek to a time point slightly before the actual cue point.

Jonas

CuePoint Navigation Vs. CueSegment Navigation
Having problems throwing up a talking head slide show in MX2004 Pro.

1) The slider works going forwards, but not going backwards
2) The buttons seeking slides work going forward, but not going backwards

After talking with tech support, it seems the problem is with how they set up CuePoint navigation. Basically, a single time point = cue point triggers an event, which is a slide change. This is triggered from left to right in time, but not going the other way.

A slide show requires a different action script; however. It is not cue points that are linked with slides, but SEGMENTS in time are linked with STATES that correspond with a certain slide being in place.

Is there an action script expert out there who could help me program this into a slider that really works, going backwards and forwards?

If that is too ambitious, how can I subtract 300 milliseconds from q.time?

This will at least, hopefully, make the slide buttons work, since they will seek to a time point slightly before the actual cue point.

Jonas

PLEASE HELP - URGENT Load Random Swfs From Individual Random Sets
I have two target mcs I would like to load different random swfs into

I have eight folders (a-h), each with 12 swfs (001-012)

I need to load a random swf (001-012) from a random folder (a-h) into the "card1" mc

I have figured out how to specify which one I want:

loadMovie("a/a001.swf","card1")
stop();

however, I need it randomized....

then, I need to load another random swf into my "card2" mc (001-012) from another random folder (a-h, ...except for the folder from which the first swf was loaded)

can somebody please help??????

Copyright © 2005-08 www.BigResource.com, All rights reserved