Button and Object interaction

I am creating my first project, and I am stuck on a concept.

I have an animated flame that I want to control with a button. When the user clicks on the button, I want the flame to go on or off.

Now, my brain says that this button should control the visibility of the graphic, however, doing research, I see that you cannot bind to the visibility property of an object.

So, how would I go about getting this to do what I want to do.

Using version 7.6.2 on Windows 7

I understand.

Upgrade your Ignition. The ability to bind to the visible property was added in Ignition 7.6.3. It should work for most components in Ignition 7.6.3.

Nick

Another way of doing this is with a Python script.

Something like the following in the actionPerformed event handler of the button that turns the flame on or off:

flame = event.source.parent.getComponent("Flame Component")
if flame.visible == True:
    flame.visible = False
else:
    flame.visible = True