Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Problem with .load() method

$
0
0

Hi There

I have an issue using the jquery .load().

In my composition, in compositionReady, I use .load() to load an external html file into an ordinary Edge element - no problem here.

 

The loaded HTML contains a div  id="spot" - I would like to clik on it and fire an Edge comand, such as 'play the symbol', or 'move that element'..

the problem is: how can I address that div?

 

tried variuos solutions :

$("spot")

sym.getComposition().getStage().$("spot")

... and many mix...

 

I was originally thinking to write something like

$("spot").click(function() {

     alert( "spot clicked." );

     })


Thanks for helping me!



Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>