I'm wondering if someone can help me with this.
This probably has been asked and answered before but my "search-fu" leaves me with no answers.
How do you mouse scroll a timeline/text inside a symbol? I have it working outside a symbol but inside...
symbol_text_scroll.hype.zip (124.6 KB)
Works for me. Even inside the symbol... common Web-Browsers (Chrome, Safari, Firefox)
He is talking about the Wheelpart.
In symbols you must use the symbolInstance API and not the hypeDocument API.
Max is right, it's all about the 'wheel part'.
Could someone please take a look at this and help me out? I'm at the end of my capabilities here.
symbol_text_scroll_2.hype.zip (82.2 KB)
As you've realised symbols have their own API which can be/is used when you need to access any timelines within that particular symbol. When you want to reference the symbol you are not constrained to use "symbolInstance" you can use any naming convention you want
var scrollTextSymbol = hypeDocument.getSymbolInstanceById('mySymbolInstance');
The "minor" error you're getting is because of the first declaration of "time" you are looking for the timeline using "hypeDocument" when you should be using the "symbolInstance" declaration.
var symbolInstance = hypeDocument.getSymbolInstanceById('mySymbolInstance');
var time = symbolInstance.currentTimeInTimelineNamed('txt_scroll_2');
would be the correct syntax.
Here, in your document, "txt_scroll_2" as a timeline only exists within the symbol.
@DBear Thank you for your clear and easy to understand explanation and the for fix.
Very much appreciated!