How can i control when my animation starts/stops with external JS

I am making a web app that will allow you to go through "pages" by clicking and dragging or sliding your finger (touch devices).
I am wanting to make a seperate animation on Edge for each page and play it when the current page is on witht the relevant edge comp.
So far my code allows me to know what page is being viewed and that the animation should be played, however I can not figure out how to play the comp.
ie.
WHEN page = 1, play composition "page1".
     If currentPage is not currentPage, stop composition "page 1".
Please could you help me as I've been racking my brain all day to figure this out.

Hi,
You'll find a tutoriel here.
Then, example #1 and example #2.

Similar Messages

  • How can I control the video playback start and end time?

    I'd like to be able to start a video/audio playback at a particular point in time say 3 seconds from the starts of the video and play it for only 3 seconds. How can I set the unique start and end points rather than play the whole video. I'd also like to be able to do this using the SeriesElement so I can set the start and end play points for a series of stacked videos. How can this be achieved?

    Not sure I understand the question.  Can't you just append the param to the URL?  Like so:
    var url = new URL("http://video-research/video.f4v?start_time=500");
    If your question is more about playing a subclip of a progressive video, that's not something OSMF has support for.  You'd need to write a server script which checks for that parameter and then returns the relevant portion of the requested file.  (This is typically referred to as "pseudo-streaming", if you Google that term you'll find a wealth of info.)

  • How can I control a HP 33120A waveform generator with the serial port of my PC?

    Hello,
    I want to control a HP 33120A waveform generator with my PC using the serial port. I don't have any idea about how to do it. If you've done it or if you know how I can do it, please give me some indications.
    Thanks
    Jean-Baptiste Paillet
    PS: I don`t have G PIB port

    The answer to your cross-post in the LabVIEW General group seems to be right on the money:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000032200000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Regards,
    John Lum
    National Instruments

  • SPM 2.1 Scheduling Option - Daily. How can I control when during the day?

    Hi All,
    I understand that when you enable the "scheduling" option in the report, the report runs in the background and this caches the data to table opmdm_precalc_a.
    You can set scheduling to daily or weekly runs. The weekly load can be set in the "Application Properties" menu e.g. to Sunday.
    If I chose "daily", what time is it run then? The same time as the alert in "Application Properties"?
    I've had a quick look at OPM* and RSXA* tables but couldnt see anything obvious as a clue.
    Many thanks for any help
    Neil

    Hi Neil,
    Yes, you are right.  The time of execution is the same as the one for alerts.
    Regards,
    Rohit

  • How can I control my iphone 4 (music) wirelessly with my macbook?

    Does anyone know how I can remotely change the song on my iphone through my macbook? I link my iphone up to my music system and would really like to be able to change songs through my macbook.
    I can use the Remote app to control my macbook through my iphone and really want an app that works the other way round.
    Thanks,
    James

    This: http://www.headlightsoft.com/expod/
    or this: http://www.macroplant.com/

  • How can I control my pc and other computers with my ipod touch 5 gen ?

    Hello
    I have recently bought an iPod 5th Generation and I'm very happy with it !! My question is.
    I have an old laptop iBook and it is connected to a hard disk where I stock my music.... So basically, this old computer is my jukebox. The only problem is that the screen on the iBook doesnt work very well (I must press really strong alongside the mousepad in order to see something). So I was wondering if I could control and see (select music and more), from my iPod touch ? Should I absolutely need to have an Apple TV ?
    Is there an APP so I could control my iBook from my Ipod ?
    I also have another laptop (PC) and I was wondering if I could control everything from my ipod touch ? It could be really fun.
    Many thanks, C.

    The is the Apple Remote app that will allow yo to plave your iTunes music via the iPod.
    There aree also apps that allow controllig the entire computer via the iPod. See:
    http://gizmodo.com/5966724/how-to-control-your-computer-with-your-phone

  • How can I control the music on my iPad with my iphone?

    I can't seem to find a way of controlling the music on my iPad from my iPhone

    You can't. You cannot remote control an iOS device from another device if that is what you are trying to do.

  • Hello!!!ho​w can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controllin​g its amplitude and frecuency.​How can it be done with OPC server?I already have the NI CD of OPC drivers.Th​ank you

    Hello!!!how can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controlling its amplitude and frecuency.How can it be done with OPC server?I already have the NI CD of OPC drivers.Thank you

    Hola Jose David, que OPC estas utilizando?, Si tienes comunicación entre tu computadora y PLC pero falla la comunicación entre el OPC y el PLC? La configuración y direcciones entre los dos es correcta? La comunicación es por cable serial?
    Espero tus respuestas
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

  • I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • When opening a Photoshop file with Bridge, how can I control which version of Photoshop the file wil

    When opening a Photoshop file fthrough Bridge, how can I control which version of Photoshop the file will open in?
    I store my PSD files adjacent to the original RAW file from which it was derived.
    If I open the file folder and double click on that PSD file, it opens in CS6. But,if I use Bridge (CS6) to navigate to and open the same file, it first opens Photoshop CS5 and then opens that PSD file in CS5.
    How can I control which Photoshop will open a file I select when opening it through Bridge?.

    Interesting, but it doesn't give a clue what I'm supposed to do. No Photoshop ducuments listed.
    Look at the PSD file on the location Curt provided and search for Photoshop Document. Next to it ideally should show Adobe Photoshop CS6 if you have Bridge CS6 open. Click on it to provide the fly out menu and choose the correct Photoshop from the list.
    But probably something went wrong with your install. By default Bridge chooses the latest version of PS to open its file in.
    Maybe a reset of the preferences might also help you. Can you provide more details about OS version etc.
    And do you have a good reason for keeping your Raw and finished files in the same location. Personally I keep them apart and use a proper file name convention (yyyymmdd and details) so I can easily search for the DNG files in my archive if I needed them but I don't make mistakes in opening the wrong one

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • After installing Mavericks my iMac opens with the "rolling surf" desktop. I can then start my preferred desktop from a saved 'photo but when I retsart the iMAc it reverts to "rolling surf". How can I get it to remeber to open with MY choice rather than Ap

    After installing Mavericks my iMac opens with the "rolling surf" desktop. I can then start my preferred desktop from a saved 'photo but when I retsart the iMac it reverts to "rolling surf". How can I get it to remember to open with MY choice rather than Apple's?

    I did a little research on this, as I found some strange things with the .plist files.
    It appears that Apple has changed the way that the plist files are handled, and there is now an extra step in the trashing-the-.plist-file fix:
    1. hold down the option key
    2. in the Go menu in the Finder, scroll down to Libary
    3. in Library, find Preferences
    4. in Preferences, find  com.apple.desktop.plist  and drag it to the trash.
    5. go to Applications > Utilities > Activity Monitor
         1. Sort by Process Name and look for two processes named cfprefsd.
         2. Make sure you select the one that has your user account, not "root", listed as the User.
         3. Click the X up at the top left to kill that process
    5. restart
    6. this will generate a new .plist file, so you will have to reenter your preferences.
    Sorry for the confusion. Could you try this and let us know-

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • What is iMovie doing after update?  How can I tell when it's done?

    "Updating" a whole lot of old iMovie events to the new iMovie 10 library.
    When I tried to trash the old events the OS warned that they were "still in use".  No problem, I thought.  Shut down iMovie, and then trash the old events.
    Well, when you try to shut down iMovie it tells you there are still "tasks being completed in the background" and that if you shut down they won't ever be completed.
    so......
    What are these tasks?  (iMovie 10, after a big import, is using about 20-25% of a CPU continuously, according to Activity Monitor)
    If I do shut down despite the warning what are the consequences?
    How can I tell when it's done and I can safely shut down iMovie? (I guess I sould wait and see if it ever stops warning me).

    Did you read the manual? It's usually explained on what does all this stuff mean on the screen. I don't think the manual that comes with the Micro isn't the player's guide but if you install the software I think, you can look it up by going through Start>Program Files>Creative>Creative Zen Micro>User Guide. This is the default directory.
    Anyway, yes your Micro is charging and if you want to play your music on your MP3 player while it's charging you can use Nomad Explorer to play the music on your computer or use Creative Mediasource to play the music and hear it from your MP3 player. You can't control your MP3 player so just use your computer. It's not that hard to learn.

Maybe you are looking for