the order of symbols returned by getSymbols?
it seems order of symbols sym.getcomposition().getsymbols("symbolname") doesn't correspond order created or order in elements table or order in timeline list. determines order in array? how can sort based on y position on stage or order of creation?
i worked out way sort position on stage upper left lower right:
symbols.sort(function(a, b) {
var aoffset = a.getsymbolelement().offset();
var boffset = b.getsymbolelement().offset();
return aoffset.top + aoffset.left - boffset.top - boffset.left;
});
More discussions in Edge Animate CC
adobe
Comments
Post a Comment