Activate the button

I want to create the site. There will be a 2 page. So I'll have 2 buttons. If I go to page 2 button2 must have buttonOver effect (so the visual user must understand where he stand on page 1 or page 2).

What is the right way to do it?

I do like:

var myButton:SimpleButton = new SimpleButton(new ButtonUp(), new ButtonOver(), new ButtonDown(), new ButtonHit());
myButton.x=10;
myButton.y=20;
addChild(myButton);

var myButton2:SimpleButton = new SimpleButton(new ButtonUp2(), new ButtonOver2(), new ButtonDown2(), new ButtonHit2());
myButton2.x=200;
myButton2.y=20;
addChild(myButton2);


myButton.addEventListener(MouseEvent.CLICK, page1);
myButton2.addEventListener(MouseEvent.CLICK, page2);

function page1(event:MouseEvent):void
{
     gotoAndStop('p1');
}

function page2(event:MouseEvent):void
{
     gotoAndStop('p2');
}


stop();

What should I write on the function to do my macaroons on?

And I use SimpleButton is correctly? Because it looks like very long way to do menu... in the library, I have need create a lot of video clips... I code I have a lot of code..., so can perhaps make it easy?

Thank you.

Hello Sergey,

I don't think you can do what you want to do with the SimpleButton class. I think that you should use the MovieClip class and create your own "button" as "high" and "over" and "down". And then you can control completely when the State "over" is displayed.

If you wish to continue using the SimplButton class, the best thing for you to do is to disable the button which you are a removeEventListener on the page. If the code would look like this for when the user is on page 2.

myButton2.removeEventListener(MouseEvent.CLICK, page2);

And then, to introduce another element of movieclip (such as a line of underscore) which would be placed under the page2 button which shows that he is the one that is selected. Thus, when you are on page two, you would end up with a page 2 button that is disabled and also a line of underscore (or some other graphic) which shows that it is the selected page.

I hope this helps.

ropeGun

Tags: Adobe Animate

