-
one button behind another. Priority question.
Hello everyone,
I have a button behind a movieclip ( its an arrow behind a door that opens. (www.soulclub.es.) the arrow will be placed where the "page under construction" is and will be a link to the main page.)
I want to make the arrow button active as link only when the door is open, that is, only when the movieclip is at the last frame.
Does anyone have an idea how can i do it
Thanks in advanced
-
FK'n_dog
use the enabled property -
button must have an instance name -- ie .. myBtn
to disable - myBtn.enabled = false;
to enable - myBtn.enabled = true;
-
How can i tell : "when the playhead is at the last frame of the mc"
-
in the last frame of the MC tell the button it is enabled ...
-
FK'n_dog
as TechNoiz says .. add code to the last frame of the movieclip
if the button is on the main timeline, the code in the movieclip
must include the path back to the main timeline -- _root or _parent,
and the buttons instance name to control its enabled property.
//--last frame
stop();
_parent.myBtn.enabled = true;
-
It. works
Thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|