I’ve just upgrade to version 4. I had created a lot of ad banners in previons version that include a Javascript function for creating loops (3 times) and they worked perfectly. However, it doesn’t work anymore in v4. Am I missing something? My knowledge of Javascript is close to none! Here’s the code associate with that function:
window.loopCounter++;
if (window.loopCounter <= 2) {
hypeDocument.startTimelineNamed('loop', hypeDocument.kDirectionForward)
}
Can you share your Hype document where this is failing so we can take a look? There’s a few threads and downloadable examples on how to do this also: Set number of loops is one.