A couple of things.
When an element is 0 opacity it still retains its mouse/pointer events.
So even though you cannot see it, it still intercepts the clicks before any element under it.
A symbol is still an element and if it is on scene it will do the same regardless if the children elements it contains are moved off scene.
So first, we select the symbol and turn off its pointer events
We then delete the details timeline on the main scene.
And remove the on scene load to start the details timeline.
We go into the symbol and on it's Main Timeline;
set the NameDialog group to hidden and opacity to 0 via the Element inspector.
When an element is hidden it will not intercept mouse/pointer events because it is hidden from the DOM ( and you ).
We then go the symbol's details timeline (create it if need be );
Turn on recording
Move the play head a couple of frames along and set the NameDialog group to visible via the Element inspector .
This can just be 2-3 frames after along as this property is either on or off and does not animate .
We still use opacity so we can get a nice fade in/out.
- Still recording mover further along the timeline and set opacity to 100%.
The timeline should look like this.
The OK Button.
The Cancel button just needs to continue the details timeline in reverse.
Exit the symbol.
On the Main timeline
We add a Symbol action to start the symbols details timeline.
Now go into the detailPromptFunction() and remove the line
hypeDocument.setElementProperty(namedialog, 'opacity', 0, 0.1, 'easeinout');
That should be it I think..
BrowserOnSceneLoad_vmh2.hype.zip (27.1 KB)