2 Replies Latest reply on Mar 9, 2013 1:29 AM by Garavani

    id div from outside Edge

    Garavani

      Hi Folks,

       

      I think this is a very very simple one, yet, I couldn’t make it work.

       

      I have this piece of code in my html (JS):

       

        var comp = $.Edge.getComposition("work_" + workChart);  // Edge animation control

                          var stage = comp.getStage();

                          stage.getSymbol("Stage").play(e.data.direction);                     // playes Edge animation either from …

      $("#NextChart").attr("src", "images/Charts/Chart_7.gif");

       

      It works quite fine for the first part but the bold code line won’t.

      What I have to do get the div that is placed „inside“ the Edge .js file from „outside“?

       

      Thanks a lot for a little help

       

      Garavani

        • 1. Re: id div from outside Edge
          josh.dura Adobe Employee

          If the NextChart element is on the stage in Edge, you would probably need to access it like so...

           

          stage.getSymbol("NextChart").attr(...);

           

          This is just a guess as I don't have access to the app. Let me know how that works.

          • 2. Re: id div from outside Edge
            Garavani Level 1

            Hi Josh!

             

            Thanks for your idea.

            This way it didn’t work.

             

            But this:

             

                 var comp = $.Edge.getComposition("work_" + currChart);  // Edge animation control over the current visible animation (restored in function „titleChange(e)“) = fades in deeper shadow beneath

                 var stage = comp.getStage();

                 stage.getSymbol("Stage").play("Next");

             

                 stage.getSymbol("Stage").$("NextChart").attr("src", "images/Charts/Chart_3.gif");

             

            does.

            In fact I tried this right at the start.

            And it took me a while now to understand that in Edge it is important that the element has to be defined as img!!! (I remembered Heathrowe saying this a year ago somewhere - thanks Heathrowe

            Otherwise nothing in no way!

             

            Hope this is helpful for someone

             

            Garavani

             

             

             

            Am 08.03.2013 um 21:22 schrieb Josh Dura:

             

            Re: id div from outside Edge

            created by Josh Dura in Edge Animate - View the full discussion

            If the NextChart element is on the stage in Edge, you would probably need to access it like so...

             

             

            stage.getSymbol("NextChart").attr(...);

             

             

            This is just a guess as I don't have access to the app. Let me know how that works.

             

            Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5133401#5133401

            Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5133401#5133401

            To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5133401#5133401. In the Actions box on the right, click the Stop Email Notifications link.

            Start a new discussion in Edge Animate by email or at Adobe Community

            For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.