Link to home
Start Free TrialLog in
Avatar of mtb007
mtb007

asked on

**VERY URGENT** Rollover

Below is a link to my flash file.

If you rollover the left "tabish" area, you will see the navigation rollout.  Now if you roll off to the left the navigation skips.  Is there a way to fix this?  I need the navigation to roll out and when you roll off anyway, it needs to go back.

http://www.jasonkoscho.com

Any Thoughts?

Thanks
mtb007
ASKER CERTIFIED SOLUTION
Avatar of muso120999
muso120999

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fixitben
fixitben

Just another thing you need to make the movie a little wider on the left cause there is a little gap where you get that bug even with muso's code.  I don't want any points I just noticed that and though I should comment.

Fixitben
Thanks fixitben, I should have noticed that myself!

mtb007, you can change 252 to 260 - I'm pretty sure this fixes it properly!

muso
You better change your Stage size 766 x 496 ... and Adjust the contents accordingly...

http://www16.brinkster.com/photoflash/index.swf

download the fla from this link

http://www16.brinkster.com/photoflash/index.fla
Avatar of mtb007

ASKER

-Muso

Thanks for the speedy resonse.  This is great.  But where did you get the 260 from?  If I change the size of my stage and move the MC, I cant use 260, right?  How do I find the correct number?

Thanks
I ran a trace...

onClipEvent (enterFrame) {
    trace(_root._xmouse);
     if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root._xmouse>=252)) {
          this.nextFrame();
     } else {
          this.prevFrame();
     }
}
Avatar of mtb007

ASKER

Muso.

Are you still Around?  I have a question about this.

Thanks
Listening...
So, what's your question?!

muso
Avatar of mtb007

ASKER

Sorry,

I posted the file again.  My problem is that I cant get my button rollovers to work the way that I need them to.  If you look at the file, you will see the layout and how it should work.  When it first loads, the navigation should slide out from the left and stop.  When a button is clicked it should slide back how it does, and then slide out when rolled over... like it does.  But I just cant get it to slide out and then stop.

If you need more of an explination, just let me know.

Thanks Again.

mtb007

http://www.jasonkoscho.com/index.html
Your link is throwing up a File Not Found error!
Avatar of mtb007

ASKER

Try it now.  The main one is "Test.FLA"
> When it first loads, the navigation should slide out from the left and stop

So, to clarify:

Do you want it to reveal itself and stop when the clip first loads,  and then when the user has either clicked a button, or rolled on then off the navigation bar, you then want the navigation bar to function as it is at the moment?
Avatar of mtb007

ASKER

When the nav bar first slides out, I need it to stay out, until a button is clicked.  And then it will slide out.  From that stage on, it will only slide out when the user rolls onto it.  

It has to stay out for the initial part to show the users the navigation.
You just need to set a flag - like firstView = true;

Then on the on(release) of the button, set it to false.

You can then relatively simply alter the rollover code to something like:

if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root._xmouse>=0) && (firstView==false)) {
Avatar of mtb007

ASKER

Im not that advanced in Actionscript.  Can you help?
Ok, if you can wait a while I'll sort something out later this evening, when I get back home.
Avatar of mtb007

ASKER

sure, thanks soooo much!
Damn, where does the time go!

If you can be patient I promise to post something tomorrow night!
Avatar of mtb007

ASKER

Ok, thats fine.
Thanks Again.
sorry for the delay.  here's a link to the file...

www.fusionsite.co.uk\flash\ee\Q_21151437\test3.fla

One hint, is you can get some really nice transition effects (like the slide out), and a more organic feel
by using actionscript to do the slide in/out, rather than a transition over frames.  The file would be slightly
smaller too.

If you are feeling brave, it's worth a look (Robert Penner created some transitional algorithms that I would
swear by!):
http://robertpenner.com/
The link above doesn't seem to work by clicking on it (lowercase Q!) - but copy the url, and paste it into a new browser window that works fine.

Let me know when you have it too, and that it works, so I can clear up the space again!

muso
I don't think you posted the right file Muso all this one has in it is a bunch of boxes and a stop();  

Also I am going to post another question directed towards you cause I want to know how to implement one of the elasitic functions that you posted above.  By Robert Penner.  That is Pretty cool.  But I don't know how to use it. so I am going to post a question asking how to use those.  

Thanks
Fixitben
Hi fixitben,

Oops, sorry about the file, here's the proper one (same link adjustment applies as above)...

www.fusionsite.co.uk\flash\ee\Q_21151437\test.fla

muso
mtb007,

did the new updated file work for you?

muso
Avatar of mtb007

ASKER

It work perfectly.  I saw some of the new code, but what exactly did you guys do?

Fixitben & Muso, Thanks!
No problem mtb007!

> I saw some of the new code, but what exactly did you guys do?

Are you talking about the implementation of Robert Penner easing_equations? Nothing else as yet has been changed to your file, and you would certainly be notified if it has, but the code could be used to implement your roll-over in a slightly different way - depends what you want really!

muso
Avatar of mtb007

ASKER

Yeah i saw the easing examples that he did, they're nice.
Ok, cool.  I really appreciate it.  Thanks guys!
Avatar of mtb007

ASKER

I posted another question, that you guys can probably figure out very quickly.  it's worth 300 pts.

https://www.experts-exchange.com/questions/21167192/Urgent-Navigation.html

Thanks.
Avatar of mtb007

ASKER

... it's now worth 500 pts...