Why the button works only in test scene, not test animation?

Hi all, I have a very frustrating problem with my flash project.

I have two scenes in my flash animation, each of them has a lot of links and navigation within itself. And there is a button that takes you from one scene to the other.

When I test scene 2, everything works fine. However, when I test the entire film, scene 2 navigation will not work and there is no error!

Did someone just thought about what goes wrong?

I use Flash CS6.

Thank you!

Change the mouse to MOUSE_DOWN event type, i.e.:

StoreHomeBtn.addEventListener (MouseEvent.MOUSE_DOWN, StoreHomeonClicked);

Tags: Adobe Animate

Similar Questions

  • The button works only once?

    The problem:

    Play the animation, and after clicking the button once it no longer works. The button takes you to the frame labeled "shake". I want to continue to make you "shake" whenever he's in a hurry, but it's not.

    The installation program

    I have a button inside a clip - actually its 2 inside. The first MC crosses and stops on the stop(); framework and that you click on the button that sends the playback head to the section titled "shake" which plays the next MC with the same button inside. I put the button action on its own layer on the first image. The length of this sequence of buttons from the first keyframe of the action is the length of time to the other MC 2.

    The Code

    mcButton.shakeButton.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(event:MouseEvent):void {}

    gotoAndPlay ("shake");

    }

    What I found

    I searched the forum/web and in all cases that I met the problem above the toggle button is not the length of the visible button or other event listeners are in conflict with it. I don't know if one of them is my question. For 1 length of the frame of my button is so much time to the MC, which is the total length of the main timeline. If TI where a conflicting event listener to turn off that button should not play at all, because the event even listeners play before it than those who play after him. If I'm scratching my head for a direction.

    Are the 2 above known issues I found the problem that I have or do you know if it's something else?

    Thanks in advance!

    The second mc is nowhere in sight when this code runs within the Framework 1.  If the code for frame 1 is supposed to aim at the second mc to assign an event listener, it cannot.  Either the mc must be moved when the code is or the code should run when the mc is.  If you get no error messages, I have to wonder why.

    Functions and variables can be shared spread along a timeline in how you allocate this layer, but the code that runs, like play(), stop() etc, addEventListener() when you enter a frame, it happens that within this framework and does not extend to other images.

    What you can do, is have the second mc start frame 1 and make it invisible in this framework and then more later to frame 33 visible Tower.  Otherwise, you must have the event listener for the second mc code down into the fabric of 33.

  • all the buttons work only not on the monitor source except the space bar

    I just downloaded a trial of adobe first cc 2015 but unable to do all the regular stuff in my source window. all buttons are unresponsive except the space bar (it will play the file). I can also drag the video in the timeline, but still unable to make other edits using the buttons... any ideas anyone?

    Try this:

    Restart your computer, hold down the shift + alt key while opening the first up to the Welcome screen.

  • Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    I have already updated to the last DC v15.009.20077...

    So I found a way, if I do it just right, it works (with the file, click the "tiny" file and then save as. I made the mistake of first pressing the home much more first. Really not intuitive or easy to use even if... Looks like you have replaced the button "save under" with the "save in the cloud." We use mettle at work, and the cloud of Adobe is irrelevant for me...

  • Why the button new folder does not work

    the button create a new folder does not work

    Hello

    You have a common problem with Windows 7. The work that I and many others use is a utility called FileMenu Tools. You can download safely from this link: http://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/FileMenu-Tools-Portable.shtml .

    After downloading, install the program. Each option is checked by default. I would be much more selective on this subject, otherwise your context menu will be a full page long! When the main window opens, you will see a list on the right side of all the elements that can be added to the context menu. Start weeding through the list and every one to take away, you don't need the United Nationsby checking the box.

    Once you have completed your selection (de-selections) make sure that you click the green check mark in the row of icons at the top of the left window of the interface to 'Apply' of your choice. The program can do much more, but that answers your specific question. I am told that the program has a good help file, so try here if you are interested.

    Let me know how you fare.

    Kind regards

    BearPup

  • Why the buttons do not work in presenter 9?

    I placed a glossary on a blade so that learners can jump the glossary of terms and then I put another object for learners can jump back in the slide, there was. But actions do not work on the two buttons. Thus, the button works to directly access the lexicon, it won't work for return to last visited slide. It works when I Preview in PowerPoint, but not when I saw or publish using Adobe Presenter.

    Anyone can shed some light on this?

    Thank you

    Anita

    I wanted to send you an email that I found the solution. The glossary is set to full page and hierarchy, even if you align your button to be placed at the front of the page. If the value smaller glossary and make sure that it does not overlap the button.

    Now, I'm having a problem with an error message after trying to use the Advanced setting in question quiz, "presenter is facing a problem with the presentation. Try to save your work on an another powerpoint and restart powerpoint. If this does not work... come here, I save in a different powerpoint but it did not work. It wont let me record the changes made to the quiz more and the police is all messed.

    Deb

  • Buttons work only once or twice

    Hi guys, I'm still new to Flash and I really need help. Here is the story:

    so I do a simple digital comics right now, that shows one or two signs/pictures/drawings at a time with only 3 buttons to navigate (a next button, an exit button and a page selection button). Here is some info:

    -J' use CS6

    -J' I use simple tweenings for each photo (fade in/out, queries, etc.)

    -J' have it will publish in 2 formats, .exe and .apk for android

    -J' have 7 scenes, 1-6 for the main comic and scene 7 for the selection menu of page (within a clip)

    -I only use video clips of 2, one for the intro animation and another for page selection menu I mentioned above

    -because I'm still a noob, I always use excerpts of code (sorry)

    -J' I mostly only use these code snippets: stop at this image, click here to go to frame and to play, click here to go on stage and play.

    -for the exit button, I use this code:

    button_e.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

    function fl_MouseClickHandler(event:MouseEvent):void

    {

    fscommand ("QUIT");

    --utiliser use for the next button, copy the following code:

    button_1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);

    function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void

    {

    gotoAndPlay (frame number);

    }

    for the page selection button, I use this code:

    b_page.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_40);

    function fl_ClickToGoToScene_40(event:MouseEvent):void

    {

    MovieClip (this.root) .gotoAndPlay (1, "scene 7");

    }

    Now, here's the problem:

    The page selection button worked fine initially. Then I click on the next button several times (lets say, from page 1, stage 1, I clicked the next button several times until I got to page 6, scene 2). Then I click the page selection button that opened the clip. Inside of this video clip is several buttons another, each of them takes me on different pages. For example, I clicked on a button linked to page 7 (inside the scene 2). Furthermore, the code goes like this:

    b_7.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_3);

    function fl_ClickToGoToScene_3(event:MouseEvent):void

    {

    MovieClip (this.root) .gotoAndPlay (500, "Scène 2");

    }

    Still no problem detected. Then I continue to click the next button to read the rest of the comic strip. At this point, the page selection button (and the exit button) has stopped working. Clicked on it so many times and nothing happened. So, just like what I wrote in the title, it does only once or twice.

    Any suggestions?  (I wanted to download the .fla so you guys can take a look, but the size is too much )

    Screenshot:

    http://S25.postimg.org/azarwqvzj/screenie.jpg

    Thank you!

    put the button of your first scene on its own layer at the beginning of the stage and set its name.  extend his chronology up to the end of the scene.  test.  all the problems?

    If not, add additional keyframes in the layer of the button according to the needs of your project, making sure NOT to remove the button no keyframes.  test.  all the problems?

    If this is not the case, do the same for the other buttons in the other scenes.

    If you want your button to NOT appear in some frameworks do NOT for this key frame.  set its visible property to false or using removeChild.

  • iPod stopped playing in the middle of a song. The screen still shows the song. None of the buttons work. Cannot close the iPod is facing down. How can I fix it?

    my iPod, the generation classic 32 GB, stopped playing in the middle of a song. The screen is stuck on this song. None of the buttons work.  I can't stop the iPod.  How can I fix it?

    Hi, lesliefromhowell!

    Thank you for reaching out by Apple Support communities. After reading your post, I understand that your iPod Classic does not. I count on my iPod for music on the go and want to make sure that you can use your own without problem!

    Relying on the buttons have not helped get the iPod to start playing or to restart, please follow the steps outlined in the article below to reset your iPod.

    Learn how to reset your iPod

    You'll want to use the instructions under the "iPod, iPod (scroll wheel), iPod (touch wheel), and iPod (dock connector)" section. These instructions are the following:

    iPod, iPod (scroll wheel), iPod (touch wheel), and iPod (dock connector)

    To reset your iPod, follow these steps:

    1. Slide the Hold switch to the locked position and then come back!
    2. Hold down Menu and Play/Pause all buttons until you see the logo Apple/iPod (about 6-8 seconds). You may need to repeat this step.

    If you can always reset your iPod, follow these steps:

    1. Connect your iPod to a power adapter and plug the adapter into a power outlet.
      You can also connect your iPod to your computer. Make sure that the computer is on and that it is not set to go to sleep.
    2. Try resetting your iPod again.

    Good listening!

  • Equium A110-233 stops using the WiFi and the fans work only 3 sec

    I bought an A110 - 233 20/09/06. It works very well for about 1 hour then it interrupts the communication via the wireless network connection status States he is always connected, sometimes but not always the configuration window indicates that the without wire is cut and I should turn it on at the bottom of the window (there is lit) processor Intel Pro.

    I brought the world PC waiting for a replacement but I had to sit for an hour trying to reproduce the error, we couldn't go wrong but I have discovered that it does only when running on the network.

    Cooling fan only works for 1-3 seconds at a time, is it possible to increase this number.

    Any help would be appreciated
    Bob

    Hello

    If you want to change the properties of cooling module you must do in the standby power settings.
    You should know that the energy saver uses different modes of consumption. The laptop is using another mode of energy if the AC adapter is plugged and another mode of power if the laptop works only with the battery.
    On the basis of energy saver menu, you will be able to change the method of cooling. This option controls the fan.

    It is not easy to solve the problem of WLAN communication. I mean that there is no general solution. Additional it is not easy to solve because the issue doesn't happen always, but sometimes only. Perhaps the intensity of the signal is sometimes lower and therefore, the configuration software WLan Intel reports that the wireless network is turned off.

    In addition, you should also check the Wlan card properties. You will find that the properties in Device Manager-> right click on the wireless network card.
    Here, you must select the Advanced tab.
    You should find a few interesting options such as energy saving (disable) or the strength of the signal (enable).

    In addition, you can try to update the WLan driver. Maybe a new version is available.

    By the way: you should also know that some 3rd party application could have a bad influence on WLan communication.

  • Why the button in movieclip produces Error #1034

    I have a menu sliding with several clips.  I want to add buttons to each Panel to link to a PDF file.  The button works, but the code produces the following error:

    TypeError: Error #1034: Type coercion failed: cannot convert flash.display::SimpleButton@114e2941 to flash.display.MovieClip.

    at slideshow_fla::MainTimeline/onClick()

    I tried to bypass the portion of interpolation of Panel by searching for type of child, but it does not seem to ignore the button.  What Miss me?

    Import gs.*;

    Gs.easing import. *;

    S1.props = {lx:0, rx: 350, ind:1};

    S2.props = {lx:36.45, rx: 386.45, ind:2};

    S3.props = {lx:72.90, rx: 422.95, ind:3};

    S4.props = {lx:109.40, rx: 459.45, ind:4};

    S5.props = {lx:145.85, rx: 495.90, ind:5};

    S6.props = {lx:182.35, rx: 532,40, ind:6};

    S7.props = {lx:218.80, rx: 568.85, ind:7};

    S8.props = {lx:255.25, rx: 605.30, ind:8};

    S9.props = {lx:291.75, rx: 641.80, ind:9};

    S10.props = {lx:328.20, rx: 678.25, ind:10};

    S11.props = {lx:364.70, rx: 714.45, ind:11};

    S12.props = {lx:401.15, rx: 751.20, ind:12};

    S13.props = {lx:437.60, rx: 787.65, ind:13};

    S14.props = {lx:474.10, rx: 824.15, ind:14};

    S15.props = {lx:510.55, rx: 860.60, ind:15};

    S16.props = {lx:547.05, rx: 897.10, ind:16};

    S17.props = {lx:583.50, rx: 933.55, ind:17};

    S1.addEventListener (MouseEvent.CLICK, onClick);

    S2.addEventListener (MouseEvent.CLICK, onClick);

    S3.addEventListener (MouseEvent.CLICK, onClick);

    S4.addEventListener (MouseEvent.CLICK, onClick);

    S5.addEventListener (MouseEvent.CLICK, onClick);

    S6.addEventListener (MouseEvent.CLICK, onClick);

    S7.addEventListener (MouseEvent.CLICK, onClick);

    S8.addEventListener (MouseEvent.CLICK, onClick);

    S9.addEventListener (MouseEvent.CLICK, onClick);

    S10.addEventListener (MouseEvent.CLICK, onClick);

    S11.addEventListener (MouseEvent.CLICK, onClick);

    S12.addEventListener (MouseEvent.CLICK, onClick);

    S13.addEventListener (MouseEvent.CLICK, onClick);

    S14.addEventListener (MouseEvent.CLICK, onClick);

    S15.addEventListener (MouseEvent.CLICK, onClick);

    S16.addEventListener (MouseEvent.CLICK, onClick);

    S17.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(e:MouseEvent):void

    {

    var click: MovieClip = MovieClip (e.target);

    for (var i: int = 0; i < numChildren; i ++)

    {

    If (getChildAt (i) is the MovieClip) {}

    var mc:MovieClip = MovieClip (getChildAt (i));

    If (mc.props.ind < = clicked.props.ind)

    TweenLite.to (mc, 1, {x: mc.props.lx, ease:Expo.easeOut});})

    on the other

    TweenLite.to (mc, 1, {x: mc.props.rx, ease:Expo.easeOut});})

    }

    }

    }

    S1. B1.addEventListener (MouseEvent.CLICK, onBtn1Press);

    function onBtn1Press(e:MouseEvent)

    {

    trace ("button 1 pressed");

    }

    You must enable debugging so you can see the line of code to the origin of the problem, but looking at your code, it looks like the problem:

    var click: MovieClip = MovieClip (e.target);

    Fix it

  • My account is active, but Adobe PDF Export ask me to sign up again. The system worked only once on my PC, using the Vista operating system.

    My account is active, but Adobe PDF Export ask me to sign up again. The system worked only once on my PC, using the Vista operating system.

    You must connect prove you are currently subscribed.

  • I have the code for an Adobe Creative Cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code?

    Hi, I have a problem with code for my Adobe Creative cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code? is a subscription to creative cloud of throughout the year.

    Probably you have a redemption code... especially if you did not purchase directly from Adobe

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    -or https://forums.adobe.com/thread/1572504

  • Continue button works only for publication in the swf format

    I created a quiz in Captivate and my options for success/failure in opening a URL on success.  I need to publish in flash (swf), but the button continue does not open the URL.  This works perfectly if I publish the file to .exe format.

    Here are my current settings (I traded my URL to the Web site of the BBC, while testing)

    Capture.PNG

    I use version 5.5

    Can anyone help?

    Have you set up the location of publication record as a location approved in your Flash Global security settings?  Otherwise, Google for information on how to do it.  This is probably the reason why your link does not work.

  • the Random var button works only not with the switch statement

    I have a button randomly on the erasure of the scene in. I'm testing button that fades in, because I have different URL according to the button it is on. Here is the code that I use, and which generates no errors... just does not work. I am unable to find the correct key, but do not work my switch statements. I don't know if it's one thing to syntax or another problem. Thank you!!

    var currentImage:MovieClip;

    var arrGrowing:Array = new Array (resume_mc, magazine_mc, suitcase_mc, monopoly_mc, superhero_mc, hat_mc,

    chair_mc, books_mc, lightbulb_mc);

    for (var i = 0; i < arrGrowing.length; i ++) {}

    arrGrowing [i] .alpha = 0;

    arrGrowing [i] .buttonMode = true;

    arrGrowing [i] .addEventListener (MouseEvent.CLICK, onButtonClick);

    }

    function initLoop (): void {}

    currentImage = arrGrowing [Math.floor (Math.random () * arrGrowing.length)];

    var exitTween:Tween = new Tween(currentImage,"alpha",Regular.easeOut,0,1,12,false);

    }

    function onButtonClick(e:MouseEvent):void {}
    switch (currentImage) {}
    case resumes:
    var url: String = "http://www.yahoo.com"; ""
    var req:URLRequest = new URLRequest (url);
    navigateToURL (req, "_self");
    break;
    }

    I don't see where CV refers to any thing implied by your code.  There is a resume_mc if that's what you're trying to test.

  • Keyboard shortcuts for the buttons works irregularly - why?

    When you use the access key for the button attributes, they work sometimes and not others. Three behaviors are observed:

    -use the accesskey times moves the focus and click on the button (correct behavior)

    -use the access key moves the focus only - do not by clicking on the button

    -use the accesskey does nothing

    These problems occur without change installation, restart, etc..

    What could cause this?

    Moreover, 3.6.28 works very well with the exact same web application.

    It might be useful to have a small script for conducting a census of the keyboard shortcuts page. You can open the web console (Ctrl + Shift + k), paste the following options next to the circumflex accent ("' >" ") and press ENTER. A new element is added at the end of the body with the results.

    var aks=document.querySelectorAll("a[accesskey], button[accesskey], input[accesskey]"); var out=document.createElement("pre"); for(var i=0; i<aks.length; i++) out.appendChild(document.createTextNode("Tag:'"+aks[i].nodeName+"'; id:'"+aks[i].id+"'; name:'"+aks[i].name+"'; key:'"+aks[i].getAttribute("accesskey")+"'\n")); document.body.appendChild(out);
    

Maybe you are looking for