Buttons/code works do not systematically across frames/editing questions

Hi all


Total newbie here. I'm trying to produce something that really should be super simple but I must be missing some basics.


I use Flash Professional CC, a html5 canvas, Mac OS 10.8.5


I created 6 slides, I want users to be able to navigate. Home slide seems superior work. I created 5 buttons that go to the appropriate slide and stop using this code:



this.gotoschool.addEventListener ("click", fl_ClickToGoToAndStopAtFrame_11.bind (this));


function fl_ClickToGoToAndStopAtFrame_11()

{

this.gotoAndStop (2);

}



I created a back button, which gives it its own unique instance (back1) to the second slide (frame 1 - for some reason any code reading frame 1 0, frame 2 frame 1, etc) that sends users to the first slide using this code snippet:



This.back1.addEventListener ("click", fl_ClickToGoToAndStopAtFrame_0.bind (this));


function fl_ClickToGoToAndStopAtFrame_0()

{

this.gotoAndStop (0);

}



Then, I create another button on frame 3, (back.2) and added the same code snippet:



This.back2.addEventListener ("click", fl_ClickToGoToAndStopAtFrame_0.bind (this));


function fl_ClickToGoToAndStopAtFrame_0()

{

this.gotoAndStop (0);

}



However, when I saw or that you post, it is not even save it as a button, let alone date back to the first slide. I don't get the "pointy finger" cursor, it looks like a blank slide with no interactivity. No idea what I'm missing here? I tried to create a button and giving different instances on each image and using the same code snippet, but that don't seem to work either.




Here's a screenshot of my calendar and the scene:



Help, please!


Oh, and while I have you here, I noticed also that some items moved during publication and I have no idea why or how avoid this. It's particularly frustrating because I spent much time aligning text and images when they come out unparalleled and it seems really unprofessional.


Here is a screenshot, you'll see in the lower left corner, three text lines have changed and are not ' aligned with the corresponding colored dots. Compare that to the screenshot above scene. Also, you will see in the bottom right I had a yellow arrow next to the text 'back' (which I recently replaced it with a "<" symbol) which also misaligned when published.


Any help is appreciated.


Thank you! -Patrick

Screen Shot 2014-03-11 at 11.25.59 AM.png

Figured it out!

I had ignored this warning in the output window:

"Happy with the two Bitmaps and buttons can generate errors of local security in some browsers to run from the local file system."

It turns out that this image in the left column, the WellSAT oragne button is a bitmap. Apparently, evenunrelated buttons do not work if there is somewhere a bitmap image in the same frame. I replaced the logo with the text and the buttons worked.

I'm glad it works now, but it's quite frustrating to think I can't have both a bitmap image or a button on the same page. If anyone has any idea why this is the case and a solution, I would like to hear about it.

Thank you

Patrick

Tags: Adobe Animate

