![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 19
OS: vista
|
Flash CS3 button click-away question
![]() How can I make a movie clip button disappear when it is clicked away from? So if the user clicks the button and a menu comes out, but then the user clicks another part of the screen, the menu goes back in? Any ideas - I can't see it in the code hints. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros
|
Re: Flash CS3 button click-away question
What's your code to show the menu?
Could you give me an example of the code you're using so far? Or if you like you can zip up the .fla and i'll have a look and help you out. Cheers, Jamey |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 19
OS: vista
|
Re: Flash CS3 button click-away question
Jamey
My whole movie is 35Mb (is that big?) so I've just attached the one movie clip in question. I don't know much Actionscript yet so please bear with me if I'm doing it totally the wrong way. It is essentially a drop down menu that i'm trying to do. Thanks James. |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros
|
Re: Flash CS3 button click-away question
35MB is very large, do you have embedded videos/pics in the movie? because it may be adviseable that you dynamically embed them instead (basically cus 35mb could take about 10 mins to load on the web.
I did what i consider to be a big project for my ICT c/w not too long ago and the final main movie was 857kb but i dynamically embedded my vids&pics... I'll take a look at the movie now and see what i can do to help you. I'll get back to you ASAP. Cheers, Jamey |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 388
OS: Mac OS X 10.5.7 and XP SP2
|
Re: Flash CS3 button click-away question
If you want an object to disappear, you could use
something.visible = false; //AS3 or something._visible = false; //AS2 If that's what you're looking for... |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 388
OS: Mac OS X 10.5.7 and XP SP2
|
Re: Flash CS3 button click-away question
Oh, I just looked at your .fla, so you have a MOUSE_OVER event listener, and then it continues playing the timeline which shows the things rolling out...
If you add an event listener that is MouseEvent.MOUSE_OUT, then that will detect when the person isn't hovering over the button any more and you can use the same concept of playing the timeline, except tween the stuff back in (so it disappears). Does that make sense? |
|
|
|
|
|
#7 (permalink) | |
|
Registered User
Join Date: Apr 2009
Posts: 19
OS: vista
|
Re: Flash CS3 button click-away question
Quote:
Thanks for the help everyone! |
|
|
|
|
![]() |
| Thread Tools | |
|
|