Re: Animation on startup
Originally posted by WILDCORE 1K1WS
I´ve got a question,I´m working on a Car Stereo,it`s nearly done but what is missing is an Animation which starts when WA3 is loaded,I´ve got the PNG file with all the frames necessary for the Animation,my problem is how can i do this now? The Animation is like the OEL-Display Movies known from Pion**r/Kenw**d car Stereos.The area where the animation should start is also the display area where the vis,timer,songticker are.It`s my first skin for WA3 and so far my experience is weak.Could someone help me out with a XML Code and perhaps a Script?
I´ve got a question,I´m working on a Car Stereo,it`s nearly done but what is missing is an Animation which starts when WA3 is loaded,I´ve got the PNG file with all the frames necessary for the Animation,my problem is how can i do this now? The Animation is like the OEL-Display Movies known from Pion**r/Kenw**d car Stereos.The area where the animation should start is also the display area where the vis,timer,songticker are.It`s my first skin for WA3 and so far my experience is weak.Could someone help me out with a XML Code and perhaps a Script?
code:
#include "../../../lib/std.mi"
Global AnimatedLayer anlAnimation;
System.onScriptLoaded() {
Layout lytMainNormal = getContainer("main").getLayout("normal");
anlAnimation = lytMainNormal.findObject("Animation");
anlAnimation.setSpeed(50); // 20 fps; set desired speed by yourself
anlAnimation.setAutoReplay(0);
anlAnimation.play();
}
Comment