Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Flash problem HELP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vmsflash - 29 Jul 2008 02:23 GMT
If any one can help I would really appreciate it. Here is the problem.

I have a designated area where the mouse rolls over and an action stops and
the menu pops up.
_______________________________
on (rollOver) {
    gotoAndPlay(51);
}
on (rollOut) {
    gotoAndPlay(65);
}
____________________________________
This code goes to an area that fades the action out and menu come down to use.
When you roll out the action comes back and the menu disappears.

Okay, when this menu appears in this designated area you can roll over the
buttons. I made holes in the shape of the buttons out of the designated area.
When I roll over the buttons, each has code such as...
on (rollOver) {
    gotoAndStop(65);
}
on (release) {
    gotoAndPlay("Services", 1);
}
_______________________________
So when you roll the mouse onto the button. It keeps the action from starting
back up. but when you roll off, it begins the fade of the action and drops the
menu buttons down again. I do not want this to happen while I am still in the
designated area. How can I keep this from repeating the start of the fading of
the action over and over as I move between buttons. can anyone help me with an
idea of how to keep the action from repeating the beginning of the fade when I
roll off the button? Help

:confused;
Noelbaland - 29 Jul 2008 04:20 GMT
Hello,

You need to put create a big invisible button that will cover the area that
your drop-down buttons occupy.  You place this big button under your drop-down
buttons and you attach a rollover event that will keep the menu open.

on (rollOver) {
gotoAndStop(65);
}

That way if you move the mouse to the sides or in-between buttons then the big
button will act like a "safety net".  When you roll off this big button then
you set up the menu to close.

on (rollOut) {
gotoAndPlay(65);
}

You won't even need to use the rollover event on your drop-down buttons
because the big button will cover that.

Hope that helps!
vmsflash - 29 Jul 2008 06:08 GMT
Thank you so much for the input. The problem is that on the area button, I have
to gotoandplay 51 because the action is a fade and it fades to zero at frame
65. If I do a gotoandstop 65 it just disappears. hence my problem. Is their
code that if the area back button tells the action to stay off and their are
buttons over the top that button, can you tell it to read the code in back to
stay off so when I roll off the buttons the area does not repeat and replay
51-65? Does that even make sense? Struggling. I really appreciate your time.
Noelbaland - 30 Jul 2008 03:53 GMT
Do you have a stop() command on a frame somewhere along your timeline(after
frame 51 before frame 65) that stops the menu when it's fade-in has completed?
I'm going to say that it's on frame 58.  This is the frame that you set the
rollover event for your area button.

[Area button code]

on(rollOver){
gotoAndStop(58);
}

Then when the mouse rolls off

on(rollOut){
gotoAndPlay(58); // or you could just put play();
}

You will also have to tell your drop-down buttons to stay open on this frame
as well.

[Each drop down button code]

on(rollOver){
gotoAndStop(58);
}

All the above depends on how you've set up your timeline and animations.  Try
it and see if it works.
vmsflash - 30 Jul 2008 21:18 GMT
Noelbaland, you have kind to offer your help. let me see if I can clear this
up. The movie loads to 50 and stops. their is a matrix effect taking place on
the right. You can not see the menu. When the mouse moves to the right about
half way the matrix fades away and 5 vertical buttons drop down. Hence the code
below. It stops at frame 65
on (rollOver) {
gotoAndPlay(51);
}

When you roll the mouse over the buttons that dropped down...
on (rollOver) {
gotoAndStop(65);
}
everything is fine, but when I roll off the buttons the invisible "hit" area
that drops the menu down starts over and the plays 51 again, instead of just
staying off. the roll over code of the Hit area seems to over ride the roll off
command I put on the buttons of...

on (rollOut) {
gotoAndStop(65);
}

Sorry, I have not done the job explaining this well. I am trying.

Thanks God Bless
matt
Noelbaland - 31 Jul 2008 04:27 GMT
Are you able to put up an example to look at? Sorry, I am having a little
trouble understanding what is going on in your movie. Now it's starting to
sound a bit complicated as you say that a "matrix effect" fades out and the
menu buttons drop down. I was under the impression that you had a navigation
bar with buttons that activate a dropdown menu that won't stay open.  Is the
dropdown menu a movieclip?

Thanks
vmsflash - 31 Jul 2008 05:27 GMT
I will try and post it tomorrow and you can look at it I will let you know when it is up. Thank again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.