Similar Questions

  • In windows live quick view mail, how can I activate the button Delete

    Hello

    When I opened my windows live mail, I can see a quick view, which is great. There are more than 3,000 mail there that I don't need. When I click on the button Delete is in shadow. How can I activate the button Delete or is there a quick way to delete these messages at once. I'm working on Windows xp

    Hello

    The question you posted would be better suited to Windows Live Solution Center. I suggest you to send your application in the Windows Live Solution Center for better support.

    http://windowslivehelp.com/product.aspx?ProductID=15

  • How to activate the buttons sleep or access material guided?

    I'm trying to restrict the use of an application using guided access on a 5 IPhone running iOS 9.3.1.  To activate the phone in standby mode guided access instructions from Apple support. However, I don't see any option on the screen guided access to allow this, and the hardware buttons (volume and sleep/wake button) do not react in the guided access mode.  I'm doing something wrong or is this a bug?

    When you first enable guided access, and you see the screen that allows to select an area of the screen, press 'Options' at the bottom left and turn on the on/standby button. You can also do this after guiding access has been activated by three times by pressing the home button and selecting guided access, then go into the options.

  • activate the button "Highlight fields" in javascript

    Hello

    There is the button "Highlight fields" which is made by default by Acrobat Reader under the toolbars and before the pdf content.

    When the button is pressed, then each form field gets the background color and the selected field has different background color.

    Is it possible to activate this field in javascript?

    Thank you.

    Hello

    Yes using the javascript code within the root node docReady event:

    app.runtime Highlight = true;
    

    With the help of false will turn off the strong color of the.

    Good luck

    Niall

  • Activate the button on change of value selectOneChoice

    Hi friends,

    I use JDeveloper 11.1.1.5.0.

    I slipped and fell a selectOneChoice of the data control, and a button of the component palette.

    Now, I want to just turn the button on the change in value of selectOneChoice. If the value is not changed while the button is disabled.

    Please help me.

    Thank you

    $@M$

    Hello
    in your button set off a real.
    then do a valuechangeListener to your selectoneChoice with true autosubmit.

    
                  
                    
                    
                    
                  
    
        public void change(ValueChangeEvent valueChangeEvent) {
            //getMyButton is component binding(RichCommandButton)
            getMyButton().setDisabled(false);
           //refresh component
            AdfFacesContext.getCurrentInstance().addPartialTarget(getMyButton());
        }
    
  • Activate the button create/subscription to events in R12

    Hello experts,

    I'm trying to create a business/membership at R12 event and I can't find the create"" button.

    I tried to use Workflow administrator, Manager of events of the Workflow administrator and Web Applications of Workflow Administrator responsibilities. None of them has the create"" button.

    Y at - it a profile option I need installation?

    Thanks in advance.

    Hello

    You must use the user / responsibility configured as the workflow administrator.

    The responsibility of the Admin to workflow, open the Administration tab - This will show you who is the administrator. Then open a session as long as this user or a user with this responsibility and the button will be there.

    HTH,

    Matt

    Published by: Darryl Burke - advertising and deleted links

  • Click action did not activate the button

    I have a button to send on a JSF page as follows:

    < af:commandButton text = "Submit" id = "cb1".
    Icon="/images/submit.gif".
    accessKey = "S".
    action = "#{myBean.saveRecord}" / >

    However, when I click the button submit, he never hit the breakpoint in the myBean.saveRecord method.

    I have change to:

    < af:commandButton text = "Submit" id = "cb1".
    Icon="/images/submit.gif".
    accessKey = "S".
    action = "submitRecord".
    actionListener = "#{myBean.saveRecordOnClick} '"

    with saveRecordOnClick method is the same logic of code, it still does not work. There is no error or log info at all.

    I have the same button send on other pages, it works very well.

    Any idea? Enjoy it!

    Mike,

    You have any component whose property Rendered / Visible property in your screen.

    If in order to check the required property for this component.

    It is also one of the reasons.

    If the component will not be visible/rendering but want to keep REquried = "true" then mandatory error message will get fired. This message will not display in the screen. You can not adopt additional measures.

    Check it out.

    Vini

    Published by: Vini on March 10, 2011 01:09

  • With the help of keys to activate the buttons

    I made a flash demo that uses the mouse to navigate to the top. Now instead of using the mouse, I want to use keyboard (up, down, left, and right arrow) to highlight buttons and then hit button to click on the button "enter".

    Can anyone help? Thank you in advance.

    no code should be attached to objects then Yes, you must include code to frames (or location in an .as file).

    Selection.setFocus (yourbutton);

  • How to activate the buttons on Web sites

    The directional buttons on the new system do not work - how can I activate them?

    Hello Thyla1,

    Since this is a new computer that I think things are probably not completely being updated.

    We will so make sure you have the latest updates for some components.

    Adobe Flash

    http://get.Adobe.com/flashplayer/

    Adobe Shockwave Player

    http://get.Adobe.com/Shockwave/

    I assume you are using Internet Explorer, so I might suggest to try another browser to see if the problem continues.

    http://www.Google.com/chrome/?HL=FR

  • Is there a setting to activate the button upwards in the Explorer of Windows 7?

    I ran the updates recently, but I don't know if Microsoft has never added Up button on explore because I can't find a setting to allow it. Is there a place for him? I find it irritating to have to click on a parent folder, which may not even be visible or readable.

    The Up button is available when you try to open or to save a file, so I don't understand the inconsistency.

    Also try to help those who do not use their computer often (like my mother) or the newbs of the computer is frustrating because I'm like 'build a case' and they're like 'What?' and I must say "click on the folder named [blah blah blah]." I don't consider removing the Up button an upgrade.

    It is not symbolized by an arrow, but you can always do it with a single click.  Just click a higher chain, here:

    For example, if you were in this area and wanted to go 'up' for the parent, simply click the name of the folder parent in the address bar:

    I bet your MOM would not be confused down there.

    In addition, you said "the Up button is available when you try to open or to save a file", but it is not really universal: this is if the demand program views shell inherited. Try it with something like Notepad or Word, and you'll see the same as the behavior of the Solution Explorer.

    When Windows 7 is under development, they have posted on the blog UX up arrow was redundant, and they didn't want to confuse people with two different ways to mount.  Especially when it means that most people would never notice the improved address bar feature.

    But - they always return in Windows 8 as (go figure) very few people never discovered or noticed the development.

  • How to activate the button "Remember passwords for sites"?

    I can access the box, but it is not highlighted so I can not turn password saving.

    Hello, firefox will not save your passwords when you put to execution in permanent private browsing mode ("never remember history" in options > Privacy panel).

    Privacy, historical settings of navigation and-no-track

  • How can I activate the button "crop"?

    I'm not able to select in the left panel because he disappeared from the Panel.  Then, once I selected ' Ctrl + A ', I go to 'Image' > 'Culture' and select 'culture', but still nothing happens.  Please help.  adobephotoshopcs5

    Hello

    Do you mean that the left tool Panel on the right has disappeared. If this is the scenario then click on window > tools.

    If you want to crop the image using image > crop option.

    So, do not select the entire image by pressing Ctrl + A.

    Select the Rectangle marquee tool in the toolbar on the left and draw the rectangle on the image area you want to crop.

    Then go to Image > crop. It will crop the area that is outside the selected rectangle.

    Thank you

  • Activate the previous/next buttons in WebHelp?

    When I generate a WebHelp Pro output using my own appearance or the default, the back of RoboHelp and before buttons are disabled? The browser buttons work always. Is there a way to activate the buttons for RoboHelp? The rest of the navigation features (that is, the Index, the Search buttons) are functional. Thank you!

    Hi MeeruFen.

    If you are referring to the buttons in the position shown in the picture below, these are used by the subjects that are part of a sequence of browse. They are no longer active if the topic poster is part of one.

  • HP EliteBook 8560p: can not turn on WiFi: the button is orange, and nothing happens when you press

    Hello

    I have a problem with my wifi. The button always orange and nothing happens when I press on it: no errors, no message, no reaction at all. This is why I can't use WiFi.

    The laptop is a little new: I use only 2 months.

    1. number and product name

    HP EliteBook 8560p
    НР LQ589AW

    2 operating system installed (if applicable)

    Windows 7 Professional 64 bit

    3. error message (if any)

    No error message

    4. all changes made to your system until the problem occurred

    My windows crashed and I got it from archive created a few days ago. Archive includes all data from hard drives, the system has been restored exactly as it was before the accident. I still don't know if this caused the problem (or if the problem occurred after that): it happened a month ago, and I had no WiFi available at the time and only tried to turn it on a few days ago.

    Additional details:

    In device manager wireless card is appearing as functioning normally. In the management of the adapter Wi - Fi is on but says "no connection available. If I run diagnostic tests, he asks me to activate WIFI with a button on my laptop, which I can't do. In Mobility Center, it says "connection Wi - Fi is turned off". Activate the button is gray and impossible to click on.

    I already tried things:

    1. Reinstalled all the HP drivers from original CD.
    2. Card WiFi removed in the windows Device Manager (remove device), restarted windows, installed new drivers for it, rebooted again;
    3. Checked the mobility Center as suggested in one of the threads available on this forum;
    4. Do a hard reset for HP laptop (battery removed, push the button and hold for a minute).

    Thanks for any help!

    Anatoliy.

    I managed to solve the problem...

    Turns out that the problem was (apparently) caused by HP Power Assistant tool shipped with my laptop. Default profile has been showing the gray bluetooth and WiFi, and it was not possible to turn them on. I created a new profile, and even if all the parameters are identical to the default profile, it allows me to turn the BT and WiFi and turn off without any problems. Button is working fine now as well and goes from blue to orange when I press it. Active WiFi and it works.

    I hope this helps.

  • Click on the buttons as disconnect the top 2 inches of the page does not? Solution?

    Have used firefox for years. Done nothing wrong. Recently, if I use firefox to access web pages such as the market data of the bbc enterprises, the page appears but do not activate the buttons click at the top of the page, but not further down the page. No problem with other web browsers!

    The top of the Firefox window is unresponsive, inadmissible toolbars - see also the problematic extensions

Maybe you are looking for