trigger popup image from an animation

Q&A about the latest versions
Post Reply
nich008
Posts: 21
Joined: Mon Apr 13, 2015 9:50 pm

Fri Oct 09, 2020 2:44 pm

Hi
I'm trying to make a popup image open and close from an animation. I'm trying to trigger it from a button to start with.
According to the javascript API, this is what I need:

Code: Select all

pano.activateSound(id:String)
Pop out the image or video.
Not surprisingly this works where id is a sound, but not when its an image. Possibly a typo in the API ref?

I can toggle the media's visibility using action:media, type:Visibility on a button, but I want to take advantage of the built-in animation provided by a popup image.

I've also tried action:media, type: Activate Media but my image ID does not appear in the target pulldown

I've also tried click() with no success

Any tips on how to trigger a popup image from a button or animation?

Thanks
John
User avatar
Hopki
Gnome
Posts: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Oct 09, 2020 4:46 pm

Hi John,
What you did was right but there was a parameter that was missing.
Thomas has updated the API page, so thanks for the heads up on that one.
Regards,
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
nich008
Posts: 21
Joined: Mon Apr 13, 2015 9:50 pm

Fri Oct 09, 2020 6:08 pm

Works a treat. Thanks for your quick response Hopki
Post Reply