11 Replies Latest reply on Mar 4, 2014 11:41 AM by resdesign

    How can i create a symbol on mouse click?

    GMinert Level 1

      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