Trying to understand variables in Edge Animate

I am writing ALL my code in the document.compositionReady window and have a few questions.
1. I am trying to understand the use of sym.setVariable() vs using the var keyword. It seems that if I declare
var myVar = "test" then the variable myVar is available in all my functions further down the code. So when would I use sym.setVariable("myVar","test")?
2. Since I am writing all my code on document.compositionReady is it possible to edit the code in Dreamweaver. (I like the find and collapse functions in DW). I tried opening the edgeActions.js file and making some edits but they did not seem to always work.
3. Back to variables. If I define a variable within a function by using the var keyword, it seems to only be available within that function. Is that true? How do I define a variable in a function that is available globally?
4. Clearly I am mixing javascript, jquery and edgeAnimate API in my code. Is that ok? I am making my animations work but concerned that I am not doing this efficiently/effectively.
Thanks for any tips, advice, comments.

Hi, Marlene-
#2: You should be able to use any editor to edit the edgeActions.js file.
#1,3: Variables can be declared for local scope (within the function) and attached to various scopes within the composition.  I tend to use variables attached to various symbols to maintain state within that particular scope.  For instance, in the floral sample file, I attached the game score to the game board symbol so that when it was destroyed and recreated, it would reinitialize to 0.
http://html.adobe.com/edge/animate/showcase.html
#4: That should be fine.
Hope that helps answer some of your questions!
-Elaine

