Looking to develop my own basic view component class that encompasses an HTMLElement or JQuery element, I want to be able to do something similar to this:
var newComponent:CustomComponent = new CustomComponent($('#someDiv'));
TweenMax.to(newComponent, .5, {css:{left:10,...}});
Currently, I have to return the div within my component in order for it to function with TweenMax. However, I aim for my component to be treated just like a jquery or htmlelement so that the code snippet above would function properly.
I've thought about implementing the htmlElement interface, but I can't seem to locate the exact interface containing all the necessary function declarations that I would require.
Appreciate any guidance on this matter. Thanks!