You are not logged in.

1

Tuesday, April 9th 2013, 1:53pm

day / night button in a specific scene

hi!
how can i add a button to a specific scene?

i added a plugin like this:

<plugin name="daynight"
url="%SWFPATH%/skin/daynight-2.png"
align="topright"
x="130"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Day/Night);"
onclick="loadscene(scene_02, null, MERGE|KEEPVIEW, BLEND(1));"
</>

but it's not working as i want... the plugin must be loaded each time that the scene is loaded...

2

Tuesday, April 9th 2013, 3:48pm

Have you put that code into the <scene> where you want the button to be shown?