Flash Button "Active" State

Hi friends,
I am trying to create a flash navigation bar for the first time and i have problems making it work the clicked state wont stick! I've looking thru tons of tutorials and only found 1 that ALMOST fits my need. Im lost in the never ending google and i really cant find the help i need to make it work so here i am.
Here goes my problem i hope someone can help me out, i am very new to flash so please consider that if you want to help me out.
I have created a navigation bar with 5 buttons made of movie clips each containing 4 states labeld up, over, out and clicked. When i test the navigationbar inside flash it works fine because it does not reload when i click a button as it would on the website where the whole page reloads. But on the website when im testing it the button state "clicked" just wont stick and i understand why, because the page is reloading and my script tells all the buttons to return to "up" state when the flash starts. But i would like them to stick... and i dont know how to do it really. I would love if there was a way to make so when i click the button the flash does not reload when im trying to grab my main content but im not sure if its possible. Or maybe so that the script checks what page i am on and activates the "clicked" state that way... Im not sure to be honest.
Here is my action script for my navigationbar. Please help me..
button1.buttonMode = true;
button2.buttonMode = true;
button3.buttonMode = true;
button4.buttonMode = true;
button5.buttonMode = true;
function allButtonsUp(): void {
  button1.gotoAndStop("up");
  button2.gotoAndStop("up");
  button3.gotoAndStop("up");
  button4.gotoAndStop("up");
  button5.gotoAndStop("up");
function allButtonsOver(): void {
  button1.addEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
  button2.addEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
  button3.addEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
  button4.addEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
  button5.addEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
function allButtonsCLICK(): void {
  button1.addEventListener(MouseEvent.CLICK,
  clickFunction);
  button2.addEventListener(MouseEvent.CLICK,
  clickFunction);
  button3.addEventListener(MouseEvent.CLICK,
  clickFunction);
  button4.addEventListener(MouseEvent.CLICK,
  clickFunction);
  button5.addEventListener(MouseEvent.CLICK,
  clickFunction);
button1.addEventListener(MouseEvent.CLICK, Home);
function Home(event: MouseEvent): void {
  navigateToURL(new URLRequest("?page=home"), "_self");
button2.addEventListener(MouseEvent.CLICK, Register);
function Register(event: MouseEvent): void {
  navigateToURL(new URLRequest("?page=register"), "_self");
button3.addEventListener(MouseEvent.CLICK, Ranking);
function Ranking(event: MouseEvent): void {
  navigateToURL(new URLRequest("?page=ranking"), "_self");
button4.addEventListener(MouseEvent.CLICK, Downloads);
function Downloads(event: MouseEvent): void {
  navigateToURL(new URLRequest("?page=downloads"), "_self");
button5.addEventListener(MouseEvent.CLICK, Donate);
function Donate(event: MouseEvent): void {
  navigateToURL(new URLRequest("?page=donate"), "_self");
function allButtonsOut(): void {
  button1.addEventListener(MouseEvent.MOUSE_OUT,
  outFunction);
  button2.addEventListener(MouseEvent.MOUSE_OUT,
  outFunction);
  button3.addEventListener(MouseEvent.MOUSE_OUT,
  outFunction);
  button4.addEventListener(MouseEvent.MOUSE_OUT,
  outFunction);
  button5.addEventListener(MouseEvent.MOUSE_OUT,
  outFunction);
allButtonsUp();
allButtonsOver();
allButtonsCLICK();
allButtonsOut();
function overFunction(e: MouseEvent): void {
  e.target.gotoAndStop("over");
function outFunction(e: MouseEvent): void {
  e.target.gotoAndStop("up");
function clickFunction(e: MouseEvent): void {
  allButtonsUp();
  allButtonsOver();
  allButtonsCLICK();
  allButtonsOut();
  e.target.gotoAndStop("clicked");
  e.target.removeEventListener(MouseEvent.MOUSE_OVER,
  overFunction);
  e.target.removeEventListener(MouseEvent.MOUSE_OUT,
  outFunction);

if none of your button movieclips have a stop() in their first frame, use:
var buttonA: Array = [button1, button2, button3, button4, button5];
var pageA:Array = ["home","register","ranking","downloads","donate"};
var previouslyClickedButton:MovieClip;
buttonListeners();
function buttonListeners(): void {
    for (var i: int = 0; i < buttonA.length; i++) {
    buttonA[i].gotoAndStop("up");
        buttonA[i].addEventListener(MouseEvent.MOUSE_OUT, outFunction);
        buttonA[i].addEventListener(MouseEvent.MOUSE_OVER, overFunction);
        buttonA[i].addEventListener(MouseEvent.CLICK, clickFunction);
        buttonA[i].buttonMode = true;
function overFunction(e: MouseEvent): void {
    e.currentTarget.gotoAndStop("over");
function outFunction(e: MouseEvent): void {
    e.currentTarget.gotoAndStop("up");
function clickFunction(e: MouseEvent): void {
    navigateToURL(new URLRequest("?page="+pageA[buttonA.indexOf(e.currentTarget)]), "_self");
     if(previouslyClickedButton){
          previouslyClickedButon.enabled=true;
          previouslyClickButton.gotoAndStop("up");
    MovieClip(e.currentTarget).enabled = false;
MovieClip(e.currentTarget).gotoAndStop("clicked");
     previouslyClickedButton=MovieClip(e.currentTarget);

Similar Messages

  • Button active state using compressed art

    I have a PSD button placed in Muse, and noticed that after upgrading Muse to 6.0, that the "active" state of a button seems to be using severly compressed artwork. The other states all seem to be using non-compressed images. This may have been an issue in earlier builds, and I just may not have noticed it.
    Thanks for any help.

    Sorry, it's not live at the moment. But I can send you a copy of the file if that's any help?

  • Tracking button active state?

    Hi -
    I have three pages within a section of a site - when the user
    clicks on a text button to go there, I'd like the text link to show
    active. In this case, the text is black - when you rollover it
    becomes red. So, when you're on a page, I'd like the text button
    for that page to be red, the other two to be black - and so on. Is
    there a way to do this with AS?
    Thanks

    I'm surprised this isn't possible...I'll keep looking.

  • Photoshop Button in Active State Returns to Normal After Rollover?

    Hello,
    I'm working on a glossary reference website in Muse, and have hit a roadblock with my photoshop buttons.
    I have created menu buttons in Photoshop that have two different states - one for active and rollover, and another for normal and down (the button is actually saved with four different layers/states, one for each, but for what the user will see, it's really only two options). I've used these menu buttons as rollover triggers for blank compositions, and when the user rolls over the button, the name of the page appears below it, and then disappears on rollout (otherwise the names would overlap and it would look very cluttered).
    The issue that I have found is that, when I preview the page in my browser, the buttons appear to function properly in that they show up in the active state indicating that the page that they are linked to is the one that they are on.
    Initial View - Home Page:
    ...and when I rollover the image of the page that I am currently on, the button shows the name of the page as desired, like so:
    However, when I rollout, the button reverts back to the normal/down state, even though I am still on the home page.
    Below is a screenshot of the composition settings that I have set up for this widget. I tried switching the "Hide Target" to none, but since the target is referring to the word "Home", the word "Home" remained visible in addition to the button remaining in the active state, which is not what I want. I also tried selecting "Triggers on Top", but the issue was not solved here either.
    What am I missing? How can I make sure that my button remains in the active state when on the page that it is linked to?
    Thanks for your help!
    Rachel

    Sounds like a bug that's the fallout of the overloaded meaning of "Active" state. "Active" is both the state used for an item with a hyperlink applied that points to the current page (or an anchor point in the current scroll range on the current page) and the state used for a trigger or thumbnail in a Composition or Slideshow widget that corresponds to the a current active item in the composition or slideshow.
    It appears we honor the hyperlink definition of "Active" on page load for a composition trigger with a hyperlink to the current page applied, but don't honor that definition of active when transition to having no items in the composition active (or presumable when transition to having a different item in the composition active).
    The only workaround that comes to mind would be the very tedious approach of replicating this composition widget on each page, removing the hyperlink on the "active" trigger and manually formatting it's "Normal" state to appear active.
    I've written up the bug. However, it may not get fixed immediately. (We tend to collect smaller fixes in an area and then address them all at once or when other changes are planned in that area, due to the overhead involved in ramping up to work on an area and thoroughly retest it after changes.)

  • I updated MUSE and now the anchors stop working after one click. Active state on the buttons are not working either. The vertical scroll also stops working. Is this a bug.

    I updated to Adobe Muse 2014 and now the anchors on my site stop working on the page after one click. Vertical scroll and active state on the buttons also do not work. Is this a bug?

    I am also dealing with an anchor that stopped working. I tried everything i can think of to make it work, but no luck so far. I hope to see a helpful response here. Thanks.

  • Active State Button

    I can't get my movie track button to change 'states'. It works fine on a computer. On a DVD deck it's impossible to know when a track has been selected. You can't tell when to push 'Enter' on the remote. Of course on a Mac, it's just point the mouse and click to make the track play.
    My button is the movie track, dragged and dropped, so video track icon is also a button. I have tried to assign colors on the Normal, Selected and Active settings, but it doesn't show colors in the Simulator.
    How do I get the button (movie track) to change when it is selected?
    DVDSPRO 4.2.2, MBPro 15, FW800 external drive, FCS 3
    Thanks,
    Bill

    I changed my workflow to make the active state work. I added a button to the menu and then linked the button to the track media. When done that way, the buttons could display an active state for selecting a track using a deck remote.
    I consulted my training DVD from macprovideo.com.

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:
    http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html

  • Creating an "active" state for a button

    I am creating a page with six buttons that need to have an
    active state when clicked, ie., the button currently clicked needs
    to change colors to signify that it has been selected. Then it
    needs to change back to its original color when another button is
    clicked. Please help!! I am relatively inexperienced with coding so
    any extra clarity in explaining is appreciated.
    Thanks in advance!
    I had originally posted this topic in the 'site design'
    section, but it seems no one can be bothered to answer this one.
    Please Help Me Out!

    A workaround I like is using movieclips instead of buttons.
    With actionscript they can act like buttons without being a button.
    Just make a moviclip with keyframes, each frame being a different
    button state.
    Ex:
    frame 1 - button off
    frame 2 - button on
    frame 3 - buton active
    sample AS attached to frame:
    button1.onPress = function(){
    button1.gotoAndStop(3); //makes button 1 active
    button2.gotoAndStop(1); //makes button 2 go to off state
    button3.gotoAndStop(1); //makes button 3 go to off state
    button1.onMouseOver = function(){
    button1.gotoAndStop(2);
    button1.onMouseOut = function(){
    gotoAndStop(1);
    My syntax may not be 100% correct, but the theory is there to
    help you figure it out.

  • Retain activated state on a 'subtitles on' button

    I have a main menu with 10  buttons to link to videos.  On the same menu I have two buttons for 'subtitles on'  and 'subtitles off'
    Is it possible to retain the activated state of these buttons so that the viewer knows which button has been selected thus telling them whether subtitles are 'on' or 'off'
    At the moment I seem to have to click twice at the buttons to get the 'activated' state which then disappears back to norman state if I roll over the other buttons on the menu.
    Thanks in anticipation

    Yes, this gets very complicated. I agree it would be nice, but the feature is just not there.
    The better method is to have a single menu for the project that handles subtitles. The user can go there to see what the status is. Since it does not change until they change it, they usually don't need to be reminded on every menu.

  • Adding PayPal code to Flash button

    I want to use my own .swf button for PayPal payments with a "hidden format", but when adding the generated PayPal Website code to my html page, only a red X and the alt PayPal text is showing where the button should be. I have changed all Active X controls to Enable.
    Every time I contact PayPal I get a different reply. The last one was that I have to add a "static" image, but I really want to use my own button.
    I would rather find a way to paste the PayPal code into my buttons action script and then I only have to paste the Flash button to the html, but don't know how to manipulate that because the only code generated by PayPal is a "form" in html format. I am also adding text fields and guess that's why I don't get an generated email code from PayPal which I get if I don't add text fields.
    Any ideas how I can transform the code generated by PayPal to my action script are welcomed. I have about 150 buttons to add!
    This is my link: http://www.astondenwoodjewellery.co.uk/Jewellery%20html/Gold%20Rings/GR02_button_test.htm

    I will definitely mark when I have managed to do this, thank you. Still can't get it to work and I don't know where I'm going wrong, but shall continue trying...
    I have added the form in my html, but deleted the button which appeared as an X. Instead I've added my button with the code you gave me in AS.
    I don't know what I am doing wrong, but I keep receiving action script error messages:
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 1: Statement must appear within on handler
         var sendLV:LoadVars=new LoadVars();
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 2: Statement must appear within on handler
         var receiveLV:LoadVars=new LoadVars();
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 3: Statement must appear within on handler
         receiveLV.onData=function(src){
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 10: Operator '=' must be followed by an operand
         sendLV.on0= ;// use selected option for man/woman
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 11: Operator '=' must be followed by an operand
         sendLV.on1= ;// use selected option for size
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 8: Statement must appear within on handler
         GR02_test.onRelease=function(){
    Total ActionScript Errors: 6 Reported Errors: 6

  • 10 flash buttons each needin linking to seperate urls in html page

    I have a group of 10 flash buttons build in flash as a single
    flash element. I am using this in a html page however need each
    button on the flash to link to a different htm url. For some reason
    I cant make it work.
    Could someone pease help me in how to do it. The webpage is
    www.kids-active.co.uk and it is the buttons down the left hand
    side.

    "abdezines" <[email protected]> wrote in
    message
    news:f695j8$6ou$[email protected]..
    > thanks for that
    >
    > it wont let me embed it and if i "create separate
    buttons with getURL code
    > attached to each and then place
    > them into your animated movieclip" it seems to restrict
    the animation??
    >
    > the bottom link on the flash animation on
    www.kids-active.co.uk
    > demonstrates
    > this
    "option b" will probably be your easiest solution...
    using different symbols for each state:
    Off - frame 1: off state of your button
    Over - frame 2: animated version of your movieclip
    Down - frame 3: down state of your button
    Hit... etc.

  • Dreamweaver Flash Buttons Paths

    Hello all,
    I am a novice site designer. My first challenge is to design a navigation bar once and used by all web pages.  I built it using Flash buttons.  The concept works fine in a flat file, but when I'm viewing a web page that sits in a different directory than the flash navigation buttons, the buttons point to a file in the current directory which doesn't exist. I want the buttons to still point to the flash files in the parent directory.
    I'm using Dreamweaver CS2 to create my flash buttons. I'm using PHP include statements to include my flash navigation bar. When I create the php file in another directory, click on flash button, all heck breaks loose. I look at the URL and the link appends the PHP file that the flash button should be pointing to whatever directory my current web page is in.
    It seems like, I should just create each button  as a absolute path, http://rootdirectory.com/filename.php, but it still uses relative path when I'm looking at web page that sits in another directory and appends the navigation link to the current directory http://rootdirectory.com/currentdirectory/filename.php although it points to a link in the root or parent directory.
    Do I not know how to create flash buttons using the absolute paths?

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Adding in frames makes it even worse - you are in the deep
    stuff here. Why
    are you using frames?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "LeichterLernen" <[email protected]> wrote
    in message
    news:er5fua$3am$[email protected]..
    > Hey, I use some standard flash buttons from Dreamweaver
    to navigate. I
    > have two
    > frames in this web. The buttons are in frame "A" and
    refer to a target in
    > frame
    > "B". This worked perfectly fine, even with IE 7 in
    Windows XP it still
    > works.
    > But in Windows VISTA every button opens a new browser
    windows.
    >
    > Windows VISTA, IE 7, Dreamweaver 8, running the web on
    my HD
    >
    > Thanks in advance.
    >
    > Sky
    >

  • Automatic button activation

    Hi
    I know very little about Flash and must apologise in advance
    for what may be a very stupid question.
    I am using Dreamweaver to create a simple website and have
    used one of the standard Flash buttons from within Dreamweaver
    itself. After viewing it online and hovering over any of the link
    buttons, "Click to activate and use this control" appears and you
    have to click twice for navigation.
    I think the buttons should change color just by and look
    active just by moving over them.
    Could anybody got a simple solution please?
    Thanks
    Jerry

    Read here:
    http://www.smithmediafusion.com/blog/?p=114
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "nonads" <[email protected]> wrote in
    message
    news:ed9mlb$abk$[email protected]..
    > Hi
    >
    > I know very little about Flash and must apologise in
    advance for what may
    > be a
    > very stupid question.
    >
    > I am using Dreamweaver to create a simple website and
    have used one of the
    > standard Flash buttons from within Dreamweaver itself.
    After viewing it
    > online
    > and hovering over any of the link buttons, "Click to
    activate and use this
    > control" appears and you have to click twice for
    navigation.
    >
    > I think the buttons should change color just by and look
    active just by
    > moving
    > over them.
    >
    > Could anybody got a simple solution please?
    >
    > Thanks
    >
    > Jerry
    >

  • Active state not working in scrolling site (with anchor links)

    I'm design a scrolling site with anchor links and an horizontal menu on the top.
    when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
    now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
    anyone have this bug? or any one know how to fix it ?

    Hmmm...I've just been playing around, and I think I got the Active State to work correctly.  I think my problem was not understand what Active State means.
    To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
    I did not understand that Active State means the look of the Menu Item when the PAGE is active.  I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
    Look at this page for an example of what I'm trying to achieve...
    http://www.pgavdestinations.com
    When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
    Is there a way to achieve this with the menu states in Muse?
    Thanks for the replies!
    Dave.

  • Help with flash buttons please

    hi i wondered if anyone could take a look at this for me
    please?
    http://beechhouse.yorkwebsites.co.uk
    why is it in explorer you have to click the button to
    activate it and then click it again to go to the page? and how can
    i fix this please?

    It's IE-only behaviour as a result of changes Microsoft made
    earlier this
    year to their browser, regarding how Active Content (Flash,
    Quicktime etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2, the fix is already built
    into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    Using Flash buttons for navigation can negatively affect your
    site's
    usability - you know that, right?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "BumStuckOut" <[email protected]> wrote in
    message
    news:ejshnv$dpm$[email protected]..
    > hi i wondered if anyone could take a look at this for me
    please?
    >
    >
    http://beechhouse.yorkwebsites.co.uk
    >
    > why is it in explorer you have to click the button to
    activate it and then
    > click it again to go to the page? and how can i fix this
    please?
    >

Maybe you are looking for

  • Payment Block Removing in Vendor Items

    Hi, How we remove the payment block for invoice open item posted in vendor account. Regard, Venkat

  • Make OSX SD/USB bootable lock, i.e., make Mac unable to boot without SD card.

    Hello! I'm trying to find a way to make my Macbook unable to boot without an external media to initialize the computer. Or at least a way to remove the harddrives from the listed boot options by hitting the option/alt key on bootup. I want to remove

  • Need fast response!  Project due at 9am today (2 hrs from now)

    Hey everyone, I am taking a web class and did this site .  It looks fine in Firefox and IE8, but just checked it on IE7 and two things are happening. 1)  The h3 "bar", the black bar with the tagline "professional project management...", no longer ext

  • Database is very slow

    Hi Guys, I am geting trouble. My database is very slow. I couldn't log in when I launch enterprise manager. I use sqlplus to login on as sys, and it was ok, but it was very slow when I select from v$lock. It is fast when I select from v$session. How

  • Smb network shares from W7 PC stop working after a few hours

    I have a W7 pc sharing storage on my network. when connecting when first starting my macbook, it connects fine, but after a few hours it drops out, and i am unable to connect to it unless i restart my macbook. I have been using "connect to server" to