How do reactivate you a button inside a Clip (which was disabled)?

I am tempted to call a clip and when that film is called the other buttons on the frame are disabled. I got the correct part.

However, the problem starts when I close the clip. the buttons I disabled are not enabled (see the reActivateButtonsfunction). I didn't do something correctly. There is code in two places, on the chassis and on the frame in the clip which is called. Please see the code.

CODE ON THE TIMELINE OF THE HAND

Stop();


pop up screens

CreditPop.stop ();

Active keys from the popup screens when the movieclip is closed. ;

stage.addEventListener ("ReActivateMainButtons", reActivateButtons);

function reActivateButtons(e:Event):void

{

Credits_bnt.mouseEnabled = true;

goLongA_bnt.mouseEnabled = true;

goLongE_bnt.mouseEnabled = true;

goLongI_bnt.mouseEnabled = true;

goLongO_bnt.mouseEnabled = true;

goLongU_bnt.mouseEnabled = true;

}

Name the clip and disables the buttons.

stage.addEventListener (MouseEvent.MOUSE_DOWN, touchGo);

function touchGo(event:MouseEvent):void

{

If (event.target is Credits_bnt)

{

SoundMixer.stopAll ();

CreditPop.play ();

Credits_bnt.mouseEnabled = false;

goLongA_bnt.mouseEnabled = false;

goLongE_bnt.mouseEnabled = false;

goLongI_bnt.mouseEnabled = false;

goLongO_bnt.mouseEnabled = false;

goLongU_bnt.mouseEnabled = false;

Event.stopImmediatePropagation;

}

CODE INSIDE THE MOVIE CLIP: Code in the video which is called. I created a dispatch to activate ReActivateMainButtons.

Stop();

closeCredit.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditPopupScreen);

function closeCreditPopupScreen (event: MouseEvent): void

{

gotoAndPlay ("closeCredit");

this.dispatchEvent (new event ("ReActivateMainButtons"));

}

Question: How can reactivate these buttons that have been disabled?

Try ading the listener for the object that dispatches the event instead of the scene

Tags: Adobe Animate

