API for symbols stopped working


(strmiska) #1

i can´t get this working. it did work in earlier beta-versions:
playing a timeline from a button outside or inside a symbol by only using javascript

var symbols = hypeDocument.symbolInstancesNamed('symbian');
for (var i = 0; i < symbols.length; i++) {
var symbolInstance = symbols[i];
symbolInstance.startTimelineNamed('rechtEck',        hypeDocument.kDirectionForward);
}

(Hans-Gerd Claßen) #2

It has changed someday …
http://tumult.com/hype/documentation/3.0/#javascript
hypeDocument.getSymbolInstancesByName(symbolName)


(strmiska) #3

YES!! - ok this was the reason.
use: hypeDocument.getSymbolInstancesByName("symbolName");
thanx - i´ve missed something :wink:


(Jonathan Deutsch) #4

This changed in 3.0 beta 420. Sorry about the trouble!