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

replace code in timeline of a symbol

$
0
0

My question is:

 

I built a symbol and name it videoholder. Inside the symbol i draw a Rectangel and

named it: Rectangel.

Iput the following code on the first frame/millisecond:

 

var video_path = sym.$("Rectangel");

video_path.html('<video width= "750" height= "421" src = "example.mp4" type = "video/mp4" controls= "controls" </video>');

 

Then I delete the symbol from the stage.

 

Now I placed different images as symbols on the stage.

When I click on these images i get the videoholder_image on the stage via createChildSymbol from the library.

 

What I want is to put a code on each image_symbol which allows me to change the code

inside the videoholder Rectangel:

 

var video_path = sym.$("Rectangel");

video_path.html('<video width= "750" height= "421" src = "example_new.mp4" type = "video/mp4" controls= "controls" </video>');

 

 

 

I appreciate any hlep


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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