Skin buttons in html5

Q&A about the latest versions
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

Hello. I have created buttons by Adobe Flash, but when I import .swf files to the skin, buttons work only in flash version, in html5 I can't see it. What solutions do I have? I can convert flash type buttons on Adobe flash to html5, but don't know how to import it to the skin. Thank you, for your help.
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
When building a skin you can use the following file types in the skin, note some work and some get converted.
HTML5 Output:
SVG, Animated SVG, PNG, JPG, GIF. You need to use an external loader to display an Animated GIF.

Flash Output:
SWF, Animated SWF, SVG (SVG gets converted to PNG in output), PNG, GIF, JPG
Regards,
Hopki
Garden Gnome 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/
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

Is it possible to make entire SVG file? Because clickable button contains 3 svg files and some javascript files.
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Is it possible to make entire SVG file? Because clickable button contains 3 svg files and some javascript files.
Im not sure I understand.
A clickable can be, one, two or three images depending what you want the customer to see.
A good combination is normal and mouse over states.
If you want to go that extra mile add a selected state. Note a selected state is only shown when the mouse button is down. once released the mouse over image shows. The skin is a JS file, is this what you are referring two?
Regards,
Hopki
Garden Gnome 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/
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

I mean, is it possible to make interactive clickable buttont in one svg file? My point is to make buttons with interactivity. I can make it easily on flash with swf files, but can't make it on html5. Let say in skin editor I press on button, choose my images and I have clickable button, simple, but I loose my all interactivity, I need some effects.
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

If it`s hard to understand, I need the same, just in html5: http://virtualistudija.lt/test-2/
Any help?
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

ONE .svg object to do 3 tasks.

Make 3 duplicate .svgs.
1 normal image,
2 mouse over make blue and
3 mouse make red .svg action for Mouse click

In the HTML5 | SKIN stack all 3 images
1 normal is static - normal .svg image
2 mouse over - change to Blue .svg image
3 on click - change to RED .svg imag action 'go to next panorama' target _Self

But all three 1,2,3 states can not be 1 function. Each are separate ACTION state BUT collectively act as 1 function are 3 states normal, mouse over and ON click as 1 group element

Your suggestion for Flash would create 1 .swf to perform all 3 functions.

Can also create with On Mouse enter, On Mouse click and On mouse leave action set.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
Think of the SVG or button element as the button in the skin.
The actions from these elements is what the software will use.

The images you select are just the images for the button, so button face so to speak.
The button allows you to select up to three images, one for each state to give visual feedback to the user.

If you have an image that animates then this can also be used be used, the mouse click action will still be the actions in the button element.
If you do not want to make animated SVG's and you want to fade between one graphic to another you can stack separate images, then using alpha fade between one image to another.
Regards,
Hopki
Garden Gnome 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/
MGreen
Posts: 61
Joined: Thu Nov 26, 2015 12:24 pm

Hi - I've pasted an animated svg into a skin (like I have done before for any svg graphic element) - but when run - the animation feature doesn't occur ... can someone please tell me the dumb thing I've missed configuring ? Thanks
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
If you drag the SVG in your browser does it animate?
Please try the attached SVG, does it work in your project?
Regards,
Hopki
Attachments
white_red.svg.zip
(971 Bytes) Downloaded 238 times
Garden Gnome 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/
MGreen
Posts: 61
Joined: Thu Nov 26, 2015 12:24 pm

Hi Hopki - no I was not getting animation with previously tried svg and I'm not getting animation with white_red.svg ??? Here were the previously tried animated svgs - thanks for checking on this - Matt
Attachments
SVG-Loaders-master.zip
(19.77 KiB) Downloaded 240 times
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi MGreen,
Your SVG's works for me!
What computer do you have, whats the specification and graphics, OS, Browser etc.
Do you see the problem locally or uploaded to a server.
Regards,
Hopki
Garden Gnome 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/
MGreen
Posts: 61
Joined: Thu Nov 26, 2015 12:24 pm

Hi - arhah - the aniSVG's work when externally published but didn't work on localhost preview - opened on Win10-MSEdge-i7-16GB-Toshiba -

I hadn't externally published before because I wasn't seeing working results via localhost - ok - they're working...thanks for checking
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

Hopki wrote:Hi Guys,
Think of the SVG or button element as the button in the skin.
The actions from these elements is what the software will use.

The images you select are just the images for the button, so button face so to speak.
The button allows you to select up to three images, one for each state to give visual feedback to the user.

If you have an image that animates then this can also be used be used, the mouse click action will still be the actions in the button element.
If you do not want to make animated SVG's and you want to fade between one graphic to another you can stack separate images, then using alpha fade between one image to another.
Regards,
Hopki
I want to make animated SVG, but how to include 3 images inside one SVG file?
SSarunas
Posts: 6
Joined: Mon Feb 29, 2016 2:08 pm

SSarunas wrote:
Hopki wrote:Hi Guys,
Think of the SVG or button element as the button in the skin.
The actions from these elements is what the software will use.

The images you select are just the images for the button, so button face so to speak.
The button allows you to select up to three images, one for each state to give visual feedback to the user.

If you have an image that animates then this can also be used be used, the mouse click action will still be the actions in the button element.
If you do not want to make animated SVG's and you want to fade between one graphic to another you can stack separate images, then using alpha fade between one image to another.
Regards,
Hopki
I want to make animated SVG, but how to include 3 images inside one SVG file?
Any help?
Post Reply