trigger popup image from an animation

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

Fri Oct 09, 2020 2:44 pm

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

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?

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

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.
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
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