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

How can i create a symbol on mouse click?

$
0
0

I am trying to create an instance of a symbol at the mouse location when i click - anywhere on stage.

 

I think it should be something like the following:

 

//stage on.click function

 

// Create an instance element of a symbol as a child of the

// given parent element

//premade code:  var mySymbolObject = sym.createChildSymbol("Symbol_1", "ParentElement1");

 

var mySymbolObject = sym.createChildSymbol("Symbol_1", "Mouse");

 

This doesn't work of course because the mouse isn't a symbol.

 

Has anyone done this? And can you share?

 

Thank you


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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