Next & Prev Button functions from an array

Help. I'm new to actionscript and am trying to do something
simple like use a 2 frame HTML page with navigation in top (Flash
obj) and plain html stuff in the bottom or main frame.
I declared these global var...
//global
var lssnPages = new Array('lssn_01.htm', 'lssn_02.htm',
'lssn_03.htm', 'lssn_04.htm', 'lssn_05.htm',
'lssn_06.htm','lssn_07.htm', 'lssn_08.htm',
'lssn_09.htm','lssn_10.htm', 'lssn_11.htm',
'lssn_12.htm','lssn_13.htm', 'lssn_14.htm');
var curPtr = 0;
var lastPtr = lssnPages.length -1
Then in the next button hit state used this code to make it
functional:
//Button
on (release) {
function NextPage ()
if (curPtr < lastPtr) { // don't go to last page
curPtr++;
getURL("lssnPages[curPtr]", "Main");
if (curPtr = lastPtr) { //disable Next button
Even though I get no errors, this doesn't seem to work. It
should???
I'm stumped. Does the Flash AS have to call something on the
html page, like the fscommands?
Help, please!
RGR

And:
getURL("lssnPages[curPtr]", "Main");
should be:
getURL(lssnPages[curPtr], "Main");
otherwise Flash has the browser looking for a file called:
lssnPages[curPtr] instead of the file at the requested index.
kglad wrote:
> no, it shouldn't work.
>
> if that's a true button, the button is on the same
timeline as your array
> definition and that code is attached to your button
that's on that timeline,
> you should eliminate the
>
> function NextPage()
> {
>
> and remove that functions terminal
>
> }
>
Manno Bult
http://www.aloft.nl

Similar Messages

  • Slideshow resize hiding next / prev buttons

    Hi,
    I am trying to resize a jQuery slideshow to fit specific dimensions on a page. The images are resized already which helps.
    However the next / previous button are missing as well as the small dots that lie at the bottom (the ones that light up depending on which img you are on in the cycle).
    aside from editing the slideshow image dimensions, this was the only style I edited to try to get it to match up - made it the same as each image:
    .flex-container {
        width: 772px;
        height: 434px;
    Here's the only HTML for it:
    <div class="flex-container">
        <div class="flexslider">
            <ul class="slides">
                <li>
                    <a href="#"><img src="../test/img/slide1.jpg" /></a>
                </li>
                <li>
                    <img src="../test/img/slide2.jpg" />
                </li>
                <li>
                    <img src="../test/img/slide3.jpg" />
                    <p>Testing Text</p>
                </li>
            </ul>
        </div>
    </div>
    The rest of the styles are from the orig open source:
    http://designmodo.com/responsive-slider/
    Any suggestions as to which style I need to play around with to get this to display to the set image dimensions? And with the correct controls in place? - Thank you!

    Hi,
    You can not disable the next and prev buttons, you may hide them via the Flyout options menu if you want (select the widget> click on the blue circle with the white arrow, on the right top of the widget).
    However, even if the next/prev buttons take you to a different picture, you can still edit them, when they are selected, as the buttons remain same for all the slides.
    Also, the buttons have to be of the same color for each picture.
    Hope it helps,
    Sonam

  • Jquery or code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010

    Jquery or dynamic code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010.
    i have a dynamic SP gridview contains Previous and next
    buttons for paging.
    page doesn't contain Update panel.
    grdXRPSUsers.PagerSettings.Mode = PagerButtons.NextPrevious;
    grdXRPSUsers.PagerSettings.PreviousPageText = "< Previous Page";
    grdXRPSUsers.PagerSettings.NextPageText = "Next Page >";
    grdXRPSUsers.PagerSettings.FirstPageText = "First Page";
    grdXRPSUsers.PagerSettings.LastPageText = "Last Page";
    When i click on Next or Previous page in the gridview it will take more time and showing progress bar in th below.
    As per my client request, i need to change the
    progress bar to Loading image (Wheel at middle of the grid at fething time).
    How its possible either through jquery or Programming(code behind).
    Please help

    Hi,
    According to your description, my understanding is that  you want to add loading image when click the paging button to load the data.
    I suggest you can use Jquery BlockUI Plugin to show a block image when loding data in paging click event.
    Here is a similiar thread for your reference:
    How to display a loading image until a gridview is fully loaded
    More information:
    Jquery BlockUI Plugin
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Next & Prev buttons in Navigation pane appear in skin but not in HTML

    I have customized the standard template and its components in flash according to my requirement and created a skin. When the skin is generated all the images/buttons gets displayed perfectly but on generation with FlashHelp the Next, Prev and Sync buttons do not appear in the HTML format.
    Kindly assist what may be the reason for the same.

    Hi there
    If you have configured things (or more accurately, LEFT them configured for auto-sync - it is configured by default) then the sync button isn't presented.
    You don't see Prev or Next because you either haven't defined or haven't enabled a Browse Sequence. More on that at the link below:
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Gallery problem with next/prev buttons

    Hi,
    I'm working on a photo gallery and I have some weird things
    happening, hence the request for help!
    When the gallery opens, you can click on any picture, the
    main one then appears with various buttons:
    1. Click on the image and you go back to the thumbnails -
    fine
    2. Click on the cross button and it's the same - fine
    3. Don't click on the automatic gallery, it's no on yet! :)
    4. Click on previous and the previous image appears - fine
    5. Click on next and the next image appears - nope, that's
    where the problem is!
    For the previous button, I use this code:
    var previous = "none";
    if (_global.currentImage == 1) {
    previous = _global.photoNum;
    } else {
    previous = _global.currentImage-1;
    _global.currentImage is the number related to the thumbnail
    you have clicked.
    _global.photoNum is the total number of pictures
    After this code, there's all the code for the preloader and
    it ends by defining the new current image (
    _global.currentImage = previous;) and loading it (
    mcLoader.loadClip("images/photo"+previous+".jpg",
    _level0.images_mc.holder_mc);).
    The next button is based on the same code:
    var next = "none";
    if (_global.currentImage == _global.photoNum) {
    next = 1;
    } else {
    next = _global.currentImage+1;
    With at the end
    _global.currentImage = next; and
    mcLoader.loadClip("images/photo"+next+".jpg",
    _level0.images_mc.holder_mc);.
    Here is the problem, there are three situation you use the
    next button:
    1. On the thumbnails, you click any image. When the main
    image is loaded, you click first previous, have the new image
    loaded and then you click next. The next image is loaded and it
    works fine.
    2. On the thumbnails, you click the last image. When the main
    image is loaded, you click next. The next image (which is then the
    1st) is loaded and it works fine.
    3. On the thumbnails, you click any image. When the main
    image is loaded, you click next.
    Here is the problem: the next image is not loaded!
    You can see it here:
    www.theminnesotafats.com/gallery
    When you see that the picture is not loaded, you will have to
    refresh the page to make it work again.
    I hope that those explainations are not too long and that
    somebody could help me. Thanks!

    WHEN 'NEXT'.
          PERFORM scroll_end.
    WHEN 'PREVIOUS'.
         PERFORM scroll_left.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_7100  INPUT
    *&      Form  scroll_end
          text
         -->RT_COLUMNS text
    form scroll_end tables rt_columns type kkblo_t_columns.
      ENDFORM.
    *&      Form  scroll_left
          text
         -->RT_COLUMNS text
    form scroll_left tables rt_columns type kkblo_t_columns.
      ENDFORM.
    i've tried this....the previous error gone..but now i have another error said " the type kkblo_t_columns. is unknown ".
    really exhausting :P

  • Search numbers from an array

    Hai
         Pls help me how to do this,
    My read CAN data is like this
           First frame -10 11 58 05 52 35 F1 52
    Conse. frame 1 -21 04 E8 52 10 E8 56 11
    Conse. frame 2 -22 E4 56 12 E4 62 11 E4
     i want to extract the red coloured numbers from the array.
    Thanks
    sk
    I am using LabVIEW 7.1 & NI PCMCIA CAN card
    Attachments:
    tttttt.vi ‏82 KB

    If instead you want to extract certain data bytes from each message, you should use the 'Index Array' function from the Array palette.
    This will extract individual elements from the array as specified by the connected Index inputs. The image below shows the setup needed to get the elements for your First Frame.
    Ed
    Message Edited by Ed Dickens on 01-18-2007 07:57 AM
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Index Array.gif ‏13 KB

  • Next/Prev in Report row counter

    How do you have the Next/Prev selectors appear with the row counter section at the bottom of reports.
    I created an SQL report, and although I selected use report pagination, the Next/Prev selectors are missing at the bottom of the report with the row counter.
    If I manually create an Next/Prev process, this build buttons outside the report row counter in the report region. Since all my other reports have the selectors inside the report with the counters, it looks goofy to sudddenly have Next/Prev buttons outside the report.
    Thanks

    Kevin,
    Edit the report's attributes and verify that pagination is indeed turned on. Also, are you using HTML DB 1.6?
    Sergio

  • Conditional function for next/prev links in gallery

    Has anyone written a function to conditionally show/hide the
    next/prev
    links?
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/

    Maybe that was poor phrasing. I'm wanting to the links only
    when necessary.
    I don't them to loop. In other words I only want the previous
    button
    available when there is a previous image. So it wouldn't show
    on the first
    image. The same with the next link.
    Bryan Ashcraft (remove brain to reply)
    Macromedia Certified Dreamweaver Developer
    Paragon Visuals ::
    http://www.paragonvisuals.com
    Adobe Community Expert (DW) ::
    http://www.macromedia.com/go/team/
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Got Questions? Get Answers
    DWFAQ ::
    http://www.dwfaq.com
    PVII ::
    http://www.projectseven.com/go/
    "kinblas" <[email protected]> wrote in
    message
    news:e5ublf$kr4$[email protected]..
    > Just curious ... why would you want to conditionally
    hide them as opposed
    > to just removing them? What would your condition be?
    >
    > --== Kin ==--

  • How to make next and previous button function

    Hello
    Can anybody help me with how to achieve next and previous button function such as the one at www.bestbuy.com?
    I would appreciate any help or suggestion.
    Thank you!

    if you're not familiar with flash it might be easiest to place your initial "page" in frame 1, the 2nd (or next) page in frame 2, the 3rd/next page in frame 3 etc.
    place your previous and next buttons in their own layer that spans the main timeline (which will have as many frames as you have "pages").  give them instance names (say prevBtn and nextBtn).
    you can then use the following code placed in frame 1:
    var tl:MovieClip=this
    prevBtn.onRelease=function(){
    tl.prevFrame();
    nextBtn.onRelease=function(){
    tl.nextFrame();

  • Pass string array to Oracle function from Web page

    Hi. I need to pass a two-dimensional array of string values to an Oracle function from an ASP.NET page. Is there an efficient way to accomplish this? I'm thinking I'll have to create a long string with special delimiters,
    |12345^4.000|67890^3.670|.....
    I'd parse the string on Oracle and break it into its component parts. In this example, each "record" is separated by the bar "|" and each field is separated by the up arrow "^". So each record has two fields.
    Is this a good approach? Your input is much appreciated. Thanks.

    In PL/SQL, it is easy enough to define a record type with two attributes and declare a store procedure that takes in an array of those parameters. I know that from Java it is possible to create and pass in such an array. I would suspect that the same is possible from .Net but I am not a competent .Net developer.
    Justin

  • Since I've updated to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.

    Since I've updated from iOS 5 to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.
    This is working fine for albums but are broken for audio books.
    The back button refers always to the first chapter of the audio book (very annoying if you are in the middle of an audio book) and the nex button goes one level higher back to the selection of the audio book itself.
    In iOS 5.0 it was still possible to navigate throught the audio book chapters using these buttons.
    This still happens in iOS 6.1.
    Is this a known bug?
    Does any solution exist?
    Thx,
    Oliver

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • RH11. Script to make Next and Prev buttons work as they do in a standard browser?

    Hello.
    I know that the Next and Prev button arrows in the navigation pane take the user to the next or previous topic specified in the browser sequence. This means that the Help author has to design one or more browse sequences, which can be time-consuming and hard to maintain.
    Has anyone created a script, or know if one exists, that can turn the Next and Prev buttons into buttons that perform standard browser actions. For example:
    User opens Topic A.
    User opens Topic J.
    User presses Prev button.
    Help opens Topic A.
    At the moment the results depend on the browse sequence.
    User opens Topic A.
    User opens Topic J.
    User presses Prev button.
    Help opens Topic I (the topic preceding Topic J in the browse sequence).
    Thank you.[
    Carol Levine

    What you are looking at are the properties for the Single Source Layout. Notice that your properties have a location that says "Default Window:"
    That option allows you to choose the window I was showing earlier. So you need to click View > Pods > Project Set up, then expand the Windows category and change the settings for the CHM window. You may not actually have one defined. For example, in the image below, all I see is a WebHelp window. And in that case, I need to right-click, point at New Window and choose Microsoft HTML Help. Then you will see the image I showed earlier.
    Once you have your window defined, you then choose it in the Single Source Layout settings.
    Cheers... Rick

  • Additional Next Button Functionality

    I would like to see some additional next button functionality.
    For example when I am in Residential Products and Services I will read each of the sections.  if I am in Fios Internet and which to go FIOS TV Programming I wish there was a next button that would take me to Fios TV Programming (which is the next topic) instead of having to go back to Residental products and services and then choose Fios TV programming.  I read each section so having that next button functionality would help moving around here a bit quicker.
    Jim
    Solved!
    Go to Solution.

    Jim,
    Thanks for your suggestion. Have you tried using the "Go To" menu, which is just beside the board search button? It allows you to jump to another board fairly easily.
    Not exactly what you ask for, but maybe it will help in the interim?
    Becky

  • Migrating array functions from AS2 to AS3

    The code below is meant to load randomly selected "koan swfs" into a movie clip on the main root timeline called "koan_loader_mc" using a loader called "koan_loader."  Are the actions of this array correctly migrated to AS3?  Thanks for your help
    // creates function called at the end of koan_#.swfs  
    // this code is in the first frame of the root timeline
    Array.prototype.shuffle = function() {
    for (var ivar = koan.length-1; ivar>=0; ivar--) {
    var p = random(ivar+1);
    var t = this[ivar];
    this[ivar] = this[p];
    this[p] = t;
    MovieClip(root).index=0;
    var koan_loader:Loader = new Loader();
    var koan:Array =["swfs/koans/koan_1.swf","swfs/koans/koan_2.swf", "swfs/koans/koan_3.swf", "swfs/koans/koan_4.swf", "swfs/koans/koan_5.swf", "swfs/koans/koan_6.swf", "swfs/koans/koan_7.swf", "swfs/koans/koan_8.swf", "swfs/koans/koan_9.swf", "swfs/koans/koan_10.swf", "swfs/koans/koan_11.swf", "swfs/koans/koan_12.swf"];
    koan.shuffle();
    koan_loader.load(new URLRequest(koan[index]));
    MovieClip(root).koan_loader_mc.addChild(koan_loader);
    This is the code in a frame at the end of koan swfs:
    MovieClip(root).index++
    if(root.index>_root.koan.length-1){
    root.index=0;
    root.koan.shuffle();
    var koan_loader:Loader = new Loader();
    koan_loader.load(new URLRequest(koan[root.index]);
    MovieClip(root).koan_loader_mc.addChild(koan_loader);
    loadMovie(_root.koan[root.index]);

    function shuffle(a:Array) {
    for (var ivar = a.length-1; ivar>=0; ivar--) {
    var p = random(ivar+1);
    var t = a[ivar];
    a[ivar] = a[p];
    a[p] = t;

  • Display an array with Next-n Record functionality

    I want to show results from an array that's created from
    query results:
    <cfif (WebEx is 0 or WebEx is "") OR (RPMSClassesUp.WebEx
    is 1 and Compare("#dani#","#daniNow#") gt
    0 and
    Compare("#DateFormat(RPMSClassesUp.StartDate)#","#nowDate#") is 0)
    OR (RPMSClassesUp.WebEx is
    1 and
    Compare("#DateFormat(RPMSClassesUp.StartDate)#","#nowDate#") gt
    0)>
    <cfset session.a_up
    [1]="#RPMSClassesUp.UniqueClassID#" />
    <cfset session.a_up[2]="#RPMSClassesUp.Title#" />
    <cfset session.a_up
    [3]="#RPMSClassesUp.ClassDescription#" />
    </cfif>
    I could loop through the results, but I'd like to only display
    20 records per page like you can do
    <CFOUTPUT query="RPMSClassesUp" STARTROW="#url.RowStart#"
    MAXROWS="#RecordDisplay#">
    content
    </CFOUTPUT>
    Thanks.

    Hi
    "torque-speed measurement.vi" is the DAQ loop. Collected data are passed by a shared variable with a RT FIFO to "display.vi". The FIFO setting is uploaded in previous post. The DAQ uses 1kHz loop.
    I think the RT FIFO settings are quite important to this problem. If I set it to 1 Point per Waveform instead of 100, the problem is gone. 
    Please disregard the error when loading it.
    Attachments:
    display.vi ‏23 KB
    torque-speed measurement.vi ‏44 KB

Maybe you are looking for

  • IPod Not being recognized with all the software updates

    I've been without my iPod for a few weeks now and I desperately want it back. I dropped it a while back, and have come online to look up stuff to restore it, but none of that is working for me. I reset it by pressing "menu" and "Play" at the same tim

  • Why isn't my iPod Shuffle (Generation 2) showing up or being recognized on my [Hewlett Packard] PC running Windows 8?

    When I connect the iPod Shuffle to the computer via USB port, the light blinks orange 3 times, then green for half a second, and is recognized as a drive at first.  But then the green light turns off and is no longer recognized as a device (device di

  • Scanning

    I use an HP Photosmart C8180 all-in-one printer/scanner, connected wirelessly to an iMac running 10.7.5 HP software was "updated" but I think this was something related to os 10.7.5 rather than HP, but I am not certain. Since the change in software I

  • IMac cannot find system folder.

    I purchased my iMac in March. By June I had it back at the Apple Store for repair. They replaced the mother board. Now it is doing the same thing again. At start-up it cannot find the system folder most times. If it does start up and I let it go to s

  • How do I get photos from my pc to my iCloud Photo Library?

    How can I get all my pictures on iCloud from my pc? (Windows 8)or at least selected ones that I want to share in an album? I have iCloud photo Library turned on on both my iPhone and iPad and I have iCloud for windows installed. I have direct iTunes