Button navigation/problem

Help! I'm at my wits end.

I take an introductory class in Flash and working on a project for this class. Everything was going well until I started working on my navigation. I used the flat tube green buttons common library on the homepage and all the rest of the site used a dark color button I duplicated and colored from the Green flat tube button.

My problem:

I have an actionscript layer that should work throughout the entire timeline but is not. Originally, I had a keyframe for the frame that contained the green buttons and the other which stretched the length of the entire timeline, containing all the code for the buttons. I put scrapped that and tried to combine code with what was to the keyframe of the work who controlled the green buttons on the homepage. I had used snippets of code first, but also tried to remove all that and just do it by hand, but that doesn't seem to make a difference.

I don't know what the problem is: the ActionScript? The buttons? Some random glitch? I would tend to think that it's something weird, I do with the script, but I wrote it how it seems to work on pages that work properly. And I do not think that it is just dark buttons because I also tried to do a button 'next' a clipart image, who also works hard.

Any ideas? Suggestions? The assignment should soon and I am at a loss what to try next. I will be happy to clarify anything if something is confusing the way I said.

((Oh, également: après avoir regardé un peu sur le forum, mon sonne un peu comme celui-ci: http://forums.adobe.com/message/3113656#3113656 ))

Not exactly the same, but the buttons have a similar problem. When I first noticed this problem, I have hade three keyframes with actionscript, 1 which apply to the first image, the second applied to the second and the third image was script that applied to buttons for the rest of the document. With this in mind...

OK my site on order on the timeline goes on and on: homepage, homepage (w / the green buttons), on (dark buttons) page, history page (dark buttons), etc. The buttons work on the on the page - I go to click on the green button on the home page, go to the about page and the home page (via the black button) no problem. If I say history page and try to get back to the homepage (via the black button) it will not work. If I'm going to the page of the homepage first, then go to the history, I could go back to the home page. It's really weird!

I have now grouped the second and third frame of actionscript and not even a navigation of the on the page works, but I thought that the thing which I explained above looked like the problem of the other person so I wanted to mention.))

Thank you!! I pasted the code of the button below. The last two buttons are those that do not work and the rest of the script applies to keys that are functioning normally.

import flash.events.MouseEvent;

Stop();

about_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameThree);

function fl_ClickToGoToAndStopAtFrameThree(event:MouseEvent):void

{

gotoAndStop (3);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

history_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameFour);

function fl_ClickToGoToAndStopAtFrameFour(event:MouseEvent):void

{

gotoAndStop (4);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

basics_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameSix);

function fl_ClickToGoToAndStopAtFrameSix(event:MouseEvent):void

{

gotoAndStop (5);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

shoes_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameSeven);

function fl_ClickToGoToAndStopAtFrameSeven(event:MouseEvent):void

{

gotoAndStop (6);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

benefits_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameEight);

function fl_ClickToGoToAndStopAtFrameEight(event:MouseEvent):void

{

gotoAndStop (7);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

pictures_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameNine);

function fl_ClickToGoToAndStopAtFrameNine(event:MouseEvent):void

{

gotoAndStop (8);

}

/ * Click to supervise and stop

By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and stop the movie.

Can be used in the main timeline, or on timelines of film clip.

Directions for use:

1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.

*/

resources_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrameTen);

function fl_ClickToGoToAndStopAtFrameTen(event:MouseEvent):void

{

gotoAndStop (9);

}

homeDark_btn.addEventListener (MouseEvent.CLICK, ClickAndPlay_One);

function ClickAndPlay_One(event:MouseEvent):void

{

gotoAndStop (2);

}

celtic_btn.addEventListener (MouseEvent.CLICK, JumpAndPlay_One);

function JumpAndPlay_One(event:MouseEvent):void

{

gotoAndStop (75)

}

You mentioned have code on different frameworks and how the framework and the back worked, but the story goes about page you could not go back.  Looks like your code was on the subject of chassis you skipped by going directly to the plot of the story.  If you ignored this framework you skipped assigning listeners to the buttons.

