gani
01-02-2009, 09:46 PM
Please take a look at this page.
http://www.skenglish.sk/deleteme/indexbadel.html#
I have a flash with two images repeated over and over until frame 1000. One picture is sad one is happy. I created a little code to start playing from frame 1000 which is the happy face, playing backwards skipping the sad faces. But this is not working as i keep seeing the sad face. here is the code. Why is this happening?
num=1000;
setInterval(pod, 1000);
function pod()
{
gotoAndPlay(num);
num=num-2;
if(num==2)
{
num = 1000;
}
}
please improve my new year :o
http://www.skenglish.sk/deleteme/indexbadel.html#
I have a flash with two images repeated over and over until frame 1000. One picture is sad one is happy. I created a little code to start playing from frame 1000 which is the happy face, playing backwards skipping the sad faces. But this is not working as i keep seeing the sad face. here is the code. Why is this happening?
num=1000;
setInterval(pod, 1000);
function pod()
{
gotoAndPlay(num);
num=num-2;
if(num==2)
{
num = 1000;
}
}
please improve my new year :o