Copy link to clipboard
Copied
Is it possible to add and remove class names to symbols' instances since we are using JavaScript and Jquery?
I am thinking of senari where I need tracking questions done or not done, etc... Sometimes I accomplish that with variables but sometimes I prefer a class.
you should be able to add a className:
this.mc.className='correct_class';
because of timing issues (you'll need to add jquery before using addClass() ) i'm not sure addClass() will work that way you want.
Copy link to clipboard
Copied
you should be able to add a className:
this.mc.className='correct_class';
because of timing issues (you'll need to add jquery before using addClass() ) i'm not sure addClass() will work that way you want.
Copy link to clipboard
Copied
Thank you for your answer. I guess I will have to experiment.
Copy link to clipboard
Copied
If you're talking about the HTML DOM attribute class (intended for CSS formatting and element selection), that only exists on HTML DOM objects. It does not exist on canvas stage objects. The only DOM objects Animate creates automatically are the jQuery UI widgets.
Copy link to clipboard
Copied
Interesting. Thanks for your input.