Similar Questions

  • Trying to create a button inside a clip that will return to scene 1

    I am trying to create a button inside a clip that will go back to scene 1.

    Here is my code

    Stop();

    sback1_btn.addEventListener (MouseEvent.Click, Film1);

    function film1(event:MouseEvent):void {}

    gotoAndStop ("shorts");

    }

    I get access of undefined property error.

    Can anyone help?

    Thank you.

    Try

    sback1_btn.addEventListener (MouseEvent.Click, Film1);

    function film1(event:MouseEvent):void {}

    MovieClip (root) .gotoAndStop ("shorts");

    }

    or

    MovieClip (root). VideoMask.sback1_btn.addEventListener (MouseEvent.CLICK, film1);

    function film1(event:MouseEvent):void {}

    MovieClip (root) .gotoAndStop ("shorts");

    }

    The problem is the path

  • How empy and replace the buttons inside the Manager of horizontal management.

    Hello! So basically, I have 2 buttons at the top of the screen and a set of buttons inside a HorizontalFieldManager (let's call is Set 1 and 2). Now, when I click on the first button it should appear a Set 1 and then appear Set 2 and remove the Set1 on screen. How can I do this? Thank you!

    -Ryan

    The details in the referenced thread, you should get going.

    Basically, you add and remove fields.

    I suggest that you have a Manager to Set 1 and a Manager for value 2.  Add the two managers to the screen, with nothing in it,

    Make sure that Manager 2 is empty (deleteAll) and add fields associated with the value 1 to the Manager for the value 1, when they should be displayed - i.e. trigger it by pressing button 1.

    Remove the fields in Manager 1 and add the fields associated with the value 2 to the Manager for Set 2, when they should be displayed - i.e. trigger this by pressing button 2.

    I hope this helps.

  • How do reinstall you a button on a computer keyboard hp laptop (pavilion dv5)?

    I can't for the life of me find instructions how to attach a keyboard button. I tried several times to tie it and just when I think I managed it falls once again! Help, please!

    Hello:

    Please see if these items are of no help.

    http://www.laptopkeys.co.UK/replaceKey.html

    http://www.ehow.com/how_6468815_reattach-keyboard-key-HP.html

    Paul

  • buttons inside video clips

    I created a button and placed within a clip.  I added the script (as2) the button below however when I test the movie, the button does not work.

    on (release) {}
    tellTarget (_root) {}
    Stop ("226");
    }
    }

    The button is located in clip "page1".

    Page 1 is on frame 120

    I don't know that I have not included.

    Tracey

    You may be having a problem because tellTArget is supposed to get a string argument, and maybe because you are citing the frame number which must be given not (unless it's an image tag).  Since you are using AS2, try using...

    on (release) {}
    _root.gotoAndStop (226);
    }

  • How to treat you with button interrupts on the 537 ez - lite

    Sorry for the newbee question, but I'm just familiar with the jury of 537 ex - lite.  I want to use the buttons to cause an interruption and then this interruption with a service code.  What I have to write a separate VI to handle the interrupt, or I can put it in a structure of the event in the vi that I write...?  Finally, I would like to be able to write an event-driven state machine in the fins... In the attachment, I can button scan and as he lights a led, but I would use the interrupt enable and get the number of the button as an event / box pair to do the same thing... How?

    Thanks for your suggestions.

    Hummer1

    Hummer1,

    The call library function Node (COLD LAKE) that is configured to run with the dll works with features that sees what button was pushed on the BF537. You can double-click that and see what dll it points to and what function it interacts with. Since the deployment of resources target shipped you will have to compile the code LV, in C and machine code using a 3rd part of the compiler is just to do the work of generating C for you. You could probably accumulate the feature yourself using just the screw provided but endearing tape in these support libraries is better because you do not have to reinvent the wheel and lots of screws that you would end up with are actually just wrappers for other DLLs.

  • How to detect wheather the button is clicked or not and disable if you click

    Guy

    I have 4 button navigation and as the House, are we etc...  And I want to disable the House when there is click and cannot be clicked until the user click on the button another first. means if a visitor's home page then navigation host is disabled and all others are active, and when they click to aboutus button then the pages will to her we are page and the subject we touch is disabled and another get active. I want that this solution in AS3 with oop concept.

    Thank you

    Something like the following...

    function buttonmode(link:MovieClip):void {}

    link.buttonMode = true;

    }

    buttonMode (rec1_mc);

    buttonMode (rec2_mc);

    buttonMode (rec3_mc);

    buttonMode (rec4_mc);

    buttonMode (rec5_mc);

    buttonMode (rec6_mc);

    buttonMode (rec7_mc);

    buttonMode (rec8_mc);

    function enableButtons() {}

    for (var i: uint = 1; i<9;>

    ["rec" + String (i) + "_mc"] .mouseEnabled = true;

    }

    }

    function navigate1(e:MouseEvent):void {}

    navigateToURL (new URLRequest ("http://www.ebpearls.com"), "_self");

    enableButtons();

    e.currentTarget.mouseEnabled = false;

    may: MovieClip (e.currentTarget) .mouseEnabled = false;

    }

    function navigate2(e:MouseEvent):void {}

    trace ("2 button is clicked");

    enableButtons();

    e.currentTarget.mouseEnabled = false;

    may: MovieClip (e.currentTarget) .mouseEnabled = false;

    }

    function navigate3(e:MouseEvent):void {}

    trace ("3 button is clicked");

    enableButtons();

    e.currentTarget.mouseEnabled = false;

    may: MovieClip (e.currentTarget) .mouseEnabled = false;

    }

    function navigate4(e:MouseEvent):void {}

    trace ("4 button is clicked");

    etc...

    }

    function navigate5(e:MouseEvent):void {}

    trace ("5 button is clicked");

    }

    function navigate6(e:MouseEvent):void {}

    trace ("6 button is clicked");

    }

    function navigate7(e:MouseEvent):void {}

    trace ("7 button is clicked");

    }

    function navigate8(e:MouseEvent):void {}

    trace ("8 button is clicked");

    }

    rec1_mc.addEventListener (MouseEvent.Click, navigate1);

    rec2_mc.addEventListener (MouseEvent.Click, Navigate2);

    rec3_mc.addEventListener (MouseEvent.Click, navigate3);

    rec4_mc.addEventListener (MouseEvent.Click, navigate4);

    rec5_mc.addEventListener (MouseEvent.Click, navigate5);

    rec6_mc.addEventListener (MouseEvent.Click, navigate6);

    rec7_mc.addEventListener (MouseEvent.Click, navigate7);

    rec8_mc.addEventListener (MouseEvent.Click, navigate8);

  • How do reactivate you a printer. ?

    Printer was working fine and then would not print. Printer has shown is in "pause"? Printer is directly connected to my computer via a USB cable.

    Hello

    See if this link will help you > http://windows.microsoft.com/en-AU/windows7/View-pause-or-cancel-printing

    or see if there is a drop down menu right click on the printer icon and see if there is a tick next to pause then uncheck...

    Concerning

    GT4U

  • Button inside a clip controlling the main timeline

    Hello-

    I have a clip on the main stage - inside that movie clip is a button - I want that button to contol a function on the main timeline.

    example: the Script button

    closeAll_btn.addEventListener (MouseEvent.MOUSE_DOWN, goCloseAll);

    function goCloseAll(e:MouseEvent):void {}


    * do not know what to put here to activate "closeAllOpenMovieClips" on the main stage *


    }

    example: main stadium Timeline Script

    function closeAllOpenMovieClips (): void {}
    trek_mc.gotoAndStop (1);
    lost_arts_mc.gotoAndStop (1);
    rain_mc.gotoAndStop (1);
    vintage_mc.gotoAndStop (1);
    }


    do not know if I need a script more on chronology of main stadium that comes "from function."

    Thank you - Ben L

    If the button is in part 2, then the event listener so that it must be well on frame 2... or you could make the button visible/invisible betrween frames 1 and 2).

    But if you want to head back to your original approach...

    closeAll_btn.addEventListener (MouseEvent.MOUSE_DOWN, goCloseAll);

    function goCloseAll(e:MouseEvent):void {}

    MovieClip (root) .closeAllOpenMovieClips ();

    }

  • How do cancel you title overlays in the clips selected in Windows Movie Maker

    How to change or remove titles that have been superimposed in some video clips in Windows Movie Maker?

    In Vista Movie Maker 6... switch to timeline view
    and watch the track title/overlay.

    You can... right side click/delete...the titles.

  • How do switch you between multiple channels to indicate which channel to acquire the data from?

    I'm trying to builld a VI where I can have an option to enable or DISABLE multiple channels depending on the modules plugged into the chassis and then acquires the data of the channels which are turned on and where other acquisition parameters do not change. Is there any specific/switch where can I do this? Please answer as soon as possible. Its quite urgent. Thank you

    You use DAQmx?  To change the assignment of the data acquisition channels, you must close the currently open session and then create a new session with the new channel definition.  So the order of execution:

    Create task or virtual channel - read - clear task of triggering and synchronization of the configuration - set new channel list and to create a task - read - clear task, etc...

  • How to enable windows updates? Error: 0x8DDD0003 - Windows Update was disabled by your system administrator.

    Original title: how to enable windows updates?

    I get an error 0x8DDD0003 that indicates the windows updates are disabled by the administrator and the windows update does not appear on my menu start / all programs. The Microsoft Knowledge base offers a solution type gpedit.msc in the run, but the system does not find this file.

    Hi EPLER, MICHAELC

    (1) do you use the computer as an administrator?

    (2) since when are you facing this problem?

    (3) remember to make changes?

    (4) are you referring to the following Microsoft article?
    You receive an error message 'Administrators' only when you try to visit the Windows Update Web site or the Microsoft Update Web site

    It is sufficient to indicate the complete error message you receive.

    You can follow all the steps mentioned in the article (KB316524) above that solves this problem.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

  • How can I get the volume level bar back which was above my bar spots?

    I had this working OK last week, but I have changed a few settings. In fact, I got someone on this site to help me to restore the Volume control icon in my taskbar. I must have done something to remove it when I did my clean install of Windows XP and more.

    So there is a little volume thing that appears above the taskbar when I clicked on the volume upward or down arrows on my keyboard. But for some reason, which does not appear now. I know I messed with all my volume settings a lot so I could keep my volume high enough to listen to music on my pc, but not to blow up with Bang and pc sounds.

    I even had someone here teach me how to adjust each individual windows sound on my Cigma such C - Major Audio to control panel > sound & Audio Devices > sounds. I put them all at ZERO for a while, but I turned their back on now since I missed them too!

    So, how can I get this small volume return display?

    Open Control Panel and click on the sounds icon. Now you can activate the option to display the Volume icon in the taskbar.

  • Where is the button new rule CSS which was in the Properties tab?

    There was once a button more in the Properties tab.  In Dreamweaver CS6, it went.  I loaded in an image of the model, I want to type the * tag for the image and all the rest of the upper left will match coordinates 0,0.


    Sean

    You may be confusing the Properties window (window > properties) with secondary of the designer of the CSS Properties window (window > CSS Designer).

    If you're not used to the CSS designer, you can still use the old CSS panel by pressing Ctrl + Alt + Shift + P

  • How to get rid of the toolbar of firefox which has: disable, Cookies, CSS, forms, Images, etc.?

    I installed, but don't know how to uninstall it. It is said: Disable Cookies, CSS, forms, Images, information, miscellaneous, contour, resize, tools, view Source, and then there is a green check mark, a red X and another red x (it's under the toolbar of the sites that I use all the time. I'm really embarrassed that I can't understand it. I was quite the genius, but then 6 years ago I had a stroke. Now, I write with my hand left (the right side does not work) and I'm in a wheelchair. Thanx.

    You can attach a screenshot to show this toolbar?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • That do not exceed the maximum size of 1 MB

    Do you see an extension that could add this toolbar in the Extensions of the subject tab: page addons?

Maybe you are looking for

  • slow 14.0.1 to Firefox tabs

    Every day I open the following tabs to get my 'Tech News Fix'. Switching between the tabs with Firefox 14.0.1 is MUCH slower than with previous Firefox. Ars Technica http://arstechnica.com/ BetaNews http://www.betanews.com/ BetaNews - new software do

  • Merge (not replace) records in El Capitan way?

    Is there a way to merge large folders with several subfolders in El Capitan Finder? I have two folders on two different disks that have the same name with similar, not identical, files and subfolders they contain. Is there a native way to do this mer

  • Facing the camera is garbage

    My front facing camera on my Sony Xperia XA Ultra looks worse than the front of 8 megapixel camera on my Huawei G7. The main camera is beautiful, don't get me wrong. The front camera absolutely refuses to focus, but each image comes out blurry, even

  • Video tag in HTML5 and Webworks.

    Hello I am trying to build a webworks application that supports video playback to the MP4 format (possibly with a fallback to FLV). The video tag works in the emulator of waving (on chrome). On the device (the two BB10 Z - Dev B and Alpha Q BB10) vid

  • Remapping keys in Windows 7

    I want to remap the shift to the end button key and the end key for the caps lock button.