Hi,
No one has said anything as yet but anyone notice that V6 has new place holders?
Example, in V5 $hu for a hotspot URL.
In V6 its $(hu).
This lets you do some cool things, example use a variable to change a URL in a goto URL action.
The attached project does just this.
You can find the complete list of placeholders on our website:
V6 Doc, Reference => List of Placeholders.
The attached project has two buttons that open web pages, one in a new window and the other in the player.
There are three websites to choose from in the project.
The text boxes when clicked change the variable so the same button can open the different website.
The Variable looks like this:
Name: url
Type: text
Init Value: http://hopkimedia.co.uk
The text box actions to change the URL looks like this:
Source: Mouse Click
Action: Set Variable Value
Variable Name: url
Operation: Set(=)
Value: https://en.wikipedia.org/wiki/Panorama
The open website button has the action:
Source: Mouse Click
Action: Go To URL
URL: $(*url)
Target: $(ht)
You can also use the url variable in other logic blocks, example for a change colour:
Trigger: *url
Comparison: =
Value: https://en.wikipedia.org/wiki/Panorama
Text Color (colour)
The attached project uses all of the above so have a good look and have fun.
Regards,
Hopki
V6 New placeholders
- Hopki
- Gnome
- Posts: 8913
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
V6 New placeholders
- Attachments
-
- new_placeholders.zip
- (17.38 KiB) Downloaded 34 times
Re: V6 New placeholders
Can I insert (i-frame) into the player an object "Object2VR" ?
Regards...
Regards...
- Hopki
- Gnome
- Posts: 8913
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Re: V6 New placeholders
Hi,
Yes just add the below iframe in to a text box.
You can have a button that has the action to show the text box and set the text, which will be the iframe.
<iframe src=“http://www.website.com” width=“100%" height=“100%" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder= "0" ></iframe>
When you hide the text box you also have to unload the iframe by setting having a set text action which with setting nothing, so blanking out the text.
Regards,
Hopki
Yes just add the below iframe in to a text box.
You can have a button that has the action to show the text box and set the text, which will be the iframe.
<iframe src=“http://www.website.com” width=“100%" height=“100%" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder= "0" ></iframe>
When you hide the text box you also have to unload the iframe by setting having a set text action which with setting nothing, so blanking out the text.
Regards,
Hopki
Who is online
Users browsing this forum: No registered users and 6 guests