Buttons Left/Right for slideshow

Hi.
I have this slideshow and I need the code for the Left and Right buttons. The problem is that every symbol (slideshow elements) on the slideshow have their own fade-in and fade out. When I click the Left/Right buttons they must play the fade-out of the symbol presently showing and the fade-in from the symbol that follows. I tried to adapt the code from this other post that TimJaramillo is helping me with but... I'm not a Javascript/JQuery savy and it's not a straightforward thing.
Here's the code they I've been trying to adapt:
// Section options settings
// Setting variables and arrays
var currentOption = null; // Index in array_options: 0=a, 1=b, 2=c, 3=d
var requestOption; // Index in array_options: 0=a, 1=b, 2=c, 3=d
var array_options = ["option1a_venhoDeOutraIgreja", "option1b_sintoMePerdido","option1c_queroConhecerEsseJesus", "option1d_naoAcreditoEmDeus"];
var array_optionsBtns = ["sectionOption1a_Btn_venhoDeOutraIgreja", "sectionOption1b_Btn_sintoMePerdido", "sectionOption1c_Btn_queroConhecerEsseJesus", "sectionOption1d_Btn_naoAcreditoEmDeus"]
// Called by timeline.complete/timeline.speclocation event at end of each Option
sym.playRequest = function(){
  sym.getSymbol(array_options[requestOption]).play("lead_in");
  currentOption = requestOption;
// Called on button click
sym.btnClick = function(request) {
  requestOption = request;
  if(currentOption !=null){
    sym.getSymbol(array_options[currentOption]).play("lead_out");
    sym.getSymbol(array_optionsBtns[currentOption]).play('option_exit');
  else{
    sym.playRequest();
Stage / compositionReady
sym.getComposition().getStage().playRequest();
Symbols with fade-in/fade-out —» Default timeline / complete
sym.getComposition().getStage().btnClick(0,1,2,3); // 0,1,2,3 index of array = a,b,c,d
Buttons —» Click
I also need that, the first time the slideshow appears, it plays the first item automatically (only the 1st one).
And here's a schematic of what I want:
And my Edge project files ZIP.
Pedro

Hi Pedro,
Edit: I just saw that you want the first slide to autoplay. You should be able to tweak my code to make this happen. If not let me know. I also just saw that you want the slideshow to loop after the user gets to the far right. This is a simple tweak as well. Let me know if you need help with this.
Here is a working example for you. Click on the right arrow to show the first slide. Then click left or right to show prev/next slides.
www.timjaramillo.com/code/edge/pedro_test/option2b_quemTrabalha.html
Source:
www.timjaramillo.com/code/edge/_source/pedro_test.zip
Most of the code is similar to a simple image gallery. But since you want to wait for outro animations to finish, it's a little trickier. I had to add vars to track request, and current anims.
Stage.compositionReady code pasted below:
// vars -----------------------------------------
         // Section options settings
         // Setting variables and arrays
         var currentOption = null; // Index in array_options: 0=a, 1=b, 2=c, 3=d
         var requestOption; // Index in array_options: 0=a, 1=b, 2=c, 3=d
         var array_options = ["option2b_quemTrabalha_1_presbiterio", "option2b_quemTrabalha_2_musica", "option2b_quemTrabalha_3_multimedia"];
         var array_optionsBtns = ["sectionOptions_article_SlideBtnRight", "sectionOptions_article_SlideBtnLeft"]
         var trackIndex = null;
         // funcs -----------------------------------------
         sym.onClickLeft = function() {
                   if( trackIndex >= 1 ){
                             trackIndex--;// decrement index
                             sym.initArticle(trackIndex);
         sym.onClickRight = function() {
                   // first time
                   if( trackIndex == null ){
                             // init first obj (array index starts at 0)
                             trackIndex = 0;
                             sym.initArticle(trackIndex);
                   }else          if( trackIndex < array_options.length-1 ){  
                             trackIndex++;// increment index
                             sym.initArticle(trackIndex);
         sym.initArticle = function(request) {
           requestOption = request;
           if(currentOption !=null){
             sym.getSymbol("option2b_quemTrabalha").getSymbol(array_options[currentOption] ).play("lead_out_from_left");
           else{
             sym.playRequest();
         // Called by timeline.complete/timeline.speclocation event at end of each Option
         sym.playRequest = function(){
                               sym.getSymbol("option2b_quemTrabalha").getSymbol(array_options[requestOption] ).play("lead_in_from_left");
                               currentOption = requestOption;

Similar Messages

  • The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my doc

    The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my dock has resided at the right margin so all my slider manipulation over countless editing sessions in Aperture has been ingrained to work at the left margin -- but, the vast majority of the time, the HUD overlaps the image I am editing in this 'unlocked' mode. 
    Every occasionally I enter Full Screen View and it positions on the left margin *without* superimposition...(!) My great joy is modulated into aggravation, however, should my tracking cursor drift all the way 'out of bounds' -- to call in the hidden pane of adjacent images sequenced in the library... This dramatically shrinks the Full Screen display and re-locks the HUD; if I toggle the switch to re-xpand the image it re-positions at the right margin!!!!  I SOOoooooo wish I knew how to control the default 'locked' margin of the HUD in Full Screen View...

    Drag it over to the Left. Then lock it there.

  • Add tool tip to left right button in JTabbedPane??

    Hi,
    I am using a tabbed pane with follwong setting.
    tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
    So when the no of tab is more a left right button appears.
    I want to add tool tip to these button
    How do i get the instance of these buttons
    thnx
    Neel

    try this for east/west, similar for north/south
    (hopefully there's an easier way)
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
      public Testing()
        setLocation(300,200);
        setSize(150,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JTabbedPane tp = new JTabbedPane();
        tp.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        tp.setUI(new MyUI());
        for(int x = 0; x < 12; x++)
          JPanel p = new JPanel();
          p.add(new JLabel(""+x));
          tp.addTab(""+(char)(x+65),p);
        getContentPane().add(tp);
      class MyUI extends javax.swing.plaf.metal.MetalTabbedPaneUI
        protected JButton createScrollButton(int direction)
          if (direction != SOUTH && direction != NORTH && direction != EAST && direction != WEST)
              throw new IllegalArgumentException("Direction must be one of: SOUTH, NORTH, EAST or WEST");
          return new ScrollableTabButton(direction);
        private class ScrollableTabButton extends javax.swing.plaf.basic.BasicArrowButton implements javax.swing.plaf.UIResource,SwingConstants
          public ScrollableTabButton(int direction)
            super(direction, UIManager.getColor("TabbedPane.selected"),
                             UIManager.getColor("TabbedPane.shadow"),
                             UIManager.getColor("TabbedPane.darkShadow"),
                             UIManager.getColor("TabbedPane.highlight"));
            if(direction == WEST) setToolTipText("<<<<<");
            else if(direction == EAST) setToolTipText(">>>>>");
      public static void main(String[] args){new Testing().setVisible(true);}
    }

  • Can Trackpoint left/right button definition be the same to Touchpad?

    I am used to using external mouse with left hand, but using Trackpoint with right hand. However, in the UltraNav utility, when I swap the left/right button for external mouse, the Trackpoint is also affected by this swapping.
    What I want is external mouse for Left hand and Trancpoint for right hand. Howeve I can't set that for Trackpoint specifically. Can anybody help me on this?
    So many thanks!

    Hi Batterry,
    There is no need for removal of the product . You can simply launch the product , click on Help>Sign out . Close the product and sign in with the new user's Adobe ID & Password. This should activate the product .
    Cheers,
    Kartikay Sharma

  • My mouse can not click to anything left, right or the middle mouse button does not work

    I am using a 24 inch imac and the problem is suddenly my mouse can not click to anything left, right or the middle mouse button does not work i can see cursor moving and i can use the features of the keyboard but my mouse dies. I tried to plug in another mouse magic trackpad and my tablet but each has the same problem. I can not click to anything but cursor is moving and computer is not frozen. I have to shut it off from the power button when this happens. Do you have any idea what can cause this and how can i fix this?

    Reset the SMC 2-3 times. Click Intel iMac SMC and PRAM resets for instructions.

  • Alt shortcuts not working for alt-left/right or for é, í etc

    Hi guys,
    I've had this problem for a while now… Essentially, the issue lies in the alt-shortcuts for left and right where one is usualy able to 'word jump', and the creation of accented characters like é and í using the alt-e shortcut. All other alt functions appear to work fine for the moment. The alt-left/right shortcut still works when shift is held down, and highlights all the characters that have been passed over, as it should. The output for alt-e is completely blank, and the alt-left/right output is nothing, unless shift is also held.
    I have a British English MacBook Air keyboard on Mountain Lion, and I have set it to that layout, and I regularly switch between this and greek for scientific formulæ. I've fiddled around with language and input settings trying to get it to work again to no avail, and there are no shortcuts programmed to that to my knowledge. I have checked on a guest account and it seems to be account specific. Ideally I'd like to keep this account without migrating everything over - does anyone have any ideas with regards to how to track down where the problem is?
    Thanks in advance to any responses!

    If only alt + e is not working, double check system preferences/speech to make sure it has not been set as a trigger for text to speech or speech recognition or whatever.

  • Command to move content left/right in Smartform label for zebra printer

    Issue : Command to move print content left/right in Smartform label for zebra printer.
    Requirement : If you changed the printer setting top position and left position, Print should start from a specific (X,Y) position.
    I am facing an issue while printing a smartfroms in different zebra printer.  We had tried all
    S_LZPL_SETUP_X  (Where X is LH/SPD/MD/PM/FT )
    But these command are not working in smartforms.
    We had used ZPL II printer command like u2018LH X,Yu2019  and u2018FT,X,Yu2019  in main window as well as in subsequent windows. But that also not working.
    Please advice.
    dinesh.

    Hi,
    If you follow notes #750002 and #750772 and use a smartforms and device type LZEB2, then the you cn just adjust the position of the text in the smartform. e.g. Use tab-stops, spaces or adjust the position of the window. There is no need to use ZPL2 commands directly.
    Regards,
    Aidan

  • Is it possible to have dual screens for two Pages documents or APPs? In a Windows system you use control left/right

    When trying to work on multiple documents or apps, I like to have a dual screen where by i can see two things at once. This worked when I used  a Window's system by pressing Control left/right and i could use both at the same time.
    Is this posible to do using a Mac Air?

    both VMWare Fusion & Parallels Desktop for Mac can use a bootcamp Windows installation as VM exactly like you want.

  • Keyboard navigation with left right keys for a ring

    Hello,
    is it possible to use the left/right keyboard keys to control a ring? They do not appear in the keyboard-navigation properties.
    It has to work that way, that I can move with the keys through the ring-entries and select the desired entry with <enter>
    Many thanks in advance,
                        Magnus

    Hi Magnus,
    Sorry, I haven't found how to do exactly what you're asking for... I made a small VI in which if you press "left" or "right", the ring gets the "key focus" and then you can "scroll" the value with the up/down arrow, but you can't see all the value like if you actually clicked on it...
    Hope this helps...
    BTW, I don't know in which context you are using LabVIEW, but this point is - IMO - not worth spending hours
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Untitled 1.vi ‏18 KB

  • Left,right button, i cloud boxes are missing top left side of screen

    My gray squares boxes which were showing a left, right button, i cloud box in mail are now blank in mail

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • How to use Left & Right Functionality for Strings..

    Please help i am unable to find Left & Right Functions in Oracle 11g.. Instead i just found Substr who can be a replacement for Left but not for Right..

    Alex Nuijten wrote:
    Atari Basic ruled!
    http://en.wikipedia.org/wiki/Atari_600XL#Newer_XL_machines
    First computer I ever saw was in a research laboratory at a Polytechnic (before they all became Universities). I was left with some research students by my mum while she went to a lecture (I was only about 8 at the time) and they asked me my name, fiddled with some wires and switches and lo and behold, my name appeared on a TV screen. Wow! I was hooked from that moment on. There was no such thing as home computers back then. LOL!

  • Audio slides to either left or right for no reason

    On my powerbook the audio setting slides a bit to the left or right for no apparent reason. I'll just be listening to itunes and all of a sudden the sound is coming out more left or right without warning or reason. I've locked my prefernces and it still happens. I write music as well using Ableton Live and it happens then too and that's a real pain in the butt. It all started at first when my friend installed his version of Tiger on my powerbook. Then I reinstalled my original os and everthing was fine. Then due to needing Tiger to run a new Synthesizer properly I had to buy my own copy of Tiger which I did from mac directly. And low and behold the same problems are back. As well my keyboard stopped lighting up when I first installed Tiger, then worked again when I installed the original, and back to crap with the new Tiger....

    I also experience what might be the same problem.
    For me, the balance slides all the way to either the right or left. I suspect it happens when I plug the computer into a new display or sound configuration. For example, the audio will work fine in my office with headphones, and then when I get home, plug into the projector and speakers, the audio will be all the way to the left.
    Maybe there's some mystery keystroke shortcut we're doing by accident?
    I'd very much appreciate help with this annoying problem.
    1.67 GHz G4 PowerBook   Mac OS X (10.4.4)  

  • Gesture swipe left or right for Coverflow layout source code

    Hi Don Kerr Can You please post gesture swipe left or right for Coverflow layout source code

    I strongly agree and missed the three-finger swipe.  I managed to figure it out, with some searching online and in preferences.  Here's how I got it back.
    1. In the Trackpad Preference, go to the third tab, "More Gestures".
    2. Mouse over "Swipe between full-screen apps".  It will show a short demo video.
    3. Just below, where it says "Swipe left or right with three fingers" you can click to change the shortcut.  Change it to "Swipe left or right with four fingers".
    4. Mouse up to "Swipe between pages".  Change its shortcut to "Swipe left or right with three fingers".
    5. Rock and roll.
    FYI, the default seems to be "Scroll left or right with two fingers".  That invokes an animation, and uses Apple's new "natural" scrolling direction.  To me, it's not natural, because then I move my fingers backwards (to the left) to go forwards in my history.

  • Anchor a button upper right in a panel?

    Have to anchor a button upper right in a panel.  Need it to stay anchored even when I use resize and move effects on the panel.  Want the button up top, not in the panel's content pane.
    The only way I know to get a button up there is to put it in the panel's titleBar.  If I want it to be anchored I'll have to put it in a container that supports constraints, like a Canvas, before putting it in the titleBar.  When I do this, constraints seem to go out the window.  They work somewhat but behave abnormally. 
    Here's a sample app (2 files) implementing this approach.  Compile and click the button down below.  The large panel with the button in its titleBar is supposed to shrink and hide behind the little video window.  It does, but the button in its titleBar doesn't go along for the ride.  It's not constrained.  Is there another approach to this?
    Main app file (constraints.mxml) followed by custom panel file (CustomPanel.mxml)...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:custom="*"
        layout="absolute"
        initialize="init()">
        <mx:Script>
            <![CDATA[       
                [Bindable]
                private var vidX:Number;
                [Bindable]
                private var vidY:Number;
                [Bindable]
                private var vidW:Number;
                [Bindable]
                private var vidH:Number;
                [Bindable]
                private var panelX:Number;
                [Bindable]
                private var panelY:Number;
                [Bindable]
                private var panelW:Number
                [Bindable]
                private var panelH:Number;
                private var open:Boolean = true;
                public function init():void
                    vidX = 20;
                    vidY = 20;
                    vidW = 180;
                    vidH = 120;
                    panelX = 202;
                    panelY = 20;
                    panelW = 500;
                    panelH = 350;               
                private function onButtonClick(e:MouseEvent):void
                    if(open)
                        inAndDownSize.play();
                        open = false;
                    else
                        outAndUpSize.play();
                        open = true;
            ]]>
        </mx:Script>
        <!--  Effects -->
        <mx:Parallel id="outAndUpSize"
            duration="200">
            <mx:Move
                target="{panel}"
                xFrom="{vidX}" xTo="{panelX}"/>
            <mx:Resize
                target="{panel}"
                widthTo="{panelW}" heightTo="{panelH}"/>   
        </mx:Parallel>
        <mx:Parallel id="inAndDownSize">
            <mx:Move
                target="{panel}"
                xFrom="{panelX}" xTo="{vidX}"/>
            <mx:Resize
                target="{panel}"
                widthTo="{vid.width}" heightTo="{vid.height}"/>
        </mx:Parallel>
        <!--UI elements -->
        <custom:CustomPanel id="panel"
            x="{panelX}" y="{panelY}"
            width="{panelW}" height="{panelH}"
            layout="absolute">
        </custom:CustomPanel>   
        <mx:VideoDisplay id="vid"
            x="{vidX}" y="{vidY}"
            width="{vidW}" height="{vidH}"/>
        <mx:Button
            label="Click"
            horizontalCenter="0"
            bottom="10"
            click="onButtonClick(event)"/>
    </mx:Application>
    CustomPanel.mxml...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute"
        initialize="init()"
        creationComplete="onCreationComplete()">   
        <mx:Script>
            <![CDATA[
                import mx.containers.Canvas;
                import mx.controls.Button;       
                private var button:Button = new Button();
                private var canvas:Canvas = new Canvas();
                private var style:CSSStyleDeclaration = new CSSStyleDeclaration();   
                private function onCreationComplete():void
                    canvas.width = parent.width;
                    canvas.height = parent.height;               
                    style.setStyle("left", 400);
                    button.id = "button";
                    button.label = "b";
                    button.width = 30;
                    button.height = 30;               
                    button.styleDeclaration = style;
                    canvas.addChild(button);
                    this.titleBar.addChild(canvas);
            ]]>
        </mx:Script>   
    </mx:Panel>

    Hi,
    There is not need to use Canvas to position it. override the updateDisplayList method and move the button. Check the code below.
    <mx:Script>
            <![CDATA[
                import mx.controls.Button;
                private var button:Button;
                private var style:CSSStyleDeclaration = new CSSStyleDeclaration();  
                   override protected function createChildren():void
                       super.createChildren();
                       button = new Button();
                       button.label = "b";
                    button.styleDeclaration = style;
                    titleBar.addChild(button);
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                    super.updateDisplayList(unscaledWidth,unscaledHeight);
                    button.width = 30;
                    button.height = 30;
                    //move button to the top right
                    button.move(width - button.width - 5, 5);
            ]]>
        </mx:Script>

  • IPhoto 09 - iDVD 09: black Borders left/right AND top/bottom

    Setup: Snow Leopard 10.6.3, iPhoto 09, iDVD 09, all patches applied.
    Source Material: HiDef 3:2 pictures in iPhoto, arranged in a iPhoto slideshow.
    Export: "publish to iDVD" in iPhoto - everything works fine.
    Settings in iDVD: professional quality, Always scale slide to TV Safe area: DISABLED. aspect ratio: 16:9
    Target: Full HD TV Screen 16:9
    Result: the image quality is not great, but ok. But: there are huge black borders left/right (which is perfectly fine given the difference between 16:9 and 3:2) AND on the top and buttom of the TV - which is not acceptable by any means.
    When I start the DVD on the Mac DVD-Player, there are no borders in windowed mode, but in full screen too.
    It seems as iDVD 09 simply ignores the uncecked "scale..." preset box.
    Can anyone confirm this, any suggestions? Setting up the slideshow in iDVD/iMovie itself is not an option here, hence my dad is still struggling to get things right in iPhoto

    Bengt Wärleby wrote:
    If You select to play back in a smaller window eg cmd+2 or on a TV (4x3)
    • still got the border all around ? (it's OK on my Mac (cmd+1 or 2) or on TV)
    No, it's just in fill screen mode.
    Bengt Wärleby wrote:
    This is not an iMovie or Apple problem but due to mixing 4x3 and 16x9 material
    It's 2:3 Material (DSLR Pictures), so this won't help.
    Bengt Wärleby wrote:
    You can try to make this the other way around. Start a WideScreen project and
    now You will get the bordet around the 4x3 material instead.
    Only solution is to crop or enlarg one of the material types to get it right.
    As I stated before, there HAVE to be borders for the 2:3 Material on a 16:9 Screen (unless you do some heavy cropping). But I can see no reason why there should be borders on top/bottom of ANY material. As I see it, it's a problem related to a disfuncional "adjust for TV" setting, not the aspect ratio.
    Thanks anyway.
    Any other comments?

Maybe you are looking for

  • Error message 228, tried EVERYTHING mentioned.

    # Question Error message 228, tried everything mentioned, checked google in everypage related to the error message, fresh install, changing cache, you name it.... I can STILL not install ANY add-on and ive tried to download it via the .xml file and i

  • How do I change the name of my wifi network

    How do I change the name of my WiFi network name on Time Capsule

  • Charts (bar and line) in a tablix

    Hi, I need to do this: As you can see the bar graphic is inside the tablix (this is an excel sample btw), I found this tutorial and it really helped me, the problem is the line chart (this one was good too), in my report looks like this How can I mak

  • API Help -- Extract method results in Catstrophic failure!

    Hi all, We're trying to implement the HFM api to pull data out into a CSV. When we run HsvData.Extract, the call returns an exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) I'm not sure what this means and I can't f

  • Plug Solution Manager data into CR reports

    Hi *, my first post, so apologies if I'm in the wrong Forum or doing some other typical newbie things.. My management asked me to find out whether it is possible to connect the data from solution manager within my crystal reports!? Are there any buil