Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-01-2005, 01:34 PM   PM User | #1
Tricia
New Coder

 
Join Date: Feb 2005
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Tricia is an unknown quantity at this point
Question [Resolved] Disabling Buttons in Flash?

In my swf file, I have several buttons. With one, a transparent box comes up with some info and has a back button, but you can still access the buttons behind it, which I do not want. I want to be able to disable the buttons behind the transparent box when the transparent box is up but not the back button that is on the transparent box...if thats confusing enough.

Anyone have any ideas?

Any help would be appreciated.

BTW, Im using Flash MX Professional

*** UPDATE: Nevermind! Found a work-around!

Last edited by Tricia; 07-01-2005 at 03:37 PM..
Tricia is offline   Reply With Quote
Old 07-01-2005, 03:42 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
What was the solution? Other people might have similar problems.
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-01-2005, 04:36 PM   PM User | #3
Tricia
New Coder

 
Join Date: Feb 2005
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Tricia is an unknown quantity at this point
Solution

ah good point!

Here's what I did:

OK, say the transition for the transparent box to come up is in frames 30-40. I created a keyframe at frame 30, in the layer for the buttons that I wanted to disable while the box was up, and removed the actionscript from the buttons. I then created another keyframe at frame 40 and re-added the actionscript. Since at frame 40, the box will have disappeared. This make sense?

It's not a pretty workaround, but it works!

Anyone know of a more elegant solution, let me know!
Tricia is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:13 AM.


Advertisement
Log in to turn off these ads.