ActionScript 2 question: the Menu buttons not being endangered

Hey everyone, I'm an intern who has been invited to take on a flash project. I have knowledge of HTML, but it's my first flash project, and I think that I am way over my head. I followed a tutorial explaining how to make the menu buttons and I realized that the ActionScript for a menu drop-down should work for what I'm trying to do.  So I finally have everything I want, but I'm sure I've lost some code in there.  Now, my problem is when I play my flash and move my mouse really fast on the flash object sometimes two menu buttons appear. I'm sure it's because of the ._alpha > 0 code that I use, but I don't know another way around it. If you have any advice please! Here is a link to the swf file. http://www.rumeryrefinishing.com/MVS%20Flash%20Project.html

This is the code (for the two buttons) I use something do disappear when I roll another button:

calplate_btn.onRollOver = function () {}
If (scan_large._x > startX) {}
myTweenB.stop ();
myTween2.stop ();
scan_large. Enabled = false
scan_large._alpha = 0
scan_large._x = startX
}
If (scan_large._alpha > 0) {}
myTweenB.stop ();
myTween2.stop ();
scan_large. Enabled = false
scan_large._alpha = 0
scan_large._x = startX
}

calplate_large.enabled = true;
myTweenA = new Tween(calplate_large,"_alpha",Regular.easeOut,0,100,6,false);
myTween1 = new Tween(calplate_large,"_x",Regulare.easeOut,startX,startX+10,6,false);
}

__________________________________________________________________________________

scan_btn.onRollOver = function () {}
If (calplate_large._x > startX) {}
myTweenA.stop ();
myTween1.stop ();
calplate_large. Enabled = false
calplate_large._alpha = 0
calplate_large._x = startX
}
If (calplate_large._alpha > 0) {}
myTweenA.stop ();
myTween1.stop ();
calplate_large. Enabled = false
calplate_large._alpha = 0
calplate_large._x = startX
}

scan_large.enabled = true;
myTweenB = new Tween(scan_large,"_alpha",Regular.easeOut,0,100,6,false);
myTween1 = new Tween(scan_large,"_x",Regulare.easeOut,startX,startX+10,6,false);
}

__________________________________________________________________________________

In addition, if it's not too much trouble, please let me know if I can compress the actionscript code!

in the overthrow of scan_btn you have:

myTween1 = new Tween(scan_large,"_x",Regulare.easeOut,startX,startX+10,6,false);

What's supposed to be:

myTween2 = new Tween(scan_large,"_x",Regulare.easeOut,startX,startX+10,6,false);

Tags: Adobe Animate

