Go to a specific time line frame in another scene

How can I go to a different scene on a specific timeline located in a symbol?

Any idea? thanks

This is what Custom Behaviors was built for: http://tumult.com/hype/documentation/3.0/#behaviors

In the symbol, you would create a Custom Behavior that Starts (or continues) the timeline that you want to run from outside.

Next, create an action to first switch to the scene where the symbol is, and then run your custom behavior. These two lines of JavaScript should do it:

hypeDocument.showSceneNamed('scene2', hypeDocument.kSceneTransitionCrossfade, .1)
hypeDocument.triggerCustomBehaviorNamed('MyCustomBehavior')

demo-custombehavior.hype.zip (30.2 KB)

I implemented this Javascript in my site and I’ve run into a problem. When I first preview my site in Safari the code goes to the next scene but fails to execute the custom behavior. However, if I restart the site by refreshing the browser the custom behavior executes correctly. Any thoughts on this?

Can you post the project…

I ended up going with a global variable. to get the job done.

I suspect the fact that my site has a lot of images and therefore lags a bit when it loads might be the culprit. …A very simple project seems to work properly.