An alternative approach to consider is to have all of your buttons from 1 chassis and control their visibility rather than assigning the code so that they work when you move around chronology

Tags: Adobe Animate

Similar Questions

  • I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    Don't know how to get the exact button back (sorry) I dig around too much to do...
    But! Today, I found by chance that by clicking and holding on the back button the same box to popup in last-12-sites and you can stream on the list to return to that particular site.

    Not exactly what you (and me) tried but at least the functionality is there.

    Good luck!

  • Button formatting problem

    I'm having the button formatting problems in the footer of a muse (A Virtual Colorado fly fishing Field Guide) site and wonder if anyone can give some insight into what goes wrong.

    There are two buttons.  The 'Business' button text is formatted as bold Helvetica 14 points.  The 'Links' button is the same formatting, but has also 10 points 'Space before' in order to center the text in the button.  When I go to the home page of the site, Business button shows the text at the top of the key and the links in the Center as planned.  If I navigate to any another page the text of the button Business has been moved to the Center and the text of links to the bottom of the button and the button links has stretched vertically.

    Why would the buttons have this behavior?

    Just rebuilt the button.  Rather than start with a text box, used the State of the widget library button.  That seems to fix the problem.

  • Contextual navigation problem

    Since I'm not able to post a new discussion, and I have a problem with this same popup, I'll post here, but everything first, I'm the only one to create new threads and it simply not appear on discussions / my activities?

    My problem, I have a problem of Navigation:

    I have this popup:

    <af:popup childCreation="deferred" autoCancel="disabled" id="p2"
                                                      binding="#{AcessoMB.popup}">
                                                <af:dialog id="d3" title="Mesa em uso" type="none">
                                                    <af:outputText clientComponent="true" value="O usuario #{AcessoMB.usuarioLogado} está operando a Mesa. Você deseja forçar 'logof' deste Usuário?" id="ot3"
                                                                   inlineStyle="text-align:center; vertical-align:middle;"/>
                                                    <f:facet name="buttonBar">
                                                        <af:panelGroupLayout layout="horizontal" halign="right"
                                                                             styleClass="AFStretchWidth">
                                                           <af:commandButton text="Yes" id="yes" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>
                                                           <af:commandButton text="No" id="no" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>         
                                                         </af:panelGroupLayout>
                                                    </f:facet>
                                                </af:dialog>
                                            </af:popup>
    

    It's the managedBean:

    public static final String GOTO_MAIN = "goToMainExecucao";
    
    public String popUpAction(ActionEvent actionEvent) {
            UIComponent source = (UIComponent)actionEvent.getSource();
            if (source.getId().equals("yes")) {
                removeUsuarioMesa();
                adicionaUsuarioMesa();
                RichPopup popup = getPopup();
                popup.hide();
                return GOTO_MAIN;
            }
            RichPopup popup = getPopup(); // popup binding
            popup.hide();
            return null;
        }
    

    and faces - config.xml:

    <navigation-rule>
        <from-view-id>/execucao/acesso.jsf</from-view-id>
        <navigation-case>
          <from-outcome>goToMainExecucao</from-outcome>
          <to-view-id>/execucao/main.jsf</to-view-id>
        </navigation-case>
      </navigation-rule>
    

    When I get back "GOTO_MAIN" in other methods on AcessoMB it forwards me to main.jsf. But when I try to do it on the popupAction method, it transfers me, any ideas why?

    Thanks, Icaro

    Hello

    don't think that the code works on other pages. JSF navigation comes from the 'action' property and not the actionListener property. So either

    1. change the method to call from the action (set the 2 methods, a Yes and a no)

    2. continue to use actionListener but then hid the button that you call the listener to action

    HiddenBut = RichButton... Miss...

    ActionEvent ae = new ActionEvent (hiddenBut);

    AE.queue ();

    and ensure that the hidden button in the case of navigation in the action property has the value

    Frank

  • Files in the computer navigation problems

    I have a recurring problem, IE9 and FF7. Whenever a site uses flash to transfer a file, clicking the button transfer never opens the navigation window, this happens (for example) for the new Yahoo! Mail. I have the problem on my two computers (home & work) and I tried several times to update Flash to solve my problem. Can someone help me? TKS.

    Nothing happens if I delete all settings and data navigation. BUT on the other end, I installed the debugger (IE) and this was the error:

    : Error #2086: a setting in the mms.cfg file prohibits this FileReference request.

    at flash.net::FileReferenceList/browse()

    to upload / browse)

    to upload / handleMouseClick)

    The administrator edited the flash configuration file to not allow file download! I changed

    FileUploadDisable = 1 FileUploadDisable = 0

    And that's all!

  • Navigation problem: play everything and play the chapters

    Hello

    need help. I can make this navigation with a unique scenario:

    1. main menu: button "play all the" + button "chapter Menu.

    2 Chapter menu: buttons should play a chapter with end return action in menu chapter

    Problem: Action play all the stops and cannot replace the action of end of chapters

    How do I navigate? Thanks before

    Two ways:

    1. create a chapter Playlist, and add all the chapters in the

    Chronology of the playlist.  The button play a link to the chapter

    Reading list.

    2. remove all the Actions chapter and link the Play All button for

    the chronology.  Then create a Playlist for each individual chapter

    Chapter and set the action to the end of each reading list to return to the

    menu.

    Option #1 works best if there is a natural break between chapters (like

    a fade in/out) because the playlist playback is paused

    momentarily between each chapter.  The duration of the break (in general)

    depends on the quality of the player.

    #2 option works best if you need a reading between chapters

    during the operation to play together.

    As always, be sure to remove each substitution throughout your project.

    -Jeff

  • rounding of Firefox buttons display problem

    Hello

    It seems that Firefox has issues with the rounded buttons (AFAIK).

    I'll post some screenshots to demonstrate:

    http://screencast.com/t/EJ2wIJMrna

    a refresh of the page itself, produces different artifacts of the same nature:

    http://screencast.com/t/NBqrrqTQVp8

    Sometimes, if you refresh a page enough times, you might not get these artifacts.

    The Web page on the screenshots is: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius but I saw this question on a lot of pages, sometimes even on the Google search page.

    I am running the most recent version, official, stable Firefox, but I noticed this problem for at least the last 2-3 versions of the browser.

    You can try disabling OMTC and leave hardware acceleration in active Firefox.

    • topic: config page: layers.offmainthreadcomposition.enabled = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

  • I have a scooter that can not go on the road. It is a navigation problem for cards from Apple and Google Maps for the watch. Does anyone have a solution?

    Hello

    I recently got a scooter that goes from a maximum of 40 mph and cannot legally go on the highways. I was worried about navigation on the thing, since I can't hear my phone, but I thought the directions can get sent to my watch. My problem is that Google Maps can really follow the navigation on the watch, so I can still see the signs when I put my wrist; still, he turns back to the lock screen. So I stop, remove my gloves, and pull up the directions. On the other hand, Apple cards can't do navigation for bicycles or avoiding the road. I tried to use cards of Apple walking directions, thinking I can correct errors on one-way streets myself, but Siri decided I was going too fast, spent my navigation to drive and tried to send me on the highway.

    Anyone has a solution, or am I better off memorizing the card before entering the thing?

    Thank you!

    Hello

    To have your watch to return to the last used app to raise your wrist:

    -On your iPhone, in the application of Eve, go to: Watch My > General > screen Wake > under the heading "Raise the wrist", choose the RESUME last activity.

    If we consider how you could use your watch, note the safety information important in the Apple Watch user's Guide, which includes sections headed Distraction and Navigation:

    https://help.Apple.com/watch/#/apdcf2ff54e9

  • Apple Watch turn-by-turn navigation problem

    When Im using the navigation turn by turn on the Apple Watch plan it does not have the option to start navigation, rather 'INFO and CLEAR' are my only choices in the menu. What is the problem with that? How can I start my browsing directly from my watch? Please help thanks

    before the card gets directions the departure is always visible and still not interactive but when loading is done will start last and change to 'hang' what I need to do?

  • Tecra S10 - 10F - Support Button Multimedia problem

    Hello

    I have Toshiba Tecra S10-10th with Win Vista SP2.
    I have problem with Toshiba button Support.
    After a clean install of Vista, everything works fine. Now two buttons next to the button toshiba walk / stop don't work. When I uninstalled 'toshiba value added package', buttons was answered but open "windows Mobility Center.

    When I installed Toshiba value added Pachage once again, the buttons are no longer...

    Could someone help me pls?

    THX

    Hello

    This strange s
    Usually the installation of VAP should help you get the buttons working again.
    Value added package contains tools and utilities that are necessary for the functionality of the multimedia buttons

    Please install the VAP, and then configure the keys still using the utility button Toshiba located in Toshiba Assist-> optimize

    There you have to click on the button, and then you set some for some exe file button.
    Single exe files are in C:\Programs\Toshiba\TBS

    Welcome them

  • Physical button power problems

    Hello

    I got my Lenovo U410 a year ago (it will be a year of the end of October), and I loved it, since I got it but a anoyone else noticed how filmsy power button is? Very thin and sometimes a small corner of it will get stuck under the frame. I thought it was pretty normal and dealed with my own way, but then this morning it stopped me to start.

    I tried both with the AC adapter / in and out, held for 30 seconds and all the other methods, but it does not turn on. It was as if something had got stuck behind the key and it kept me from fully pressing down. I don't think my handeling and care is in the present case, given that I managed to keep a HP Pavilion DV2700 healthy since 2008.

    Is it a manufacturing error, design, or is my phone just a fluke? I really don't want this to happen.

    I realized what it was. It was a problem of physics with the computer. The key on the receiver under the button was worn out and had to be replaced. I don't know why he had used if fast (I had the laptop for just a little over a year). You'd pay a little more than half a grand for a laptop would make to the less lasting for two or three years. Thanks Lenovo. Really.

  • HP 250 G3: Button brightness problems

    Hello!

    I'we had some problems with my button for brightness. When I press the brightness button down, it will be brighter. And even with the other button for brightness. Is a hardware or software problem?

    Please help, it's very annoying.

    Problem solved, just need new driver for HP help button.

    LINK: http://h20565.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=5405424&idx=&swEnvOID=4059&action=driverDocument&itemLocale=&swLang=&swItemId=ob_135423_1&mode=

  • Trackball Explorer button Assign problem Vista

    How can I correct Intellipoint Trackball Explorer button assignments later than Windows update for Vista?

    Hello

    Check the link and see if it helps:

    The problems with the mouse button or scroll the parameters

    http://support.Microsoft.com/kb/303091/en

  • Navigation problem click

    Hi all

    I have a screen in which there's a top bar with six buttons and the body contains a dynamic value listfield.

    When I add the code for navigation it works as for the buttons on the bar or listfield.

    But I want two things to work.

    I posted the code then please let me know where I am going wrong.

    public boolean navigationClick(int status, int time) {
                 if ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL) {
                   //Dialog.alert("its working");
                 } else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY) {
                        {if (!(btn1.isFocus()||btn2.isFocus()||btn3.isFocus()||btn4.isFocus()||btn5.isFocus()||btn6.isFocus()))
                        {
    
                          return false;
                      }
                      else{
                          itemSelected(colourList.getSelectedIndex());
                       return true;}
                      }
                 }
    
                 return super.navigationClick(status, time);
              }
    

    The code above is for navigation click.

    Hoping to get some answers and a thank you to all.

    Krishnan.

    Please let me know by joining the breakpoint, if the debugger enter the other part of the code below:

    if (!(btn1.isFocus()||btn2.isFocus()||btn3.isFocus()||btn4.isFocus()||btn5.isFocus()||btn6.isFocus()))
    

    I also assume that you don't a not substitute the method navigationMovement of the list or the screen. If the debugger is not between the mentioned code, please try after the code

    protected boolean navigationClick(int status, int time)
        {
            try
            {
                Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
    
                if(focus==lfOptions) //lfOptions is the list field
                {
                    //paste your code here
                    return true;
                }
    
            }
            catch(Exception e)
            {
                System.out.println("Exception:-  : navigationClick() "+e.toString());
            }
            return super.navigationClick(status, time);
        }
    

    and together change listener to the buttons, there are also a few other options. Please let me if it is according to your needs.

  • Strange: Objectchoicefield and ObjectListField in Gridfieldmanager - navigation problem

    Hi @all,

    I have a very strange problem, because running Simulator runs as I would have liked, but the device, the navigation is bad:

    running OS 5.0.0.42 3 on device (BB9700) and the Simulator

    1. the building screen

    2. put verticalfieldmanager on it that contains the background image

    3. put gridscreenmanager (with a column - the problem is with more then one column, too) on the first position of the vfm

    4. turn objectchoicefield with 5 points on the 1st row of the gsm

    5. put the objectlistfield with 5 points on the second line of gsm

    Program running in the Simulator:

    View all as I prefer.

    The first objectchoicefield and beyond the objectlistfield.

    When I scroll with trackpad OCF Gets the focus first and after that the olf on its first line.

    I can scroll up and down, and everything's fine.

    Program running on the device:

    View all as I prefer.

    The first objectchoicefield and beyond the objectlistfield.

    When I scroll with trackpad OCF Gets the focus first and after that the olf on its first line.

    So far so good:

    When I scroll down to the olf, all things are working properly. For example, point 4 a now focus.

    Now, if I try to go back in the OLF, it should go back to article 3 of the olf, but this is the leap into objectchoicefield. After that, if I try to go back to the objectlistfield, it jumps directly to point 4, which he came before.

    If I don't put the objectchoicefield in the first row, everything works fine.

    What can I do?

    I did something wrong?

    All ideas are very appeciated.

    Thanks in advance.

    CUA

    Michael

    Well, I found it.

    I made a mistake in the application of my own gridfieldmanager navigationmovement method.

    What is already strange: I used the same gridfieldmanager within 2 screens in my application. First screen was working fine, the second one was bad. Same content in both screens.

    Sorry for that.

    Thank you for all.

    CUA

    Michael