Similar Questions

  • HTML code works is not in 2015.2

    Hello world.

    I am a novice, so sorry in advance if I should know better...

    I have a HTML code integrated into my website. The code just Knack, a company of the database online. The code allows the Viewer to query the database and see customized results.

    The code worked perfectly fine in 2015.1

    Since the conversion of 2015.2, the code does not work on pages where there is Adobe already existing elements (for example a master page with header, navigation).

    The code works in 2015.2 If the page has nothing on it, but the HTML object (do not use a master page, only a fresh white page).

    I contacted Knack and they provided the following explanation of the problem with a suggestion to meet here for a solution.

    Below, I have send the Knack email with a screenshot of the error codes and a description of the issue from their end.

    Looking for Muse experts help to solve this problem and get my site up and running! Thank you is advanced.

    Greg

    KNACK...

    I've heard of our engineers - the problem is that your application cannot load the JavaScript of Muse libraries with your app integrated Knack (see image with errors below). Could you join Muse and see how you might be able to download these JS files manually on the server that hosts your site, since talent may not get back them? I would like to send the image in your message.

    Hello Dana,.

    I've just updated to this version, and now I can't copy anything, given that the program crashes.

    It goes at a bad time... haha

    Thank you!

    Best,

    Frine

  • Dash shortcut keyboard code works do not?

    Work on a new website, I started to work on my old laptop (macbook white) with Dreamweaver 5.0 is installed. When it got too complex for the small screen, I took the project to my work computer (Mac Pro) and continued his work in Dreamweaver CC. On both computers, the shortcut for "exit code" works as advertised in the help files.

    Tonight, I took the project back home and continued to work on my new laptop (MacBookPro 17 "). On this laptop I have had installed CS6 so I continued to work on the CS6. But for some reason any keyboard shortcuts for 'code removal' didn't work. There is no shortcut behind these commands in the Edit menu. I found this very annoying, so I installed CC on this laptop too. After installation, I took the prefs on the cloud and expected shortcuts keyboard to work, but luck bo...

    I then quit Dreamweaver, replaced the file Shortcut.js keyboard with my Mac Pro. Still no go.

    My work computer running OS x 10.8, my two laptops run OS x 10.9. Therefore, if a shortcuts are somehow reserved by the system, I guess they should not work on my old laptop.

    Any suggestions?

    Thank you


    A

    Judge that there is no shortcut associated with these orders. I tried to add shortcuts, but that doesn't work anymore. I select the command, click the + and press the desired key combination (shift + command + >). The window disappears. Probably because the ">" is also the "." and '-command.' is the abbreviation for "Cancel"...

    I did some more digging and found the shortcuts are stored in the Menus.xml file, buried deep in the folder Application Support/Adobe etc. But this file is only there after making a duplicate of the original keyboard settings. I opened this file (in Dreamweaver) and found that the shortcuts for dash/raise the code are here, but for some reason any that is ignored by Dreamweaver. I removed Dreamweaver of the computer and re-installed, no chance.

    I made a new set, has opened the new xml file and first removed the shortcuts, save the file, added shortcuts and saved again. Now they work.

    But still, I would like to know why he didn't in the first place...

  • Captivate swf issues navigation - buttons sometimes work, sometimes not

    I have a single file Captivate 5.5 with 100 + slides. I have the back and buttons next on most of the slides, as well as navigation buttons to slides of early for the various sections in the module.

    Some nav buttons work well all the time, some never work right and some are intermittent - sometimes they work, sometimes they don't. When they do not they either go to the wrong slide, nothing happens.

    I'm puzzled why this is happening. The properties of the buttons that work are identical to those that are not. It is possible that I have slides quiz grouped throughout the module. I wonder if the problem might be related to that.

    Any ideas?

    -Stuart

    Hi Stuart,

    The malfunction buttons are placed on Quiz slides?

    Can you copy and paste all the slides to a new empty project at the same resolution and republish that. (Note, you must deselect the result Quiz slide before copying, as it can ' be copied)

    Do see you the project locally or on LMS?

    Thank you

    Anjaneai

  • Action Script 3 code works does not start and stop button?

    OK so I have what I have created simple animations of a circle that moves from one side of the stage to the other. I have added a new layer and named her buttons. On this layer, I added 2 buttons. One for the beginning and another to stop. The goal is to get my circle to pass from one side of the stage to the other, but be able to use my buttons so that I can start and stop times random animations during playback. I've corrected all my faults of the compiler now the problem is that whenever I click on the start or the stop button, I get an error output. I have a 3rd layer which is called actions and that's where all my code is displayed. I removed this layer and put my code in the first frame of the layer of buttons to see if that would change anything but I still get the same errors of output. So I just added back my layer actions. What could I do it wrong? I made sure to name all of my video clips and buttons correctly and I even added an instance name for them.

    Here is my code and errors I get when I press play and stop button - test

    start_btn.addEventListener (MouseEvent.CLICK, startCircle);

    stop_btn.addEventListener (MouseEvent.CLICK, stopCircle);

    function startCircle(e:MouseEvent):void {}

    Circle.Play ();

    }

    function stopCircle(e:MouseEvent):void {}

    Circle.Stop ();

    }


    green_btn.addEventListener (MouseEvent.CLICK, greenCircle);

    red_btn.addEventListener (MouseEvent.CLICK, redCircle);

    function greenCircle(e:MouseEvent):void {}

    Circle.Play ();

    }

    function redCircle(e:MouseEvent):void {}

    Circle.Stop ();

    }

    Here's my output errors-

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at exercise2_fla::MainTimeline/greenCircle()

    What timeline you want to stop?

  • Button controls works only not on Satellite A60

    The controls on my A60 buttons no longer work. I tried to reinstall from CD, but I get a message saying that I have to uninstall and reinstall. I tried to uninstall via Add/Remove Programs, but appears not to have worked, the element of control still appears in the list even after a reboot. Does anyone know how to solve this problem.

    Thank you in advance.

    Try also reinstalling the common modules.
    Don't forget to restart after removal of the first version.

  • DV9500T CTO QUICKPLAY BUTTON MUTE WORKS BUT NOT WILL SWITCH COLORS - BLUE STAYS ALL THE TIME

    I've upgraded to Windows 7 and everything works except the change color button mute of QuickPlay.  It remains blue all the time EXCEPT at startup when it becomes red or orange, then back to blue.

    He cut the sound, but in low light conditions, it's frustrating to always have to "wonder" If the sound is muted or not.  I tried several drivers but nothing works.

    HP QuickPlay Web sp38361 update

    sp44777.exe

    sp38171.exe

    It drives me crazy because I managed to install a driver on a HP of friends with no problems.  It is a pilot who has corrected the error of acpi\hp0006 in Device Manager.  After this installation, its button mute changed to red (or orange) and the problem was solved.  I am showing no abnormalities in the Device Manager.

    Thank you

    Jeff

    HP DV9500T CTO

    Windows 7 Ultimate 32 bit

    4 GB of RAM (shows only 2 GB)

    wimblus ,

    Bingo, I went on the Realtek site, downloaded the driver, installed and now I get the red button when the sound is muted.  I want to verrrrrrrrrryyyyyyyyyy thank you very much for this tip.

    I also want to thank all those who contributed to a solution to my problem.  Your efforts may not possibly be offset by a simple thank you, but I hope that karma you all extended to me in my research goes back to you in spades.

    Driver installed:

    Codecs Audio high definition

    http://www.Realtek.com/downloads/downloadsView.aspx?langid=1&PNid=24&PFID=24&level=4&Conn=3&DownTypeID=3&GETDOWN=false

    Vista, Windows7 Driver(32/64 bits) driver only (executable file) R2.47 9/4/2010 55873 k

    Thanks wimblus and everyone.

    Jeff

  • went on desktop Windows 7 activation code works only not 10 on desktop

    Have two computers running Office running sp1, 7, and 10. Desktop has been turned off for a while the transition is complete. personal decision to keep 7 all the way, now Office says that my activation is not authentic. in any case I can't find my original 7 activation code.  What happened to her.

    To analyze and solve problems for Activation and Validation, we need to see a full copy of the diagnostic report produced by the MGADiag tool (download and save to the desktop -http://go.microsoft.com/fwlink/?linkid=52012 )
    Once downloaded, run the tool.
    Click on the button continue, after a short time, continue button will change to a copy button.
    Click the copy button in the tool (ignore the error at this stage) and then paste (with r-click and paste or Ctrl + V) in your message.
  • HTML5 reference code works is not inside the Javascript on DW CS6 function

    Hello

    I'm working on Dreamweaver CS6 and indicators of code does not work as expected when you write Javascript code.

    The minute that I insert a code hinting feature no longer appears the HTML5 elements.

    dw-with-function.gif

    Should I remove the function then him reappears indicators of HTML5.

    dw-no-function.gif

    How can I get the code referring to work when I add in the function?

    Thank you

    Herman

    Thank you for reporting this issue, Herman!

    We have recorded a bug for it and you're tracking internally.

  • Loading multiple SWFs and saving them (code works is not under Chrome and Firefox 23)

    Hey guys,.

    Anyone has an idea why this suddenly does not work? (It works under internet explore but not firefox and chrome)

    The code below is placed on my main swf to preload all my external swf and store them for not having to wait too long to get there.

    Thank you guys.

    I took the code by btw: http://www.beautifycode.com/the-finer-art-of-loading-2-handling-multiple-swfs#snippet

    I am running flash player 11.8.800.94... He used to work under Firefox and Chrome


    var _swfLoader:Loader;

    var _swfRequest:URLRequest;



    var _swfPathArr:Array = new Array)

    '00.swf', '01.swf', '02.swf'

    );



    var _swfClipsArr:Array = new Array();

    var _swfTempClip:MovieClip;

    var _loadedSWFs:int;



    startLoading (_swfPathArr);



    function startLoading(pathArr:Array):void {}

    _swfLoader = new Loader();

    _swfRequest = new URLRequest();



    loadSWF(pathArr[1]);

    };



    function loadSWF(path:String):void {}

    setupListeners (_swfLoader.contentLoaderInfo);



    _swfRequest.URL = path;

    _swfLoader.load (_swfRequest);

    };



    function setupListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.COMPLETE, onSwfComplete);

    };



    function onSwfComplete(event:Event):void {}

    event.target.removeEventListener (Event.COMPLETE, onSwfComplete);



    _swfTempClip = event.target.content;

    _swfTempClip.customID = _loadedSWFs;

    _swfClipsArr.push (_swfTempClip);



    If (_loadedSWFs < _swfPathArr.length - 1) {}

    _loadedSWFs ++;

    loadSWF (_swfPathArr [_loadedSWFs]);

    } else {}



    //

    }

    };

    I have no problem with ff and I don't see any problem in chrome.

    You probably have a typo in if:

    loadSWF(pathArr[1]);

    should be

    loadSWF(pathArr[0]);

  • Adobe AIR for Android as3 codes work only not for this one project

    I am using the accelerometer in my flash game, which works for all the other projects I'm trying, but for some reason any on a project if I try to use it I get, using the same code that I've used before, such as this one.

    1046: type was not found or is not a constant of compilation: accelerometer.

    1180: call to a method may be undefined, accelerometer.

    It is a quite old file, not if old, then, are there files I have to add to make it work or I need to change the settings? It's very frustrating, I don't know what the problem might be. Can someone help me?

    The error message indicates it does not find the class.  Make sure you import it:

    import flash.sensors.Accelerometer;

  • The code works is not on deployment

    This works:

    function onMouseOver_txtPPMB(e:MouseEvent):void
    {
    Mouse.Cursor = "Button";

    mcPPMB.alpha = 1;
    mcASB.alpha =. 5;
    mcISO.alpha =. 5;
    mcEA.alpha =. 5;
    mcAdmin.alpha =. 5;

    mcPPMB.scaleX = 1.25;
    mcPPMB.scaleY = 1.25;
    }

    It's not:

    function onClick_txtPPMB(e:MouseEvent):void
    {
    doSynopsis (1);
    }

    function doSynopsis(numBranch:Number):void {}
    var myXML:XML;
    var myLoader:URLLoader = new URLLoader();


    myLoader.load (new URLRequest ("content.xml"));
    myLoader.addEventListener (Event.COMPLETE, processXML);


    function processXML(e:Event):void {}
    var strTextBox:String;
    var style: StyleSheet = new stylesheet;


    styles.setStyle ("body", {}
    color: "#FFFFFF."
    fontFamily: "Arial, Helvetica, sans-serif"
    fontSize: '12'.
    display: "block".
    });
    styles.setStyle ("title", {}
    Color: ' #000000 ', '.
    fontFamily: "Arial, Helvetica, sans-serif"
    fontSize: '18'.
    display: "block"
    fontWeight: "bold".
    });
    styles.setStyle ("a: link", {})
    Color: "#FF0000".
    });
    styles.setStyle ("a: hover", {})
    textDecoration: 'underline '.
    });

    myText.textField.styleSheet = styles;

    myXML = new XML (e.target.data);

    Switch (numBranch) {}
    case 0:
    break;
    case 1:
    myText.textField.background = true;
    myText.textField.backgroundColor = myXML.Branch [0]. PPMB.attribute ("BGCOLOR");

    strTextBox = "< body >";
    strTextBox += myXML.Branch [0]. PPMB;
    strTextBox += ' < / body > ";*/
    break;
    case 2:
    myText.textField.background = true;
    myText.textField.backgroundColor = myXML.Branch [0]. ADSB.attribute ("BGCOLOR");
    strTextBox = "< body >";
    strTextBox += myXML.Branch [0]. ADSB;
    strTextBox += ' < / body > ";
    break;
    by default:
    trace ("the number is not equal to 0, 1, 2, or 3");
    }
    myText.visible = true;
    myText.textField.htmlText = strTextBox;

    }
    }

    When I hover over the text area (not the textarea component), the event fires and the alpha do their thing.  When I click on the text box, the textarea component will not appear.  Everything works fine in development.  The .swf works fine on my PC, but when I deploy (and the XML file resides in the same directory as the .swf), nothing happens when I click on the text box.

    Thoughts?

    Thank you.

    It seems that the Flash file is not in the same directory as the html (aspx) page.  Anything Flash file loads should be targeted as if the Flash file is in the same directory as the web page.  Then...

    myLoader.load (new URLRequest ("content.xml"));

    more would probably have to be...

    myLoader.load (new URLRequest("Flash/content.xml"));

    If the xml file is located in the same folder as the swf file

  • The code works is not in overall models of different projects

    On a traditional white project, the code below works... I am able to get my joystick readings. However, when I try to run the same code on a model of myRIO, code never gets to run due to the error-363031 (from to highlight execution).

    How can I fix?

    In order to keep the necessary equipment, put in place (broomstick in computer & myRIO controlled via wifi), shared variables must be created under the myRIO target that is written in by screw under the lens of the workstation. This allows the data to be passed between different targets.

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • Video doesn't work is not right in the edition

    So I've upgraded to windows 10 and then for some strange reason, video clips from my camera will not work.

    The video clips are AVI, recorded on a Kodak Z5010, I also tried my webcam it is a Logitech C920 he puts the MP4 clips.

    It seems to work fine with type WMV clips.

    2 major problems only seem to be that they will not be rendered and have no audio.

    I think it might be a type of codec problem, but I have no idea how to solve this problem

    What do you think would be the problem?

    I use first elements 14 by the way.

    Clear your Cache of media rename the avi file is in.

Maybe you are looking for