Yes, I have already assigned my class to all of the elements.
Now how to access them w/ the edge API?
only works on the first div - all others assigned with the same class do not animate.
The API says:
Accessing imported HTML content through actions can be done by using
sym.$("#myId");to target the ID or class of your element. You can also use this method to target DOM elements which live outside of the Edge Animate composition. For example,
I got a bit frustrated trying to find the proper syntax and couldn't.
So I just wrote a work-around
// populate array of objects with class 'box'
var box = ;
var index=0; //represents current index in box array
if(box[index]==null) //if end of array is reached, return from function
animate(); //this recursive call repeats itself on the next index in the array
Hope this helps anybody else out there.
I'll be posting the finished project soon.
var btn1 = sym.$('btn1');
We posted about the same time. Hope the sample above helps.
All you need to use the class is:
Thanks so much for your help.
I tried that, but it seems to not be able to call the play or playReverse actions.
This is triggered on a mouseover event.
I would like to populate numerous symbols - box1, box2, box3, box4 - all with the same class 'box'
and have them all play on one mouse event
does not seem to work.
I have to go but I will try to give you an answer by tomorrow unless someone beats me to it.
OK. I have a question, are you creating the symbols or are they already on the stage?
Well so far, I am like you. I can apply css properties to a bunch of elements having the same class but I cannot get them to play.