Similar Messages

  • How do I pass a variable from edge animate to an external JS?

    I need to pass a variable value from Edge Animate to an external JS file. How can I do it?

    Not sure if this is the best way ,but works
    Set the variable as a property of a global variable
    Like
    SET
    window.myVar = 'your value';
    AdobeEdge.myVar = 'your value';
    Read
    window.myVar
    AdobeEdge.myVar

  • Adding own javascript to edge animate

    I'm having a bit of trouble adding my own javascipt to an edge animate project. I created a website that has javascipt in it. I am trying to recreate it using edge animate because I was interested in using edge animate to take the site up a notch... basically I have a template of what I need the site to do with the existing javascipt I have, but I haven't gotten it to work integrated into edge animated yet.
    I imported all of the images I have from the existing website into edge animate and then relabled all of the instances on the stage to reflect what I have called them in the javascript. I've tried importing my javascript file into the "scripts" section and then just linking to the source in the main html page that edge generates but the javascript doesn't work. Then I've tried putting parts of the script into the CompositionReady panel and onto the button I want clicked directly in the elements.... this works ok, except I have to change the syntax a little (not too much of a pain except when I don't think the edge animate javascript has the same functions).....I'll post below and see if someone can help me get this working either by just linking to the file directly from the html or making the script campatable in edge syntax and posting it in the appropriate element panel. Here is the seperate script from the outside javascript... show I change the syntax and put it directly on the"checkbutton" button in the elements (if so, how?) or should I just link to the file (if so, how come when I put a simple link in the header that it doesn't work: <script type="text/javascript" charset="utf-8" src="js/myscript.js"></script>
    script from myscript.js:
    //sym.$("pic1a").hide(); //edge animate syntax when in animate panels.... does my external js sheet have to keep this syntax?
    var carArrayX = [140,140,330,460,650,765];
    var carArrayXcounter = 0;
    var carArrayY = [ 440,440,405,390,390,390];
    var carArrayYcounter = 0;
    $( '#blueCar' ).addClass( "hidden" );
    var counterBox = 0;
        $('#checkButton').click(function(){
         if (counterBox == 0)
             alert("Please choose an answer");
         else if (counterBox > 1)
             alert("Please choose only one answer");
         else if (counterBox == 1)
             $(this).css('background-image', 'url(button_down.png)');
             $("#pic2a").unbind("click");
             $("#pic2b").unbind("click");
             $("#pic2c").unbind("click");
             $("#pic2d").unbind("click");
             $("#pic2e").unbind("click");
             $("#pic2f").unbind("click");
               if($("#pic2a").hasClass("hidden")){
               $("#words_correct").removeClass("hidden");          
               $( '#pic3a' ).removeClass( "hidden" ); //correct answer
               $( '#pic1a' ).addClass( "hidden" );
               $( '#blueCar' ).removeClass( "hidden" );
               $('#blueCar').animate({
                left:carArrayX[carArrayXcounter] + "px",
                top:carArrayY[carArrayYcounter] + "px"
               carArrayXcounter ++;
               carArrayYcounter ++;
               var cookieXcounter = carArrayXcounter;
               var cookieYcounter = carArrayYcounter;
               //console.log(cookieXcounter);
               //console.log(cookieYcounter);
               $.cookie('mycookieX',cookieXcounter,{expires:7,path:'/'});
               $.cookie('mycookieY',cookieYcounter,{expires:7,path:'/'});
               console.log($.cookie('mycookieX'));
               $( '#pic1b' ).addClass( "hidden" );
               $( '#pic1c' ).addClass( "hidden" );
               $( '#pic1d' ).addClass( "hidden" );
              else if($("#pic2b").hasClass("hidden")){
               $("#words_wrong").removeClass("hidden");
               $( '#pic4b' ).removeClass("hidden");//incorrect answer
               $( '#pic1b' ).addClass( "hidden" );
               $( '#pic1a' ).addClass( "hidden" );
               $( '#pic1c' ).addClass( "hidden" );
               $( '#pic1d' ).addClass( "hidden" );;
              else if($("#pic2c").hasClass("hidden")){
               $("#words_wrong").removeClass("hidden");          
               $( '#pic4c' ).removeClass( "hidden" );//incorrect answer
               $( '#pic1c' ).addClass( "hidden" );
               $( '#pic1a' ).addClass( "hidden" );
               $( '#pic1b' ).addClass( "hidden" );
               $( '#pic1d' ).addClass( "hidden" );;
              else if($("#pic2d").hasClass("hidden")){
               $("#words_wrong").removeClass("hidden");        
               $( '#pic4d' ).removeClass( "hidden" );//incorrect answer
               $( '#pic1d' ).addClass( "hidden" );
               $( '#pic1a' ).addClass( "hidden" );
               $( '#pic1b' ).addClass( "hidden" );
               $( '#pic1c' ).addClass( "hidden" );;
        $('#pic2a').click(function(){
          $( '#pic1a' ).removeClass( "hidden" );
          $( '#pic2a' ).addClass( "hidden" );
          counterBox++;
        $('#pic2b').click(function(){
          $( '#pic1b' ).removeClass( "hidden" );
          $( '#pic2b' ).addClass( "hidden" );
          counterBox++;
        $('#pic2c').click(function(){
          $( '#pic1c' ).removeClass( "hidden" );
          $( '#pic2c' ).addClass( "hidden" );
          counterBox++;
        $('#pic2d').click(function(){
          $( '#pic1d' ).removeClass( "hidden" );
          $( '#pic2d' ).addClass( "hidden" );
          counterBox++;
        $('#pic2e').click(function(){
          $( '#pic1e' ).removeClass( "hidden" );
          $( '#pic2e' ).addClass( "hidden" );
          counterBox++;
        $('#pic2f').click(function(){
          $( '#pic1f' ).removeClass( "hidden" );
          $( '#pic2f' ).addClass( "hidden" );
          counterBox++;
        $('#pic1a').click(function(){
          $( '#pic2a' ).removeClass( "hidden" );
          $( '#pic1a' ).addClass( "hidden" );
          counterBox--;
        $('#pic1b').click(function(){
          $( '#pic2b' ).removeClass( "hidden" );
          $( '#pic1b' ).addClass( "hidden" );
          counterBox--;
        $('#pic1c').click(function(){
          $( '#pic2c' ).removeClass( "hidden" );
          $( '#pic1c' ).addClass( "hidden" );
          counterBox--;
        $('#pic1d').click(function(){
          $( '#pic2d' ).removeClass( "hidden" );
          $( '#pic1d' ).addClass( "hidden" );
          counterBox--;
        $('#pic1e').click(function(){
          $( '#pic2e' ).removeClass( "hidden" );
          $( '#pic1e' ).addClass( "hidden" ); 
          counterBox--;
        $('#pic1f').click(function(){
          $( '#pic2f' ).removeClass( "hidden" );
          $( '#pic1f' ).addClass( "hidden" );
          counterBox--;

    I also had the problem of wanting to use custom javascript that I could call from an Edge Animate Composition.
    The solution I found (from a post by hemanth kumar r https://forums.adobe.com/thread/1479495) was to make variables and functions properties of AdobeEdge.
    So in the external .js document a variable is declared and given a value:
    AdobeEdge.myVariableName = "The variable value";
    To use it in a symbol/element:
    alert(AdobeEdge.myVariableName);
    And a function is declared:
    AdobeEdge.myFunctionName(param){...function code...} //param optional
    To call these in a symbol/element:
    AdobeEdge.myFunctionName(param);
    To test this out I created a button on my stage that called a function in my custom .js file that simply called an alert. Once the function works you can expand it to do anything you want (I used it to go to a new html page).
    Peter Small

  • Edge Animate and Windows Vista?

    Having tried to install and use Edge Animate I have had no success at all. The programme does not work with this operating system, and I would like a fix for this, as I want to use the programme. I am dissapointed as having just joined the Creative Cloud system I find this programme is available to me. I have seen that many others suffer from the same problem, and wonder what Adobe will do about it.

    Hi, Tony-
    We're using the other thread regarding the Vista issue to discuss Adobe's response.  Thanks!
    -Elaine

  • Edge animate and Cordova build

    So recently I was trying out some edge commons functions and have gotten them to work on browsers. So I wanted to do a little experiment so I've decided to try compile the project with cordova build. Well was hoping for it to work but it seems like somewhere went wrong and when I run the apk, it wasn't even able to retrieve the list of items from the JSON file.
    basically the program just loads a list of items from the click of a button and you can also click on the black box on the right to display an image.
    //get json information and display
    $.getJSON("content.JSON")
      .success(
      function(data){ console.log("incoming data: ", data);
      $.each(data.shoes, function(index, item){
      var s = sym.createChildSymbol( "template", "content");
      s.$("title").html( item.item );
      s.$("description").html( item.description );
      s.play(index * -500);
      s.setVariable("spotlight", item.spotlight );
      });//each
      });//success
    btw thanks joel pau for helping out previously.
    does anyone here have any similar experiences when trying out cordova build with edge animate?
    here are my files..
    Dropbox - index.zip
    Dropbox - test-debug.apk
    Perhaps there's still some cordova api I'll need to add before compiling??

    Not sure if this helps you. I'm going through the same problem. Even raised this issue here in the forum and nobody could help me. So I sought help forum PhoneGapBuild. Looks like PhoneGapBuild not recognize <audio> of html5, so need to use api audio PhoneGapBuild own. Here's a link to my post. Tutorial on how to make by Chris Griffith. I hope this helps you too.
    http://community.phonegap.com/nitobi/topics/phonegap_build_audio_and_edge_animate_problem? utm_content=reply_link&utm_medium=email&utm_source=reply_notification&reply[id]=14089620#r eply_14089620

  • Create slideshows in edge animate

    good afternoon.
    i am building a website for a web design company i work for. we want to be able to showcase the websites we have built for others by having an animation on our sites website design page that rotates through screenshots of all the sites we have built and when you click on the actively displayed screenshot it takes you to the actual website seen in that screenshot.
    so far the only way i know of doing this is with flash which is what we are using now.
    however this means we are actively discriminating against ios users as apple don't provide flash player on ios.
    so we are looking foralternatives and came across edge animate.
    however i have ran into 2 problems with edge animate that i simply cannot resolve.
    1. while edge animate is great at creating more complicated animations it doesnt appear to be capable of doing simple slideshows by which i mean have an image occupy the entire stage for x amount of time then switch to a different image for x amount of time. instead it treats every image as a seperate layer meaning whichever image is at the front is present the entire length of the animation which is useless for the type of project i am trying to create.
    2. edge animate generates a stand alone html file for every project along with all the imae assets and javascript files which while this helps with compatibility in ensuring more browsers can watch the animation it doesnt give me any way to insert the animation into my website design page.
    any ideas where i can find tutorials that will show me how to overcome these limitations?

    Hey Preran,
    With regards to the help you posted on the forum.
    Any advice on how to incoporate the slideshow to deal with different sized images. I don't want the small ones stretched to fit the original large sized photo but rather scaled up to fit as close fit as possible. I don't mind black space in between.
    Thanks,
    Chaminda.
    I started a thread because I missed this post the first time I was going around.
    Edge Animate Slideshow (Unlimited pictures Help)

  • Whenever I try to start Edge Animate CC 2014 it tells me that I am missing d3dx9_43.dll.

    Hello, This has been happening to me since the regular Edge Animate CC. Whenever I try to start the program it simply tells me that I am missing d3dx9_43.dll. I tried installing the latest directx 9.0 from june2010 and I even took the seperate dll from it and tried copying it into my edge animate's directory and its still giving me this error. I also tried to run as administrator and it did not help at all. My operating system is Windows 7 Ultimate 64 bit

    DirectX should be installed as part of the Edge Animate Installation on any windows system. Did you get any error during your installation?
    Can you share the install logs from:
    1)C:\Program Files (x86)\Common Files\Adobe\Installers
    2)C:\Users\<USERNAME>\AppData\Local\Temp\amt3.log
    3)C:\Users\<USERNAME>\AppData\Local\Temp\PDApp <Date>.log
    Also can you follow the below steps and check if this works:
    1)Uninstall Animate
    2) Install DirectX from the below link
    http://www.microsoft.com/download/en/details.aspx?id=8109 or web installer http://www.microsoft.com/en-us/download/confirmation.aspx?id=35
    3)Restart your PC
    4)Install Animate CC 2014
    5)Save the install logs from the above mentioned location
    6)Check if animate launches and report back with the logs if you still see the error.
    Thanks,
    Sujai

  • Did you hear that? A new version of Edge Animate CC will break Edge Animate?

    I'm on a OSX10.9.1. Updated Edge, hoping for some of the many bugs to disappear. Ended up with unusable software. When I open Edge Animate now, I only get a white screen. If I try to open a previous file or make a new one, I cant do anything without the good old "An error occured. Please save your work and restart Edge Animate". I can't even see any of the content in the file.
    I have tried reinstalling Creative cloud and Edge animate several times, I'm not behind any firewall that would block anthing adobe and I have deleted the preferences.
    What can I do to make this work again?

    Hi, Adobleren-
    I'm sorry to hear that the experience has been so poor for you.  It sounds like you've tried everything we've recommended.  We're still exploring theories as to why this might be happening.  Can you please send me the contents of ~/Library/Preferences/Adobe/Edge\ Animate/3.0.0/logs/?
    Thanks,
    -Elaine

  • Import edge animate into after effects

    Hi, is there any possibility to import a file that is created in edge animate into after effects?

    I don't think you can as they are both two different technologies. Understand that an Edge Animate file is really an HTML5 file. The actual stage that is used when creating your Edge Animate file will also import an HTML file.
    Maybe one of the Adobe mods can chime in to help.

  • How to pass javascript variables into an Edge Animate project from HTML

    I have just about got the basics nailed for Edge Animate now - coming from a Flash background it's been fairly straight forward, nice work so far (but more on that later)
    I have had to build a "promoted items" slider for the homepage on one of our sites....previously this would have been a flash animation but, hey ho .
    I originally built it as a jQuery extension/plugin but found it too time consuming to make minor alterations - that's where Edge came in and SEEMED to fill the job pretty well.
    Now for the moment i'll put on hold the whole issue about how we NEED to be able to work with dom-level elements directly on the page (eg, animating divs and images within a ul-li structure which is how these things usually work) and concentrate on the Edge specific issue...
    I've seen a few people asking this same question, but none of the answers either a) work at all for me , or b) are good enough for what I need to do.
    see previous solutions here http://support.muse.adobe.com/message/4658175 and here : http://forums.adobe.com/thread/1065343
    My project uses an internal array of data, and while in "preview" mode it works reasonably well.
    in the Stage creationComplete event i have Edge code like, for example :
       var imagesArray = ["images/img1.jpg", "images/img2.jpg", "images/img3.jpg"];
       var headlinesArray = ["product 1", "product 2", "product 3"];
       var subTxtArray = ["lovely widgets", "smelly doo-dads", "purple whatchamacallits"];
       var linksArray = ["http://www.adobe.com", "http://www.adobe.co.uk", "http://www.adobe.net"];
       //variables set to full internal scope, used immediately after this and called from sub-elements afterwards
       sym.getComposition().getStage().setVariable("imagesArrayData", imagesArray);
    this code obviously needs to be changed via the HTML page that is calling it.
    IDEALLY i would have these elements already on the page ( <div><h1>Product 1</h1><img src="....  etc ) and then jquery it to hell to make it look funky. This is how we NEED to be doing it in the future...that way our content is still searchable and findable by search bots etc. Edge will output a "static" version of the page, i tried that, but it won't work for dynamically built objects. There's no way i've found of building an array of Symbols based on the existing DOM structure like you can do in jQuery itself.
    however, in the meantime i'll settle for being able to set a javascript call up somewhere - like the old flashvars solution (which was horrible fudge, but worked as a way to get data into a project )
    i'd REALLY rather not use an internal jSon call .... it's adding uneccessary bandwidth and additional server processing when the data it needs has already been retrieved from the database when the HTML page is drawn - AND it means i need to make sure that the json producing web service gets ported accross to any other projects that use this same "slider"
    i've tried removing the internal declaration and changing my HTML to :
    <script>
    var imagesArray = ["images/img1.jpg", "images/img2.jpg", "images/img3.jpg"];
       var headlinesArray = ["product 1", "product 2", "product 3"];
       var subTxtArray = ["lovely widgets", "smelly doo-dads", "purple whatchamacallits"];
       var linksArray = ["http://www.adobe.com", "http://www.adobe.co.uk", "http://www.adobe.net"];
    </script>
    <!--Adobe Edge Runtime-->
         <script type="text/javascript" charset="utf-8" src="index_edgePreload.js"></script>
    etc
    but this hasn't worked.
    i'm going to attempt the solution using
    AdobeEdge.bootstrapCallback(function(compId) { ....
    as found on http://forums.adobe.com/thread/1065343
    but this doesnt explain how to set up Stage level variables, rather than targeting a specific Edge property
    Anyone got any ideas? Or do I just scrap the project?
    IMHO : Adobe need to be careful of falling into the same mindset that most of the anti-flash brigade have.
    Please remember that Flash is used for WAY more than just adverts.
    At the moment, Edge will work great as a way to put a simple animation onto the page with REALLY basic interactivity - suitable for a basic advert - but we need our HTML5 animations and scripts to be fully dynamic, data-driven, and portable, and preferably using existing DOM elements.
    One last thing, any chance of a feature to say "my page already uses jQuery, don't import Edge's own outdated version"
    Message was edited by: j1mp

    I have just about got the basics nailed for Edge Animate now - coming from a Flash background it's been fairly straight forward, nice work so far (but more on that later)
    I have had to build a "promoted items" slider for the homepage on one of our sites....previously this would have been a flash animation but, hey ho .
    I originally built it as a jQuery extension/plugin but found it too time consuming to make minor alterations - that's where Edge came in and SEEMED to fill the job pretty well.
    Now for the moment i'll put on hold the whole issue about how we NEED to be able to work with dom-level elements directly on the page (eg, animating divs and images within a ul-li structure which is how these things usually work) and concentrate on the Edge specific issue...
    I've seen a few people asking this same question, but none of the answers either a) work at all for me , or b) are good enough for what I need to do.
    see previous solutions here http://support.muse.adobe.com/message/4658175 and here : http://forums.adobe.com/thread/1065343
    My project uses an internal array of data, and while in "preview" mode it works reasonably well.
    in the Stage creationComplete event i have Edge code like, for example :
       var imagesArray = ["images/img1.jpg", "images/img2.jpg", "images/img3.jpg"];
       var headlinesArray = ["product 1", "product 2", "product 3"];
       var subTxtArray = ["lovely widgets", "smelly doo-dads", "purple whatchamacallits"];
       var linksArray = ["http://www.adobe.com", "http://www.adobe.co.uk", "http://www.adobe.net"];
       //variables set to full internal scope, used immediately after this and called from sub-elements afterwards
       sym.getComposition().getStage().setVariable("imagesArrayData", imagesArray);
    this code obviously needs to be changed via the HTML page that is calling it.
    IDEALLY i would have these elements already on the page ( <div><h1>Product 1</h1><img src="....  etc ) and then jquery it to hell to make it look funky. This is how we NEED to be doing it in the future...that way our content is still searchable and findable by search bots etc. Edge will output a "static" version of the page, i tried that, but it won't work for dynamically built objects. There's no way i've found of building an array of Symbols based on the existing DOM structure like you can do in jQuery itself.
    however, in the meantime i'll settle for being able to set a javascript call up somewhere - like the old flashvars solution (which was horrible fudge, but worked as a way to get data into a project )
    i'd REALLY rather not use an internal jSon call .... it's adding uneccessary bandwidth and additional server processing when the data it needs has already been retrieved from the database when the HTML page is drawn - AND it means i need to make sure that the json producing web service gets ported accross to any other projects that use this same "slider"
    i've tried removing the internal declaration and changing my HTML to :
    <script>
    var imagesArray = ["images/img1.jpg", "images/img2.jpg", "images/img3.jpg"];
       var headlinesArray = ["product 1", "product 2", "product 3"];
       var subTxtArray = ["lovely widgets", "smelly doo-dads", "purple whatchamacallits"];
       var linksArray = ["http://www.adobe.com", "http://www.adobe.co.uk", "http://www.adobe.net"];
    </script>
    <!--Adobe Edge Runtime-->
         <script type="text/javascript" charset="utf-8" src="index_edgePreload.js"></script>
    etc
    but this hasn't worked.
    i'm going to attempt the solution using
    AdobeEdge.bootstrapCallback(function(compId) { ....
    as found on http://forums.adobe.com/thread/1065343
    but this doesnt explain how to set up Stage level variables, rather than targeting a specific Edge property
    Anyone got any ideas? Or do I just scrap the project?
    IMHO : Adobe need to be careful of falling into the same mindset that most of the anti-flash brigade have.
    Please remember that Flash is used for WAY more than just adverts.
    At the moment, Edge will work great as a way to put a simple animation onto the page with REALLY basic interactivity - suitable for a basic advert - but we need our HTML5 animations and scripts to be fully dynamic, data-driven, and portable, and preferably using existing DOM elements.
    One last thing, any chance of a feature to say "my page already uses jQuery, don't import Edge's own outdated version"
    Message was edited by: j1mp

  • Trying to create HTML5 Video Playlist in Edge Animate - I can't get it to work. Please help!?!?

    Hi All,
    I am creating an interactive site through Edge Animate and am in the process of trying to create a HTML 5 Video Playlist to function within Edge Animate.
    Current Process - Example:
    I have 3 videos that need to be played on a certain page.
    I created a symbol and dragged the videos to the stage and hidden them within that symbol's timeline.
    I then use thumbnail images in a side playlist to either .remove(); .hide(); a video and .show(); the next.
    However when I do a hide / show option, the video continue to plays in the background if I don't also create an if/else statement to pause it.
    My concern with pausing it is that it will continue to load and dramatically slow down the load time of the site.
    References:
    I found this which looks very helpful but don't know how to add this to edge composition.
    http://demosthenes.info/blog/909/Create-An-Automatic-HTML5-Video-Playlist
    Please help or put me in the right direction to create a playlist would be hugely... AMAZINGLY.. helpful.
    Thanks,
    Jason

    Hi Joe,
    Thank you so much for your help on this one. It is hugely appreciated!!
    I have been working frantically to implement your solution to get this working. I used the 'change src' method.
    I have added all my code below in case anyone wants the solution in the future.
    Could you please help below as I am now totally stuck with the <track> and 'event listener issues' !!
    Issue #1:
    I am having major problems with loading the 'closed captions' track element.
    Everything I click for the video to change source / to the next video, the closed caption track adds to the video and doesn't 'unload' the previous one. You then end up with multiple different subtitle tracks on the video screen
    - The closed captions / subtitles are not showing up in Google Chrome either?
    Issue #2:
    I can't get the event listener in edge animate to work for 'playing' and 'ended'. Can you please help and point me in the correct direction??
    Screenshot (showing what happens after the 3rd video is loaded)
    This is the Code I am currently using in the "Creation Complete" of this Symbol.
    SET UP OF VIDEO PLAYER AND FIRST VIDEO
    var vid = sym.$("video_Chapter5");
    vid.html('<video id="ch5video" width="100%" height="auto" margin= "0 auto"  \
    position ="relative"  poster="video/video1_poster.jpg"  controls="controls" </video> \
    <source id ="videomp4src" src="video/Video_mp4_1.mp4" type="video/mp4" </source> \
    <source id ="videoogvsrc" src="video/Video_ogv_1.ogg" type="video/ogv" </source> \
    <source id ="videowebmsrc" src="video/Video_webm_1.ogg" type="video/webm" </source> \
    <track id ="trackvtt" kind="subtitles" src="video/Video_1_Script.vtt" srclang="en" label="English" hidden </track>');
    VARIABLE IDS
    $(document).ready(function() {
      var videoID = 'ch5video';
      var sourceID1 = 'videomp4src';
      var sourceID2 = 'videoogvsrc';
      var sourceID3 = 'videowebmsrc';
      var trackID = 'trackvtt';
      var vid1mp4 = 'video/Video_mp4_1.mp4';
      var vid2mp4 = 'video/Video_mp4_2.mp4';
      var vid3mp4 = 'video/Video_mp4_3.mp4';
      var vid4mp4 = 'video/Video_mp4_4.mp4';
      var vid1ogv = 'video/Video_ogv_1.ogv';
      var vid2ogv = 'video/Video_ogv_2.ogv';
      var vid3ogv = 'video/Video_ogv_3.ogv';
      var vid4ogv = 'video/Video_ogv_4.ogv';
      var vid1webm = 'video/Video_webm_1.webm';
      var vid2webm = 'video/Video_webm_2.webm';
      var vid3webm = 'video/Video_webm_3.webm';
      var vid4webm = 'video/Video_webm_4.webm';
      var script1vtt = 'video/Video_1_Script.vtt';
      var script2vtt = 'video/Video_2_Script.vtt'; 
      var script3srt = 'video/Video_3_Script.vtt'; 
      var script4vtt = 'video/Video_4_Script.vtt';   
      var newposter1 = 'video/video1_poster.jpg';
      var newposter2 = 'video/video2_poster.jpg';
      var newposter3 = 'video/video3_poster.jpg';
      var newposter4 = 'video/video4_poster.jpg';
    VIDEO PLAYLIST THUMBNAIL BUTTONS - TO CHANGE VIDEO IN PLAYER
      sym.$('btn1').click(function(event) {
      sym.$('#'+videoID).get(0).pause();
      sym.$('#'+sourceID1).attr('src', vid1mp4);
      sym.$('#'+sourceID2).attr('src', vid1ogv);
      sym.$('#'+sourceID3).attr('src', vid1webm);
      sym.$('#'+trackID).attr('src', script1vtt);
      sym.$('#'+videoID).get(0).load();
      sym.$('#'+videoID).attr('poster', newposter1);
      sym.$('#'+videoID).get(0).play();  
      sym.$('btn2').click(function(event) {
      sym.$('#'+videoID).get(0).pause();
      sym.$('#'+sourceID1).attr('src', vid2mp4);
      sym.$('#'+sourceID2).attr('src', vid2ogv);
      sym.$('#'+sourceID3).attr('src', vid2webm);
      sym.$('#'+trackID).attr('src', script2vtt);
      sym.$('#'+videoID).get(0).load();
      sym.$('#'+trackID).load();
      sym.$('#'+videoID).attr('poster', newposter2);
      sym.$('#'+videoID).get(0).play();  
      sym.$('btn3').click(function(event) {
      sym.$('#'+videoID).get(0).pause();
      sym.$('#'+sourceID1).attr('src', vid3mp4); 
      sym.$('#'+sourceID2).attr('src', vid3ogv); 
      sym.$('#'+sourceID3).attr('src', vid3webm);
      sym.$('#'+trackID).attr('src', script3srt);
      sym.$('#'+videoID).get(0).load();
      sym.$('#'+videoID).attr('poster', newposter3);
      sym.$('#'+videoID).get(0).play();
      sym.$('btn4').click(function(event) {
      sym.$('#'+videoID).get(0).pause();
      sym.$('#'+sourceID1).attr('src', vid4mp4);
      sym.$('#'+sourceID2).attr('src', vid4ogv);
      sym.$('#'+sourceID3).attr('src', vid4webm);
      sym.$('#'+trackID).attr('src', script4vtt);  
      sym.$('#'+videoID).get(0).load();
      sym.$('#'+videoID).attr('poster', newposter4);
      sym.$('#'+videoID).get(0).play(); 
    EVENT LISTENER FOR PLAYING - TO CREAT BACKGROUND /LIGHT BOX SCREEN
    sym.$('#'+videoID).get(0).addEventListener('playing', function () {
    sym.getSymbol("backscreen_Ch5").$("backscreen").show();
    sym.getSymbol("backscreen_Ch5").play("play");
    EVENT LISTENER FOR ENDED - TO PLAY NEXT VIDEO IN SERIES
    sym.$('#'+videoID).get(0).addEventListener('ended', function () {
    //code to play next video

  • Error when trying to download Adobe Edge Animate trial

    I've been trying to download a trial for Adobe Edge Animate for the last two days and keep getting an error message saying "there is a problem, please try again later."  Can't find a way to contact Adobe directly to see if there is a problem or if/when it will be resolved.  Getting ready to teach this to students beginning in a few days, and would really like to know if the problem will be resolved by then.

    AngNew it is probably the installed security software.  Are you able to install utilizing the Creative Cloud Desktop application?  You can find details regarding the process for installing and uninstalling at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    Hi Vivek,
    Thanks a lot for replying, actually i am creating a short LAMP animation. In which i used Blur filter on the fire flares(SVG images), everything works just fine on google chrome, but for IE10 & Firefox the filter seems not working, so i need to know is it possible to override the fallbacks for the Blur Filter through external StyleSheet.                            
    IE10 & firefox rendered Image, blur filter not working             Google Chrome rendered Image, blur filter working perfectly
    So, can you please guide me, what shall i do in maintaining quality of my graphics as well while such animation's.

  • Edge Animate error when trying to install

    I'm getting an incomplete install when I try to download and install Edge Animate:
    Exit Code: 6
    Please see specific errors below for troubleshooting. For example,  ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s)
    ----------- Payload: DirectX 10.0.0.0 {9DDAF699-BA5E-48e3-8A09-7AC369D6EEA1} -----------
    ERROR: Third party payload installer DXSETUP.exe failed with exit code: -9

    Re: Edge Animate error when trying to install
    created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Edward do you meet or exceed the system requirements listed at http://html.adobe.com/edge/animate/tech-specs.html?
    Jip I sure do!
    I checked the program in discussion just for the heck of it and it works. But when using the Adobe applications manager it says not correctly installed. So I don't know what is going on there!
    It is just unappreciated to have people like Mylenium give such unhelpful replies to customers who are really keen on learning and using your new products.
    (I must probably add that I have tried installing the demo version of Photoshop CS6 when it was just released and caused a serious error. And when I wanted to uninstall it, the uninstaller suggested I use Adobe removal software to remove the demo software... this also did not work properly and I’m still stuck with a error message every time I log on to my windows account)
    But thank for the prompt reply Jeff, keep it up.

  • Hi I'm trying to make a radio button web form using edge animate.

    www.smpcanada.com/1.5/infinite_app
    Hi,
    Basically I'm working on this app, the only thing I need is, I want every option that the user click will be recorded and summarize, and will emailed to my email. Much like a web form, can I do that in edge animate? Please help... 

    www.smpcanada.com/1.5/infinite_app
    Hi,
    Basically I'm working on this app, the only thing I need is, I want every option that the user click will be recorded and summarize, and will emailed to my email. Much like a web form, can I do that in edge animate? Please help... 

Maybe you are looking for