Scope of Hype elements between scenes


(kull) #1

Hello everyone
Just to confirm, am I right in thinking (and my experiments seem to show it) that a Hype element copied from one scene to another does not retain its unique element ID from the first scene?

That is, each scene is like a separate block, and all the elements in it are scoped to that block, with no equivalent to a global element. Is that right, or am I missing something?
Thanks


#2

A Persistant symbol is the closest approximation of this: http://tumult.com/hype/documentation/3.0/#persistent-symbols

Each element should have a unique ID – this is a requirement of how HTML is structured. If you want to target multiple separate elements with some JavaScript, you’re better off setting a class (you can do this in the Identity inspector) and then do some function that uses that class.