Hi,
I currently have a tour with an introduction message, and a video hotspot skewed onto a plasma screen on the wall. I want to set it so that when the introduction message is clicked, it disapears and the video on the wall starts to play. I'm currently using this code:
Code
<hotspot name="videospot1" devices="all"
url="../../js/videoplayer.swf"
keep="false"
ath="85.25797381716896" atv="-3.638668378347861"
zoom="false" distorted="true" details="8" flying="0"
width="800" height="450"
scale="0.2433405269881061" scale9grid="" scalechildren="false" rotate="0"
rx="-3.5" ry="7.5" rz="-0.09260471462589027"
edge="center" ox="" oy=""
crop="" ondowncrop="" onovercrop=""
visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true" maskchildren="false"
zorder="0"
alpha="1.00" autoalpha="false" blendmode="normal" effect="" smoothing="true" pixelhittest="false"
refreshrate="auto"
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick="onclickA();"
alturl="../../js/videoplayer.js"
buffertime="0.1"
directionalsound="true"
iscomplete="false"
isvideoready="true"
loadedbytes="6070637"
loop="false"
onclickA="togglepause();set(plugin[autooff].visible,false); set(plugin[playBT1].visible,true);set(hotspot[videospot1].onclick,onclickB());trace(vid A);"
onclickB="togglepause();set(plugin[playBT1].visible,false);set(hotspot[videospot1].onclick,onclickA());trace(vid B);"
onvideocomplete="action(get(moviePos));set(plugin[playBT1].visible,true);"
onvideoready=""
outofrangevolume="0"
pausedonstart="false"
range="110"
rangefalloff="1"
totalbytes="6070637"
totaltime="42.474666666666664"
updateeveryframe="true"
videourl="../../images/popups/video/Oxygen.flv"
altvideourl="../../images/popups/video/Oxygen.mp4"
volume="0.7"
/>
<plugin name="clickdrag" keep="true" align="centre" x="0" y="0" height="100%" width="100%" url="../../images/gui/alpha-bg.png" alpha="1" onloaded="" onclick=" hotspot[videospot1].play();action(scene1action1);tween(plugin[intromessage].alpha,0.0,0.5,default);delayedcall(0.5, set(plugin[clickdrag].visible,false)); delayedcall(0.5, set(plugin[intromessage].visible,false));" />
<plugin name="intromessage" parent="clickdrag" keep="true" align="centre" x="0" y="0" url="../../images/gui/intro-click.png" alturl="../../images/gui/intro-touch.png" alpha="0" onloaded="" onclick="action(scene1action1); set(plugin[clickdrag].visible,false);" />
Display More
But this code doesn't cause the video to play. Whereas this code for a video plugin does:
Code
<hotspot name="employee1" devices="all"
url="../../images/popups/video-highlight.png"
keep="false"
ath="71.02004748094971" atv="9.737448398085292"
zoom="true" distorted="false" details="8" flying="0"
width="330" height="330"
scale="0.1455789624706411" scale9grid="" scalechildren="false" rotate="0"
rx="-20" ry="4" rz="0.7990554324920841"
edge="center" ox="" oy=""
crop="" ondowncrop="" onovercrop=""
visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true" maskchildren="false"
zorder="0"
alpha="1.00" autoalpha="false" blendmode="normal" effect="" smoothing="true" pixelhittest="false"
refreshrate="auto"
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick="plugin[profilevid1].play();set(plugin[profile1].visible,true);set(plugin[profilevid1].visible,true);set(plugin[playBT].visible,true);"
/>
<plugin name="profilevid1" align="centre" url="../../js/videoplayer.swf"
onclickA="togglepause();set(plugin[profilevid1].onclick,onclickB());trace(vid A);"
onclickB="togglepause();set(plugin[profilevid1].onclick,onclickA());trace(vid B);"
onvideocomplete="action(get(moviePos));set(plugin[playBT1].visible,true);"
onclick="onclickA();"
x="-160"
y="0"
parent="profile1"
pausedonstart="true"
zorder="20"
alturl="../../js/videoplayer.js"
videourl="../../images/popups/video/profile.flv"
altvideourl="../../images/popups/video/profile.mp4"
scale="0.9"
visible="false" alpha="1" keep="true"/>
Display More
Is there a different action call for videos when they're placed in the scene as a hotspot?