Similar Questions

  • The menu button not selectable/glitching

    I am DVD authoring in Encore. I made a menu with a background of film and two separate buttons (each links to a separate movie file). I did the buttons by selecting the text tool in the upper left of the screen, type a Word, and then selecting object/convert to button. My two buttons are placed one above the other. When I preview the menu in encore, I can select each button with the mouse. But when I press the remote virtual dvd, I can't select the second button. Any of the arrow keys of the remote control will allow me to get the first touch to the second (and vice versa). Also, whenever I press one of the arrow keys (or put my mouse on a button) menu glitches, of the music and stop for a second image distortion.

    These two problems were confirmed when I burned a DVD and played in my DVD player on my TV.

    The first video file is linked dynamically to Premiere Pro. The second is a .avi, imported and exported first in yet. The video for the menu background is also a .avi.

    First export Media Settings:

    PAL widescreen

    100% quality

    16-bit sound

    48 kHz

    Reminder settings:

    Maximum Audio/video bitrate: 8.0 Mbps

    Audio transcoding scheme: PCM.

    I suspect that the way I created buttons is false, and that which could explain the two issues... However, both problems could also be separated.

    If you have any suggestions on how to solve these problems, I would be very happy!

    See you soon!

    -Robert

    Select the routing in menu mode button and confirm that the navigation is configured correctly. If you want or need to change it, make sure that the auto routing is turned off.

    If it isn't, or if you have difficulties to check that, post a screenshot of the menu with button selected if routing visualization you can.

  • The title bars not being endangered

    I have a number of title bars through my app.

    The problem is, when I browse to pages, last seen on another page rest yet title bar and the new title bar pushes through it.

    .

    Thus, for example:

    A - title bar of the page = 'A Page '.

    Then I go to Page B, no title bar on this page and it works correctly and nothing is displayed

    Then I go to Page C, page title bar of is displayed and the title bar of Page C push through it

    Anyone know how to get rid of the problem?

    After many hours of trying, I found a work around for the issue.

    delete titleBar;
    titleBar = new TitleBar(TitleBarKind::Segmented);
    titleBar->setTitle(QString(""));
    titleBar->addOption(Option::create().text(""));
    titleBar->setVisibility(bb::cascades::ChromeVisibility::Hidden);
    page->setTitleBar(titleBar);
    

    I erase and reset a title bar blank for my page before you push on another page with a different title bar title bar that was sticking.

  • Firefox opens but nothing don't watch/load in the window, the buttons of the menu even not

    I open Firefox & a window opens but nothing does not charge or show, not even the menu buttons. Sometimes when you click on blindly around some menus will open but options beyond that don't produce anything either.

    I have (not necessarily in this order):
    Uninstalled Firefox, deleted all the other files, then reinstalled (twice)... did not help.
    Revenue from PC back to before Firefox updated... did not work.
    Uninstalled, debugged my PC, reinstalled... did not work.
    Disabled the firewall & changed the settings to make sure nothing was blocking it to work... did not work.

    At this point, after the support of Mozilla Surf site & not finding anyone else who has this exact question I don't know what else to do. I love Firefox and want to continue using it (I HATE using Internet Explorer), but the only other alternative I can think of is to use Google Chrome or IE.

    I have Windows 7, use McAfee, & SpyHunter. My laptop is under 5 years old & I keep reg. thing updated, so I don't think that anything should be obsolete or incompatible.

    Thank you!

    Hello

    Currently in version 33, Firefox has implemented a new faster way to loading Web pages. This new feature is called OMTC. However, there are still tweaks to the Mozilla developers make this.

    There is a known issue that Mozilla works very hard to fix: If you have black pages on some sites, here's what you can do to avoid the problem in the meantime:

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.

    When the Firefox Safe Mode window appears, select "start mode safe."

    To disable hardware acceleration

    • Click the menu button

      then select Options.

    • In the window of Firefox Options (or preferences), click on the Advanced tab, and then select general.
    • You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.

    Now, quit Firefox, wait a few seconds and start normally.

    Please let us know if this solves the problem. Engineering is also collecting more information on the question would require that you fill out this survey

    I should also mention that other users with this problem had a card intel integrated graphics hd with a former current driver. Until Mozilla comes with a fix, if you want hardware acceleration in Firefox, you can try updating your driver through the appropriate link below to see if that helps:
    Intel HD 2000/3000:
    32-bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23763
    64 bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23764

    Intel HD 4000:
    32-bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24328
    64 bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24329

    Thank you!

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Nexus 7 with Android 4.2 haw not the menu button. What to do when the instruction requires that action?

    Nexus 7 do not have the menu button!

    Hello

    The menu is at the top right (next to the tab) on Nexus 7. Thus, any statement that uses instead, and has no button 'more '.

    Hope this helps,
    Michelle

  • BlackBerry smartphones HELP! I lost all my application icons and the menu button does not work!

    I don't know what I did.  All the application icons are moved from the home page.   The menu button does nothing. The trackball does not have anthing. The only thing on the screen is the time, date, battery, new mail envelope, signal and volume. I pulled the battery and it has no effect. I don't know what to do. Help!

    Hey, JSammy.  I had mine works again with the help of someone from another site.  Here's what you need to do: press the green call button, then the menu button.  Select options, then on options General, highlight "dial from homescreen" and the value. Save and exit. Now on your home screen, press "O".  After that, the General menu options will come.  Choose the option 'theme' and choose a different theme or return to the default value.  This should be all your application icons to reappear.  After doing all this make sure you go back to reset the "dial" since the homescreen on 'yes '.  I hope it works for you.

  • Effect of bevel on the menu buttons is displayed is not on all pages

    I have setup some simple buttons for our website (www.rencayusa.com) with effects of bevel and shadow for different States. The menu buttons are set up on the master page and the master page is linked to the five pages on the current site. The bevel effect seems to come and go depending on what page you look at, and I don't know if it's a bug or something that I did not put right. Any suggestions for a fix or a place to start looking?

    Have you tried to create a blank page with this teacher? If the buttons work on the blank, it could be something on the 'Products' pages and 'Contact us' which breaks the CSS.

  • How paste an accordion MENU navigation on a mobile scrollbar page and make it work properly? Like I can't pin, I keep it at the top of the page with scroll effect 0. It collapse, shows the menu buttons but does not close back up once reached the

    How paste an accordion MENU navigation on a mobile scrollbar page and make it work properly?

    Like I can't pin, I keep it at the top of the page with scroll effect 0.

    It collapse, shows the menu buttons but does not close back once it reaches the anchorpoint.

    Appreciate your help. Thanks.Guess I need to find another solution. Am an artist and don't know anything about coding.

  • When I click on the menu button, why I can't see the historical option?

    According to the help instructions, in order to remove all or part of the history of my search, I'm supposed to click on the menu button and then select the option of history. However, when I click on the menu button, the story is not listed as one of the options.

    Hi, the button can be in 'other tools and features' in the section Customize the menu. If so, you can drag it to a location of your choice. If it is not visible, try clicking on Restore Defaults - more information - controls customize Firefox, buttons, and toolbars.

    You also bring up history by pressing Ctrl + H. Or you can bring up the menu bar (History tab) temporarily by pressing Alt, or if you want to stay there all the time, then right-click in the tab bar (but not on a tab) and a tick/check bar menu.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • Make it appear at the top of the menu button - no background

    Not sure whether or not this belongs to the ActionScript forum.  Sorry if it is misplaced.

    I am creating a menu for a Flash project: the submenu below the Menu button - I would like it to appear above the Menu button when you click on the Menu button.   Tried everything I could think - here's the code:

    _Global.style.SetStyle ("themeColor", "haloBlue");

    to import mx.controls.Menu;

    var cmMainMenu:Menu = Menu.createMenu ();

    cmMainMenu.addMenuItem ({label: "Glossary", instanceName: "miGlossary"});

    cmMainMenu.addMenuItem ({label: "Powerpoint", instanceName: "miPowerpoint"});

    var changeListener = new Object();
    changeListener.change = {function (evt_obj:Object)}

    var item_obj:Object = evt_obj.menuItem;


    If {(item_obj.attributes.label=="Glossary)"}

    getURL ("Glossary.html", "emptyClip");
    }
    Else if (item_obj.attributes.label == "Powerpoint") {}
    getURL ("Powerpoint", "emptyClip");

    }
    }

    cmMainMenu.addEventListener ('change', changeListener);

    Add a button that displays the menu when you click on the button
    listener var = new Object();
    Listener.Click = {function (evtObj)}
    var button = evtObj.target;
    refer to the button
    The menu at the bottom of the button
    _root.cmMainMenu.Show (button.x, button.y + button.height);

    }
    MainMenu_btn.addEventListener ("click", listener);
    exit.onPress = function() {}
    fscommand ("QUIT");
    //}

    Stop();

    Any help would be appreciated.   Thank you

    Change the settings in your show() method.

  • I can't see the menu button to work

    I'm using Firefox on Linux Mint 13 Maya. For some reason, good number of buttons in Firefox (not on Web pages but FireFox itself) do not meet the mouse clicks. I tried the safe mode, refresh/restore and uninstall/reboot/reinstall. Still the same problem.
    I have a hard time to access the settings, because the menu button is one who "depresses", but does not respond to mouse clicks.
    Also, I can not activate or deactivate the plugins because of the same problem.

    Ok
    After trying more than things I want to try to enumerate. I think I have a solution.

    I installed the cinnamon desktop environment and disconnected then connected after choosing the cinnamon and the problem disappeared.

    I don't know why I suddenly started having the problem in xfce, because FireFox was working very well in it and my system was a little more sensitive to use.

    It works and I can go back to using FIrefox as my main browser.

    Blessings,
    MilwTD

  • Cannot access the page customize or see the menu button!

    I had two modules different twitter (Twitbin and App Twitter). The first was one that I enabled again, because I wanted to see if it has improved for some time. After restarting my browser, however, most of my toolbars have been on different parameters. I managed to get my bookmarks toolbar, showing once again. However, now:
    -I can click on "Customize" under the tools, but the page appears empty (if any)
    -the orange "firefox" button at the top left disappeared
    -menu button (three horizontal lines) disappeared

    In addition, restarting somehow messed up my manager's Session module. It lists my tabs/windows have saved, but they never load.

    I searched everywhere, but have not found any real answers (page customize and SM have been the most frustrating of all this). I completely remove the add-on twitter, I chose not to use, but it changed nothing about how it was.

    Thank you
    -A

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line

      button.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information. Now, should open a new tab containing your troubleshooting information.

    2. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • What is the menu button of Firefox, where is it and what happens if I don't?

    I'm still not able to understand how to get to the general page of Firefox. I have a menu bar, but nothing there helps me. One of the responses to my previous ones (which I am still trying to complete) talked about the Firefox menu button, but I can't understand what it is, where it is and what do I do if I have not

    On Windows XP, the default is to show the menu bar, not the Firefox menu button.

    You get the orange Firefox menu button when the menu bar is hidden.

    • Firefox menu button > Options
    • View > toolbars (press F10 to display the menu bar)
    • right click on empty toolbar space

    See:

    • Press the F10 key or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
  • How will I know if a blackerry version has the menu button?

    Hello

    I'm working on a Blackberry app, we use the menu button but I noticed some versions of blackberry (like 8700 s...) don't function of this key. Is it possible to know a particular version of Blackberry features this key?

    Thanks in adance.

    I guess you need to do a couple of models that do not have the menu button (87xx, 6xxx, 7xxx) from the list. All the new models have the menu key, although this may change in the future...

Maybe you are looking for