I can't see the buttons, but they still work..

  • I've opend an external swf in an empty movie clip. Over my main menu. It's all good, but the buttons of the main menu still work under the open Swf. How can i prevent this ?

    Thank you.


  • I've opend an external swf in an empty movie clip. Over my main menu. It's all good, but the buttons of the main menu still work under the open Swf. How can i prevent this ?

    Thank you.
    you can disable the buttons
    on the timeline containing them
    for (var obj in this) {
    if (this[obj] instanceof Button) {
    this[obj].enabled = false;
    trace(this[obj]);
    }
    }


  • so easy..

    _root.your_but._visible = false;
    Barn idea!


  • You can also do the anti-click-throug-trick. It's usually simpler than looping through all menu-buttons to disable or enable them.

    Create an invisible button in the bottom of your external movie with the same size as it's stage. Make sure it lasts for the whole movie. Give it an instancename. (For my example code I've assumed an instancename of "anticlick_btn".) Then add this script on the first frame:


    anticlick_btn.onRelease = function(){};
    anticlick_btn.useHandCursor = false;


    Now the "anticlick_btn" button will catch all mouseevents without showing a handcursor.

    /Mirandir


  • Another alternative is to put all those buttons in a single movieclip, and, since they're not supposed to be visible anyway, make that single movieclip invisible by changing its _visible property to false which also serves to disable all the buttons in one swell foop.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about I can't see the buttons, but they still work.. , Please add it free.