Page 1 of 1

changing button grafic

Posted: Sun Jan 04, 2009 11:52 am
by pitdavos
Hi all

Is there a solution for a changing button grafic (toggle button) like:

- Fullscreen on/off
- Sound on/off
- Rotation on/off


peter

Re: changing button grafic

Posted: Sun Jan 04, 2009 12:09 pm
by Hopki
Hi
This can be done by placing one image on top of another. The top image is the up state, say an auto rotate button. Set the action on click toggle alpha = 0.01, $self, also on click toggle auto rotate.

So, on click the top image turns transparent showing the bottom image which could be the auto rotate button with a red line going through it.

Hope this helps :)

Hopki

Re: changing button grafic

Posted: Mon Jan 05, 2009 12:42 am
by erik leeman
The structure of this kind of button can become pretty complex if you want a fancy one.
Here's a screenshot of one of mine that still needs some tidying up : )
Image

And this is roughly how it looks on screen
Image

You can 'see it in action' here: http://tinyurl.com/CasoniForest-01-LARGE (4.9MB!)
(choose the Flash version if DevalVR is selected automatically)

Re: changing button grafic

Posted: Mon Jan 05, 2009 12:34 pm
by Hopki
Hi Erik
Like you button, 8)
The only problem with a full screen button that has a up and down state is that in flash the first thing you are shown is text telling you to hit Esc to exit full screen mode.
This by-passes all the toggling and you end up with returning to normal view with the button still showing that you are in full screen mode. The disable mouse keyboard tick box does not stop the Esc button working either.

Over to Thomas

Cheers Hopki

Re: changing button grafic

Posted: Mon Jan 05, 2009 12:47 pm
by erik leeman
Yep, that's a problem with fullscreen buttons.
These buttons also 'break' if you have hotspot links to external webpages with a _blank target.
When that external page opens, the fullscreen pano is forced back to non-fullscreen, but the button graphic doesn't change.
Not a major pain, but irritating non the less.

Re: changing button grafic

Posted: Tue Jan 13, 2009 2:51 pm
by pitdavos
Thanks to all

I sorted it out.

I wasn't aware that I can use the same mouse actions several times.
In html/javascript, this won't work. But as I see flash is a different beast :)

Peter