altoprofilo
2005-03-20 10:27:01 UTC
I need help for a skin i'm working on, i've try to
set different timerinterval for different functions.
I've an intro where main.timerinterval must be set to 2000
(the same for UpdateMetadata function), but i've also a close
animation function that need timerinterval = 50 to work.
How to do that?
I've tried this (but doesn't work!):
SKIN.wms
..
<view id="main"
timerInterval="2000"
onTimer="JScript:introAnim();UpdateMetadata(false);CloseAnim();"
..
<BUTTON upToolTip = "Close"
onclick="jscript:CloseAnim();"
..
SKIN.js
function introAnim()
{
display.alphaBlendTo(0,700);
}
function UpdateMetadata(status)
{
if (player.openState==osMediaOpen)
{
update = status ? true : !update;
metadata.value = (update ? player.currentMedia.name:player.status);
}
}
var fCount = 1
function CloseAnim()
{
fCount++
closeanim1.backgroundImage = "closeanim" + fCount + ".bmp";
main.timerInterval = 50;
if(fCount==6)
{
view.close()
}
}
Thanks in advance!
set different timerinterval for different functions.
I've an intro where main.timerinterval must be set to 2000
(the same for UpdateMetadata function), but i've also a close
animation function that need timerinterval = 50 to work.
How to do that?
I've tried this (but doesn't work!):
SKIN.wms
..
<view id="main"
timerInterval="2000"
onTimer="JScript:introAnim();UpdateMetadata(false);CloseAnim();"
..
<BUTTON upToolTip = "Close"
onclick="jscript:CloseAnim();"
..
SKIN.js
function introAnim()
{
display.alphaBlendTo(0,700);
}
function UpdateMetadata(status)
{
if (player.openState==osMediaOpen)
{
update = status ? true : !update;
metadata.value = (update ? player.currentMedia.name:player.status);
}
}
var fCount = 1
function CloseAnim()
{
fCount++
closeanim1.backgroundImage = "closeanim" + fCount + ".bmp";
main.timerInterval = 50;
if(fCount==6)
{
view.close()
}
}
Thanks in advance!