AS2 Navigation button indicator help

Hi all,
I'm using this code below to basically toggle the buttons to indicate what page it is you are on in a flash website.  ANd if another button is clicked on - the previous button one will animate out and the newly clicked button will be highlighted.  Now this current code works and all but I'm not able to select the indicated button again to load up the same content if the user so chooses to do so. 95% of the time i wouldn't need this functionality but unfortunately need it this time. Help please?
Here is the code:
[CODE]var selectedButton:MovieClip;
function toggleButtons(btn:MovieClip):Void {
if (selectedButton) {
selectedButton.gotoAndPlay("Out");
selectedButton.enabled = true;
btn.enabled = false;
selectedButton = btn;
}[/CODE]
Here is the onRelease code calling the toggleButtons:
[CODE]item_mc.onRelease = function() {
toggleButtons(this);
loadMovieNum(this.btnMC.fileLocation.concat('.swf'), 10);
};[/CODE]
And finally the buttonClass I use to attach the Over and OUt actionscript (here if necessary):
[CODE]class ButtonClass extends MovieClip{
public function ButtonClass(){
this.onRollOver = this.Over;
this.onRollOut = this.Out;
this.onReleaseOutside = this.Out;
private function Over(){
this.gotoAndPlay("Over");
private function Out(){
this.gotoAndPlay("Out");
}[/CODE]
Little help and thanks in advance!

Basically, you need to determine which button is the selected
one and reset it when a new button is selected, but before you
assign that newly selected button as being selected. See if you can
devise something that both resets the button selected status to
false and makes the textColor revert to the 0x999999 value.
Because you named each textfield differently, I'm going to
avoid trying to generate the code for you, that complicates it a
bit.

Similar Messages

  • Help with Re-Linking Navigation Buttons

    I have Adobe Flash CS3 Pro.
    I have a navigation header flash file that came with my website template and I am having difficulty making sense of the actionscript. It has a logo section with effects, 5 main nav buttons that move, and two extra link buttons above the navigation bar. Let’s focus on just the Navigation buttons for now. Here is what I have gathered. I have multiple text buttons on one movieclip, and I have successfully edited the text for each button. If I look at the actionscript in the top layer of this movieclip I see:
    “gotoAndStop(parent._parent.num);”
    I also have a separate movieclip symbol (with effects) with 5 buttons layers listed in the actionscript with the following actionscript tied to each button from numbers 1 through 5:
    onClipEvent (load) {
                num=1;
    onClipEvent (load) {
                num=2;
    onClipEvent (load) {
                num=3;
    onClipEvent (load) {
                num=4;
    onClipEvent (load) {
                num=5;
    On the top layer of these 5 buttons I have the following actionscript:
    stop();
    this["item"+_root.button].gotoAndPlay("s1");
    _root.link = _root.button;
    I also have a separate button symbol with the following actionscript:
    on (rollOver) {
                if (_root.link<>1) {
                            menu.item1.gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
                if (_root.link<>1) {
                            menu.item1.gotoAndPlay("s2");
    on (release) {
                if (_root.link<>1) {
                            _root.menu["item"+_root.link].gotoAndPlay("s2");
                            _root.link = 1;
                            getURL("index.html");
    Now my website template came with 5 html pages that my flash navigation buttons correspond to: (index.html, index-1.html, index-2.html, index-3.html, index-4.html, index-5.html). My problem is that I have created new pages (index.html, about.html, featured.html, projects.html, contact.html). I would like each of the 5 buttons to correspond to these pages, not the existing standard “index-n.html” pages. 
    Also, this is probably not relevant, but each html page has something to this affect so I can see how they correspond to each button.
    <script type="text/javascript">
              var fo = new FlashObject("flash/menu_vf8.swf?button=2", "head", "100%", "144", "7", "");
              fo.addParam("quality", "high");
                        fo.addParam("wmode", "transparent");
                            fo.addParam("scale", "noscale");
              fo.write("head");
            </script>
    I guess my real question is: What actionscript do I need to update or remove for the nav button LINKS to work with my new html pages rather than the standard 5 index-n.html pages that it automatically wants to link to?
    When I try and add a “getURL” command to each of the 5 buttons and test preview the movie, the links work, but it messes up the effects of the movieclip. In other words, the buttons don’t move, they are motionless, however the links work. If I added this command to each button in some way, what actionscript would I need to remove so there weren’t any complications? I need some expert help here for it would be much appreciated. I am a novice with Flash script and its killing me that I can’t figure it out. I asked for help from the template support and all they came back with was the following message and it wasn’t helpful:
    You need to duplicate each button you are editing - it is very important.
    2) Update the scripting to look similar way:
    on (release) {
    if (_root.link<>num) {
    _parent["item"+_root.link].gotoAndPlay("s2");
    _root.link = num;
    if (num == 1) {
    getURL("index.html");
    } else {
    getURL("index-"+Number(num-1)+".html");
    Update it to:
    on (release) {
    getURL("http://www.google.com");
    Also, I read through the following discussion, which was helpful to a degree, but it still didn’t answer my questions about getting the links to work.
    http://forums.adobe.com/message/3614092#3614092

    First of all, thank you for showing interest and helping out in my dilemma here. I wish I understood your meaning behind “on” because with my luck there is probably some hidden way of placing script on an object that I don’t understand or haven’t discovered yet.
    This is what I know:
    I have multiple text buttons on one movieclip entitled “textbutton1” (see previous picture), and I have successfully edited the text for each button and created two extra frames/buttons to make 7 total. If I look at the actionscript in the top layer of this movieclip I see:
    “gotoAndStop(parent._parent.num);”
    But there is no action on each individual frame (all 7 of them) on that layer.
    Like I mentioned before I have a separate movieclip symbol (entitled “menu effect”) with 7 button movieclip layers listed in the actionscript with the following actionscript on each layer.
    onClipEvent (load) {
                num=1;
    onClipEvent (load) {
                num=2;
    onClipEvent (load) {
                num=3;
    onClipEvent (load) {
                num=4;
    onClipEvent (load) {
                num=5;
    onClipEvent (load) {
                num=6;
    onClipEvent (load) {
                num=7;
    On the top layer (layer 4 frame 25) of these 5 buttons I have the following actionscript:
    stop();
    this["item"+_root.button].gotoAndPlay("s1");
    _root.link = _root.button;
    I can upload another particular image of the movieclip/actionscript if it would be helpful. Let me know.

  • Help please with my navigation buttons

    Can anyone please help me with my vertical navigation buttons. I'm trying to set up my nav bar so that all the buttons have a background image (button.jpg) behind them at all times and the only thing that changes when touched or the mouse rolls over them is that the colour of the text changes, except when the sub buttons appear, because the name of some of the sub buttons are so long i have created another button image that is longer (button2.jpg), i only want this to appear on sub buttons otherwise the buttons will end up taking most of the pages space. I'm having great difficulties getting the sub buttons to appear with the correct image (button2.jpg) and am getting increasingly frustrated with it, can anyone please help!!!
    www.milesfunerals.com/index2.html

    index2.html is a broken link for sure. The main index page looks like it's working fine.
    A little styling critique if it's okay... Personally I'd have gone with a CSS or Javascript multi-level menu across the bottom of the header. Saves visitors from having to scroll all the way down the page to see every menu item. And I'd rethink the color of the "Miles & Daughters" in the header image. It kinda gets lost in the roses.
    If you have a link to the "broken" page please put it up so we can analyze it.

  • Help needed! ADF Data Control: Navigation Buttons + Table  issue.

    Hey all!
    We are working on a new application using ADF JSF+EJB 3.0 stack and are experiencing a problem with a simple feature we need to implement.
    Scenario:
    - Creating a data control for a facade session bean and drag a List returned by one of its methods as table;
    - Dragging its corresponding navigation buttons (first, previous, next, last) from the data control onto the page.
    Issue:
    As we press those buttons, we see the page being submitted but but nothing changes in the table...It keep showing the same records all the time (buit-in range navigation works fine though). However, when we manage to drop the collection as a form (with nav buttons included), everything works fine.
    We have inspected pagedefs for both cases and could not identify the difference.
    Any help would be much appreciated as we need to address the issue asap..
    Thanks in advance,
    Gustavo
    PS: Sorry for my English! ;)

    Hey, i have the solve to my problem.
    In the definition page of the table page i change the propert Refresh (ifNeeded is his default value) to always of the iterator who im using to the table.But i use Toplink, then i had to change the property "Refresh Identity Map Results" to "enabled", that option is in the options of the named queries on queries in the toplinkmap of the current table who im using to my page.
    i hope this will be util for you.
    That's all
    Dany

  • How do I create more than one navigation button in Adobe Fireworks CS6?

    Hi guys, 
    Apologies if this comes across as very stupid question. I am a complete beginner with Adobe Fireworks and I'm in the process of creating my first website and I have got to the stage where I want to create navigation buttons and the book I have recommends using Adobe Fireworks so I have downloaded. My problem I have encountered is after I have created my first two state button what is the next step to create another two state button which has the identical size and colour of the previous two state button?
    Here is a brief rundown of the steps I have done to do the first two state button:
    1) Edit-Insert-New Button
    2) Chose the rectangle and then specified the width and height of the button and chose my stroke and fill colour
    3) Centred the button and used the text tool to put the button as a 'Home' button for my website. I then went on Window and Align in order to centre the text on the button
    4) I went on Select-Select All and then went on Windows-States to open the states panel. I right clicked on state 1 which is Up and clicked on copy to states. I then selected the next state radio button and clicked OK.
    5) I selected State 2 and slightly modified it by changing the colour of the text.
    6) I then clicked the back button to return to the main window.
    After this what step should I take to create my another button which has the same size, colour and text style as I have created for the first button? I tried just repeating these steps again but when I do step 1 it creates a new fireworks document which means I have to create the buttons size, colour, text style from scratch.
    Your help would be greatly appreciated guys and once again I do apologise if this comes across as a silly question.
    PS Please could you let me know if the steps I have taken to create the 1st two state button are correct

    Initially you need to configure via the provider's own web based control panel multiple e-mail accounts. If they don't have one, work it out with their customer support to have three distinct mail accounts. Then you can setup multiple logins by adding new accounts to mail. Since mail checks all accounts per Mac OS X user account simultaneously, it probably is best to use different usernames on the same internet provider. If you don't want mail to show all the information from all three mail accounts simultaneously, configure Apple menu -> System Preferences -> Accounts to have multiple users on your computer, and configure each of the internet service provider accounts for each separaet user on Mac OS X.
    Message was edited by: a brody

  • Document Numbering Series and navigation buttons in SBO

    Hi there,
    A new set of document numbering is created for new financial year.
    e.g. SO11-100001 is for financial year 2011 and SO12-100001 is for financial year 2012.
    Due to this setup, we have encountered a problem to use SAP navigation button to search between documents such as when I continue to click u201CNEXTu201D button, the documents would be popup in following sequence:
                    SO11-100001  SO12-100001  SO11-100002  SO12-100002  u2026u2026
    Is there a way to just navigte through SO12 series documents only?
    If I use series grouping under "Authorizations", this will totally block the previous year's documents. There may still be open docuemnts from last year and therefore, using "Authorizations" is not a wise option.
    If there is a workaround, kindly share with me.
    Thanks,
    Yadana

    hi Yadana
    in that case u can create a user query displaying the fields u want on the basis on the period indicator i.e. 2011 & 2012
    hope this would suffice your concern
    Regards,
    Manish

  • When trying to sign out of Hotmail the "back navigation button" remains green and I have to click sign out again and the same thing happens over and over and the only way to close Hotmail is to go to File and Close Frame, so what's my problem?

    When I attempt to sign out of Hot Mail by clicking "Sign Out," I get the "Sign In" instruction as I always have, however, the green Firefox navigation button remains on bright green (not going to gray) and my MSN home page will not close automatically as usual. I click on the green arrow and I get an instruction to "Sign Out" again. I click on that and get the "Sign In" again but the arrow stays green. I can repeat this countless times and never get signed out and always remaining on the MSN home page. The only way I can close is to go to File and click on Close Window and then my homepage will close and go back to desktop. I've been using Firefox for a couple of years now (IE prior to that for ten years) and have never had this problem. After using "Close Window" I go back onto my home page, from the desktop, and the navigation button is grayed out normally until I sign in again and we start the cycle over again. Have I been hacked?
    == This happened ==
    Every time Firefox opened
    == Approximately a month ago.

    I was doing a side-by-side comparison of the new and old server (we backed up the server before the reformat) and I can see that, evidently, CR XI was installed.  We have the directory C:\Program Files\Common Files\Business Objects\3.0 and all the versions match what is located in the project's bin directory.  Does this confirm that I did have XI installed and licensed at one time?
    If I purchase a more recent version, couldn't I update the reports to use the newer version?  I have all the source code.
    Thanks for your help, it is a nice sanity check for me after hours of reading forums and documentation.
    Also, just a shot in the dark, but I'm assuming it wouldn't do me any good to simply restore the aforementioned folder to my C drive?  Would that work if I registered all the dll's?
    Edited by: Eric Hollering on Dec 2, 2009 6:40 PM
    To be clear, I do have VS 2003 & 2005, and I have the source code.  I just have never used Crystal Reports in any of my .NET apps because the need wasn't there, so recompiling is not out of the question.
    Edited by: Eric Hollering on Dec 2, 2009 6:49 PM
    Also, I looked at the CrystalDecisions.CrystalReports.Engine.dll that was in the C:\Program Files\Common Files\Business Objects\3.0\Managed folder and when I right-click and view the properties, then the Version tab, in addition to the 11.0.9500.2 version number, there is a property called Product Version that has the value .NET.  Does that mean that this dll was bundled with Visual Studio?
    I also found this directory on the old server...does this tell you anything?
    C:\Program Files\Business Objects\BusinessObjects Enterprise 11
    I did see that you can still buy XI from CDW.  I have a call into them currently to check with Business Objects for any registrations from my company.
    Edited by: Eric Hollering on Dec 2, 2009 8:27 PM

  • Navigation Buttons in Viewer not working after upgrade

    We recently upgraded to CR XI R2. When our reports come up in our viewer, the navigation buttons aren't working properly. We can move forward to page to, but can't move beyond that. We can hit the last button and get to the last page and we can type in page 3, for example, and page 3 comes up.But we can't move forward from page 2 with the next button on any of our reports.

    Some basic information is missing here and if me suggestions do not help you in resolving the issue, please add this info:
    Have you applied any SPs to your CR install?
    What development language are you using?
    Is this happening in a win or web app?
    The latest SP for CR XI r2 can be downloaded from [here|https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe]. Apply that and test. If that does not help, I would like you to try this with one of our sample apps.
    Win apps are here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
    Web apps are here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
    Each of the above has an app called SimplePreviewReport. depending on if you are using web or win, VB or C# use the sample app from above and see if the same issue exists there.
    Ludek

  • Slideshow navigation buttons not working.

    Having had the slideshow navigation buttons that exist below my photos (back, pause, forward) working fine for some reason they are now coming up as question marks in Safari and error boxes in Firefox and Explorer. I have not made any changes to my site but have republished since discovering the problem but it still remains.
    I have looked for the cause in iWeb but have no idea what will remedy this.
    Any help much appreciated.

    Caused by the recent update from .Mac to MobileMe and out of our hands for fixes.
    The trouble is caused by some of the links create by iWeb that point to files found on Apple servers (not your iDisk). They are usually created inside the javascript files (.js) and use incorrect URL's that previously worked when linked at .Mac but now fail at MobileMe.
    Since it is a javascript file a Web browser status bar (bottom of the window) shows a javascript:void URL but a click on the link in our iWeb (and Homepage) pages is not finding the correct Apple server files (they are not part of your iDisk and are hosted on Apple servers).
    Odd thing is that some of these URL's do work and others fail. Some do not show the mouse over change (to the pointed finger icon) but clicking in the space where they should appear triggers the javascript.
    Someone at Apple will be working late into the night to "fix" what they broke.

  • Content Player navigation buttons not working for everyone

    Hi,
    Some of the participants are experiencing the issue with Content Player navigation buttons 'Continue' , 'End Test' etc..
    We suspect it is because of the version of Java runtime environment on thier PC after eliminating the browser cache, or IE version issues.
    Could anyone please tell me what are the supported Java versions for proper functioning of LSO600 Content player?
    We are on ECC 6.0, LSO600 and SAP portal version EP7.
    Any help is highly appreciated.
    Thanks,
    Jaya

    Hello Jaya,
    java supported version is more than JRE 1.4.2._07
    and IE is IE6 and IE7
    LSO supports Java 1.4.02_07 to java 1.6
    Browsers:
    Micorsoft IE6 and IE7.
    Firefox from 2.2
    If there is more than one Java version on the pc, try forcing the browser to use a certain version of Java by going to the control panel -> Java -> in java control panel go to -> java tab -> Click view in Java Applet run time settings -> Select one of the JRE to enable it and force the browser to use this version of Java.
    Regards,
    Manny

  • Gallery navigation buttons

    Hi, is it possible to add navigation buttons to select an item an image gallery (First, Previous, Next, Last) to iterate through the selected items of a gallery?I have a photo gallery (OneDrive like) with thumbnails and a big image with the selected photo.
    I figured out how to do the first last, but still puzzling on the next / previous.
    First / Last:
    I programmed the OnSelect: UpdateContext({MyCurrentImage:First(PhotoTable)})
    Any help would be appreciated.

    Hi Mark,
    There is a way you could accomplish this, but your file names for the images will need to follow a similar pattern with a number. For the following discussion, assume that the file names are of the format SPx.jpg, where x is a number, i.e SP1.jpg, SP2.jpg
    etc and we use a context variable called Name. Therefore to accomplish this you could do the following:
    1) Add an Image Gallery onto the canvas and set its 'Items' property to your image source. This will be used for the thumbnails.
    2) Add a button, called Back and set its 'OnSelect'
    property to:
    UpdateContext({Count: Count - 1}); UpdateContext({Name: "SP" & Count & ".jpg"})
    3) Add a button, called Forward and set its 'OnSelect'
    property to:
    UpdateContext({Count: Count + 1}); UpdateContext({Name: "SP" & Count & ".jpg"})
    4) Add an Image Control. This will be used to display the image in a larger view. Set its 'Image' property to:
    First(Filter(Gallery3!AllItems, Title = Name))!Image
    5) Click the Back and Forward buttons a couple of times each and you should notice the image visible from the image control changing as you click.
    Note that this design will not actually move the selected Gallery item, but at least allow you simulate moving from one item to the next.
    As an alternative you could have the user select the photo they want to be displayed front and center, please see
    our tutorial video here. This walk through does not have navigation buttons, but at least presents an alternative for you.
    Hope this helps get you going?

  • How to get the page navigation buttons back at the bottom of the page?

    After upgrading to Acrobat X I discovered that there is only one option for the page navigation buttons - at the upper left. I'm mystified as to why they put them there. Most users are right-handed. With the buttons at upper left it's awkward to reach up there, across the page, with the mouse cursor for every page turn (yeah, I know you can use the PgUp/PgDnkeyboard keys, but that requires taking your hand off the mouse every page turn).
    What I really want is to be able to put a copy of these buttons back down at the bottom center of the page, which was an option in previous versions. Is there some way to get those back at the bottom?

    Hi terpenoid,
    Have you tried Read Mode yet ( under the View menu)?  It displays a nivagation bar at the bottom of the PDF with next/previous page, zoom in/out, etc.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.windjack.com
    www.pdfscripting.com

  • Navigation button not working

    I can enter my SIM card pin to unlcok the phone and that is as far as I can go.
    The centre navigation button is not working, can't browse the phone, can't access any apps, bbm sms or any emails.
    Any suggestions?

    Do a simple reboot on the BlackBerry in this manner: With the BlackBerry device POWERED ON, remove the battery for a minute, and then reinsert the battery to reboot. A reboot in this manner is prescribed for most glitches and operating system errors, and you will lose no data on the device doing this.
    Now, does your trackpad work?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Create Notification Navigation Button not working in Order Objects Tab

    Hi Gurus,
    I am having an issue in Order --> Objects tab. I want to create notification for additional  technical objects for the order. When I enter the technical object details and press enter, a "Create Notification" navigation button gets activated for that line item. But when I press that button, nothing happens. On the other hand if a select multiple line items and then press "Create Notification" button at the bottom of the line items, I am able to create notifications for the selected line items.
    Can someone help me suggest what can be the problem or suggest a Note which might restore the functionality of the "Create Notification" navigation button at the line item level.
    Thanks in advance for the help.
    Best Regards
    Vikas Hali

    Vishal,
    I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
    Regards,
    Usman

  • Trouble with Lumia 900 navigation button not worki...

    Hei guys,
    This afternoon, all of a sudden, without nothing happened, my 3 navigation buttons (back, start and search) on my nokia lumia 900 stopped working. I really can't understand what happened since 2 minutes before the buttons were working perfectly and then the sensibility of the button is completely zero.
    Tried to turn off the phone several times, but it didn't worked at all. Searched around the web but noone seems having the same problem. I found only one guy that posted a similar problem like mine but recieved only an answer that didn't look really helpful (turn off the phone for 3 days and see later).
    All the rest of the touch screen still works perfectly,  it's just the three navigation button that don't work, even tapping all the time. there's no sign of response from the phone.
    I really have no idea what's happened. Did someone had a similar, if not the same problem? any suggestion how to fix it?
    please help guys
    Thanks.

    I know this is a month old but all of  a sudden this morning I begane having the exact same problem.  
    My troubleshooting tasks so far have been to reboot the phone about 3 times.  
    I have hard reset my phone with just holding the power button down (not sliding the screen when asked to). Connected it to my computer to make sure it was updated.
    Deleted all new text messages (there was a bug a while back that can cause Windows 7 to lock up on certain formatted text messages. Then rebooted the phone again
    Deleted all new email messages from my google account on the phone. Rebooted the phone.
    And still I do not have any of my bottom buttons usable.  Has anyone figurec this out yet?  Every time I do something I have reboot the phone since I cannot back up or get to the home screen.

Maybe you are looking for