Maybe you are looking for

  • How much time does it take for my ipod to connect the itune after putting in disc mode?

    How much time does it take for my ipod to connect the itune after putting in disc mode? my ipod displays 'do not disconnect' for half an hour already, but my itune cannot always detect my ipod (as itune will pop up once I have connected my ipod norma

  • Clear any open task daqmx

    Hello I was going crazy, because all of a sudden a tasks analog output did not work any more he said it conflicted with another task "always active"... I searched my entire application. Could not find anything. So finally, I closed the application la

  • Update Microsoft NET. Part 4 (KB2656368) fails with the error code 0 x 643

    I am running XP SP3.  I now have 4 four Microsoft Update failed with error code 0 x 643.  There are: KB2656368 KB2633870 KB2604121 KB2656405  I have downloaded and run the Microsoft ""FIX " program with the result "an error has occurred and this prog

  • SD card reader problems

    I got an error message that says: usb device not recognized and my card reader stops working.  not even the little green light comes on when you insert the card (built in reader, multy.)  I reboot but no go.  Suddenly, he started working for a while

  • Laptop notebook HP 2000 installation printer problems

    I bought the laptop above and cannot load my software to print on it.  I have a printer hp 6510. Does anyone know how to install this in addition to buy another printer. The printer I have is not that old. My laptop supports a 64-bit of Windows 8.  T