Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

another question re rollover/out

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
i am working on a this tiny menu with off buttons around each one--i wanted to have the scroll menu come up upon clicking and to unscroll on rollout. however, the menu, i imagine is too small for flash to recognize the difference betwween rollover and rollout and it makes the menu unscroll when i first pass over the button. the window is loaded with a telltarget and the unscroll likewise. but since the rollover/out thing does not work is there a way i can program the button to verify first, if the target is loaded yet?

thanks again all!

disfasia
 
That is one for Yoda...but 1 thing...small items that use rollovers, aren't good...as far as my experience goes...

Lets just say Flash doesn't pick up mouse movements too gracefully. ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
You could make the button wider and also put it on the same key frame as when the menu is fully extended. roda B-)

Learning is like rowing against the current. As soon as you stop, you start going backwards.
 
yes, i agree. only my experience with action scripting is mediocre and i am certain there must be some actionscript that says if target x is loaded then reverse and unload, sort of...???
 
roda, i thought of that but it doesn't solve the problem of that when the user rolls over the name of the button appears and if the user clicks the button the page unscrolls. and i need some actionscript to sense if the page is already open or not because otherwise it closes the mc even if the button has not been clicked. is there another way here?

thanks again@
disfasia
 
If I really understand your problem, just use a variable like /:menuopened = false. Then on your button's actions, add a check on that variable before you do anything else.
Roda! That somewhat something like I did for you! Can't you explain this?

;-)ldnewbie
 
well i just figured out what i was doing wrong (sometimes i overcomplicate flash)..i had close buttons on a rather simple menu, so i just took them off and actionscripted the buttons for rollout and it works just fine now..sorry for trouble there. but idnewbie, i will look into this menuopen=false bit...i am not that great (yet) at variables...

thanks again
disfasia
 
ps...how do i reverse play frames??? is this possible??
 
Although I don't think this is really the thing to use in this case (this menu thing!), you can reverse play. Have a look at ;-)davdesign's faq250-756, number 45. The reverse play is done with a reverse control mc!

;-)ldnewbie
 
i tried to download the fla, but i cannot for some reason...i just get the page in my browser???

 
i was actually thinking about an action script that one puts after the final fram of an mc that would make the mc go from say, 15 to 1... how is this done? the dave piece is not quite what i meant...
thanks again!

disfasia
 
roda, by the way my address is vigo@disfasia.net if you could email that fla from above...i cannot open it from the given address! or if you could let me know briefly how to do that

thanks again!@
disfasia
 
Disfasia,
Don't know if you're refering to my .fla or davdesign's.
My .fla only somewhat explain the use of a variable as you first requested. As for reverse play, davedesign's method is the only way I know how it can be done.
I did see another tutorial on the subject somewhere (might try to find it!), but it worked the same way... With a control mc. It can't be as simple as a while loop just saying play the preceding frame until you get to the frame I want it to! This is somewhat in fact what the control mc does!
Davdesign's .fla is available and downloadable in the .zip link I gave you.

;-)ldnewbie
 
Don't forget, simpler is always better. Use transparent images to artificially make buttons larger, ie. causing them to have a larger target area. Just when you edit your buttons, insert an image, convert it to graphic, then modify the instance to eliminate the alpha. wallah, your button is now easily recognized by flash.
 
Even simpler! Just enlarge the "hit" area of your button! Draw a filled rectangle the size you want. It remains invisible and no need to go through briandesigns' process!

;-)ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top