Forward/ back button for various sub-folders

Hello all,
Here's the scenario.....
I have a forward and back button that load several images in a sub-folder that load to a UIloader....
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
function nextImage2(evtObj:MouseEvent):void{
imageNumber++;
LargeImageLoader.source = "portfolio/UIloader/bike/00"+imageNumber+".jpg";
checkNumber();
back_btn.addEventListener(MouseEvent.CLICK, backImage);
function backImage2(evtObj:MouseEvent):void{
imageNumber--;
LargeImageLoader.source = "portfolio/UIloader/bike/00"+imageNumber+".jpg";
checkNumber();
Since I have multiple sub-folders for my portfolio, I was wondering how to apply these same buttons to other sub-folder image paths without needing to create a pair of forward/back buttons for each sub-folder.
Thanks!

It's not entirely clear to me, but what I think you need to do for what I think you are saying you want to do would be to make the folder targeting (portfolio/UIloader/bike/, et al) a variable as well.  The only missing link is what you would use to redefine the folders.
Your next/prev buttons can't be that smart unless you have some conditional logic that helps them realize a particular imageNumber range belongs to a particular folder.  If your images have the same file names (00#.jpg) across the different folders then that won't help.  I believe you would need them to be sequential such that no folder repeats the filenames/numbers of another

Similar Messages

  • Put back the drop down bar for the forward/back buttons.

    There was a little bar next to the forward/back buttons that allowed you to see where you been and go back or forward a few pages when you need to. I WANT THAT BAR BACK! I am sick and tired of going through this every time firefox updates. ALSO, I've lost my personas (not that it really matters since you got rid of all the space the pictures were in), and I would like them back. I really wish you people would STOP fixing things that aren't broke and giving me so much grief trying to make it look like it and act like it did before.

    Cor-el, you rock! Brought back all the personas/themes that I lost. Now I just have to work on widening the area so I can see the pictures. :)

  • TS 4.1 User Interface Forward/Back Buttons

    I'd like to the add the Forward/Back Buttons to my User Interface similar to those in the Sequence Editor. I use a modified version of the Full Featured UI on the production floor and often switch to editor mode to work on the sequence. I find it very cumbersome not to be able to jump back and forth between Sequences while doing so.
    Were the buttons created using the "Editing Class" proporties and methods to build a stack of recently selected sequences?  Or are the buttons already existing with the methods simply needed to be called?
    Any suggestions how to impment this functionality while in edit mode? 
    Thanks

    "but keep in mind that the UI is not meant for developing. It instead was designed with operators debugging in mind."
    I don't agree with that. The UIs are fine for developing if they meets your needs. If not, then you have to weigh using the sequence editor, which is not nearly as customizable, vs the cost of reimplementing whatever you can't do without that the sequence editor already has.
    Note that most of the things that are missing from the UIs would take a fair amount of effort to re-implement (type editing, ...). If there were already simple-user-ready-drop-in-components for the missing features, we probably would have already included them in the UIs.
    We want the UIs to be functional, but the top priority is that they be simple enough such that they can be readily modified.
    Note that in some cases there are apis to support features that aren't in the UIs, but there isn't a complete control that wraps everything. For example, Engine.SearchFiles() is a huge amount of the implementation for find-and-replace, but there currently isn't a user callable dialog for invoking it or a user accessible control for automatically browsing the results, thus we don't currently include that feature in example code for the UIs. I don't know the specifics of forward/back, so I'm not sure how much of the implementation is exposed as public APIs, beyond the goto-location functionality (see Locations.GotoLocation, ...).
    - James

  • What happened to the quick browse button (down arrow) that use to be by the back button for quickly moving back several webpages?

    The old Firefox used to have a small arrow button next to the forward/back buttons. When clicked it would show the entire browsing history making it easy to jump back several pages. Now it seems to be gone. I have only used the new version for a day and already I am tired of having to click back one page at a time. Was the quick navigate button moved or was it taken away?

    This feature is still available, simply right click on the back button, and select which page you would like to go back to, just as before.

  • In IE 8 there is a "recent pages" tab next the forward / back buttons. It helps us jump back & forth the sites. Is there similar feature in FF 6 ?

    In IE 8 there is a "recent pages" tab next the forward / back buttons. It helps us jump back & forth the sites directly. Is there a similar feature in FF 6 ?

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • Can Firefox provide an option to keep the refresh button next to the forward/back buttons?

    When I first installed FF4 the refresh button was buried on the righthand side of the URL window. There were a number of complaints about that location.
    Then the button got moved next to the forward/back buttons. This made me quite happy.
    Today, I find it's again buried in the previous position.
    Can I get it back to where it is more accessible?

    # Control-click on a toolbar and select Customize, this will open the customize toolbar window
    # With that window on display you can drag and drop the refresh button and place it where you want
    https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • Mail for Exchange sub folders, any plans?

    Does any one know if there are any plans to bring out sub folder support in mail for exchange.
    I think this is almost a complete show stopper as current versions of exchange are designed to work with sub folders and the rules written for those sub folders.
    So no sub folders support in MfE basically makes it a dead duck IMHO
    bob940

    same here !!
    I make it a point to file all my mail correctly in sub-folders so my mailbox doesn't turn into a huge mess but then I have no access to may mail on my E71 !! That's pretty ridiculous...

  • Address/Location bar, forward-back buttons are not shown

    Address/Location bar, forward-back buttons are not shown in my browser. How can I make them visible?

    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear
    * Make sure that the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • Lost the forward/back button after updating and the home button how do I get back?

    Firefox updated to 7 and I lost all of my add ons including the home button and the forward/back button. I was able to get all of my add ons restored except the home button and the forward/back buttons. How do I get them back? Wish now that I had not updated.

    Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
    * Press F11 to toggle full screen mode (Firefox/File > Full Screen)
    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Forward/back button

    My forward/back button in Safari 4.0.1 has stopped working. I can't go back to websites I just visited.
    It is dimmed out. Any suggestions????
    MacOS 10.5.7

    Hi
    Go to the View Menu>Customize Toolbar. When the panel opens, drag the existing back/fwd off the toolbar, then replace it with a fresh copy. Select Done.
    If that doesn't solve it, then quit Safari. Via the Finder: Your User Account>Library>Preferences folder. Move the com.apple.safari.plist file to the trash, then restart Safari. This resets Safari preferences to default values. Restore any custom settings in either the Preference panel, Edit (spelling), or View Menu. Also, restore any custom icons.
    Also, the reset adds Apple default bookmarks to your Bookmarks collection (command/option/B keys). Delete any you don't want.

  • How can i create forward and back buttons for a dreamweaver slideshow?

    Hi
    I am an illustrator attempting to create a website in dreamweaver (basically it will be an online portfolio). I would like to have a box/slideshow with images of my work that someone can browse through by clicking 'next' and 'back' buttons. Does anyone know how to do this? I have been trying to find out how to do this for ages - i dont want to use flash if possible as i am worried about making the site too complicated. I know how to make swap image thumbnails, but i think my site would be more user friendly (and look more professional) if i could have next and back buttons. Would this involve complicated css code (which scares the life out of me!) or is there a relatively easy way to do it? I have got two 'dreamweaver for idiots' books, but neither of them cover this topic. Can anyone help?

    If you are using CS4, there is a Command to create a Web Album... this does it automatically for you.
    Otherwise, you can create this manually.  Say you have 3 pages,
    page1.html  (is the index page of the album)
    page2.html
    page3.html
    Therefore, using ordinary text links
    Home would link to page1.html
    Previous would link to page3.html
    Next would link to page2.html
    You would need to make adjustments naturally to each page as you move along with the gallery pages, changing the previous and the next links as needed.  Below is a a basic example of setting up the links in a simple table structure.  You would also then style the table layout as you see fit - yes, using css preferably  :-)
    <table>
    <tr>
    <td><h2>MY GALLERY OF PHOTOS</h2>
    <a href="page3.html">Previous</a> | <a href="index.html">Home</a> | <a href="page2.html">Next</a>
    </td>
    </tr>
    <tr>
    <td>
    <br>
    <a href="../images/img_2401_jpg.jpg"><img src="../images/img_2401_jpg.jpg" border=0></a><br>
    </td>
    </tr>
    </table>
    Here's an article on creating an album using the DW Command I mentioned earlier. You could create the album and then copy and paste the code into a current page if you've already designed on.,... not too difficult, I just tested it.  You do however, need to have Fireworks to process the images.
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ad1.html
    You could also check out the Lightbox effect which is very popular:
    http://www.lokeshdhakar.com/projects/lightbox2/
    Or do a google search for 'jquery'.  There are different album effects using that framework as well.
    Hope some of this helps  :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • How do i have status bar and a back button  for applets?

    I have an applet which displays a set of panels in order. Is there any way that i can have a status bar like in an browser and a back button so that it can go back and go forward. What do i need to do? Is there any sample code to do so. I am new to java and learning.
    Thanks
    Ram

    Status-Bar -- a long thin panel with a long TextField. Perhaps use something from the BorderFactory class to seperate it from other parts of the screen...
    Back Button -- Keep track of your panels in a CardLayout, for example, then use a Button with an action listener that uses the CardLayout's previous() method to move back to the last panel.

  • Disable Default function of "Back" button for Android.

    Hi there!
    I have tried SO MANY methods to PREVENT the default function of Back button in Android but no success
    This is one of the codes I have used with no success:
    stage.addEventListener(KeyboardEvent.KEY_UP, optionsKey, false, 0, true);
    function optionsKey(ke:KeyboardEvent):void
          if (ke.keyCode == Keyboard.BACK)
                ke.preventDefault();
                ke.stopImmediatePropagation();
              //Do my own code below...
    I am using Flash Cs6 , Air 3.2 for Android , Testing it on LG Google nexus 4.
    When I use the flash simulator, it works fine! Means the Back Button, let the App go back to previous step (as I expect it to do)
    But after I publish the apk (Aspect ratio: Auto , Auto orientation , Render mode: GPU), as soon as I press BACK, it minimize my app!
    (means when i press the Back button on my phone, the App minimize down (not close!). when I re-activate it/click on it, I see the app has actually gone one step BACK (as I programmed and expected), but I just CANT STOP the default action of MINIMIZING/De-activating my app after pressing Back button.
    Anyone have any "Fla" file that I can see it in ACTION please?!
    Because I have used many-many codes and no success yet
    thanks and looking forward for your any kind of hlep...
    Message was edited by: Pouradam

    I got my own answer thanks to myself!!
    in above code .KEY_UP should be changed to .KEY_DOWN.
    simple!

  • Forward/Back button behavior updated in v. 2 release?

    Hi, does anyone know if the button behavior on the remote control has been updated in the new software release? Previously when watching recorded videos it skipped forward in three minute increments. While paused it would jump 10 seconds I think.
    Skipping forward thirty seconds would be a lot better for me.
    Thanks,
    John

    Lars Stokholm wrote:
    Hi, after I upgraded GTK2 (2.20.1-2 -> 2.22.0-2) my forward and back button in Firefox disappeared. When I start Firefox I get these errors:
    (firefox:4659): Gtk-WARNING **: Error loading theme icon 'gtk-go-back-ltr' for stock: Icon 'gtk-go-back-ltr' not present in theme
    (firefox:4659): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
    (firefox:4659): Gtk-CRITICAL **: gtk_default_render_icon: assertion `base_pixbuf != NULL' failed
    (firefox:4659): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
    (firefox:4659): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
    (firefox:4659): Gtk-WARNING **: Error loading theme icon 'gtk-go-forward-ltr' for stock: Icon 'gtk-go-forward-ltr' not present in theme
    (firefox:4659): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
    (firefox:4659): Gtk-CRITICAL **: gtk_default_render_icon: assertion `base_pixbuf != NULL' failed
    (firefox:4659): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
    (firefox:4659): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
    I just updated my system and I'am now a bit confused. I have exacly same problem. Can anyone help?
    Last edited by amen (2010-10-04 20:32:05)

  • HOWTO: Enabling Forward, Back Buttons, Logitech MX1000 Mouse

    Enabling Forward and Back Buttons, Logitech MX1000 Mouse
    (and Microsoft Wireless Intellimouse Explorer, apparently)
    Step 1: Get, Install evdev
    ==========================
    First, use evdev as the Xorg mouse driver.
    Get this module, install it, and make sure it is loaded each time you run Linux.
    For Arch, this means:
    # pacman --sync xf86-input-evdev
    and adding "evdev" to the modules list in /etc/rc.conf.
    Step 2: Modify xorg.conf to Use evdev as Your Mouse Driver
    ==========================================================
    Next, in /etc/X11/xorg.conf, create an evdev-based input device that specifies your mouse:
    # evdev based section for Logitech MX1000 mouse
    Section "InputDevice"
    Identifier "Evdev Mouse"
    Driver "evdev"
    Option "Name" "Logitech USB Receiver"
    Option "CorePointer"
    EndSection
    Note: then "Name" field above is important. Find out the name for your device via:
    % egrep "Name|Handlers" /proc/bus/input/device
    In the case of the Logitech MX1000 mouse, which is wireless, it is: "Logitech USB Receiver".
    Step 3: Modify Xorg ServerLayout to Use Your evdev Mouse
    ========================================================
    Now modify the Xorg server layout to use this mouse entry:
    Section "ServerLayout"
    Identifier "Xorg Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Evdev Mouse" "CorePointer"
    # PS/2 Mouse not detected
    # Serial Mouse not detected
    EndSection
    Step 4: Do Some Button Mapping for The Forward and Back Buttons
    ===============================================================
    Now, add the following to your .xinitrc, or somewhere where it will be executed each time X starts:
    % xmodmap -e "pointer = 1 2 3 4 5 8 9 6 7"
    You will receive the warning:
        Warning: Only changing the first 9 of 20 buttons.
    Don't worry about this - it is normal.
    Finally, to get those pesky Forward and Back buttons working in some Gnome apps such as Nautilus,
    get and install xvkbd and xbindkeys. Now create file ~/.xbindkeysrc, containing:
    # Mouse Buttons
    "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
    m:0x0 + b:6
    "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
    m:0x0 + b:7
    "/usr/bin/xvkbd -xsendevent -text "\[Left]""
    m:0x0 + b:8
    "/usr/bin/xvkbd -xsendevent -text "\[Right]""
    m:0x0 + b:9
    and add the following to your .xinitrc, or somewhere where it will be executed each time X starts:
    % xbindkeys
    That is it! Simple n'est pas? :-)
    Many, many thanks to Arch forum member MrWeatherbee, who provided most of the key elements of the above - thanks!
    Last edited by mac57 (2007-08-20 14:46:29)

    Hi Misfit138, I agree that the general ideas are there already in the Wiki, but even after reading that entry, I was not able to get things working. The existing entry is not specific enough to the MX1000 mouse. So, although I have never contributed to a Wiki before, I think it is likely a good idea to do so in this case. I will make sure that the entry is very MX1000 specific. It will address a small audience, but it is one way of giving back a little to the community.

Maybe you are looking for

  • SWF won't open in Mac

    Hi - I'm using flash catalyst 5.5 and have created a simple photo gallery. When I publish the file to swf I just get a empty white box. The file runs fine from catalyst and the html runs fine from the run local folder, just the swf I have a problem w

  • PO Status caught in a loop!

    I have an instance where a purchase order has been created from a requisition. There are two issues affecting it, causing the process to stall. 1. I have po value tolerance turned on 2. the po has been modified and requires re-approval. The Po value

  • Really urgent: reagrding FBL2N tcode

    Hi, I making a report in which i have to display the cost of the materials is being paid to vendor or not? plzz tel me which tables n flow for it. as help will be definately rewarded. Edited by: ric .s on Apr 28, 2008 8:22 AM

  • XML problem with one set of  url tags

    I have all my pages for my site on my xml map and have it successfully submitted to google webmster. All but one link, which google never recognizes for some reason. It is a strange little problem. The following is an example of how I have it written

  • Mass change for QM at operation level in routing

    Dear Experts, I have to carry out mass change for Quality Management at operation level in routing. The steps that I am carrying out for an individual record are as follows. 1.     CA02 2.     Inspection point 100 is maintained at header level 3.