...

View Full Version : flash in reverse - no can do



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

gnomeontherun
01-06-2009, 11:54 AM
Maybe I don't understand your goal, but why if there are two images repeated, not just have it be 2 keyframes long? Flash does not play in reverse as you mentioned, but you can mimic that if you need, but this seems like overkill for two images?

gani
01-06-2009, 01:06 PM
actually i said 2 images to simplify the problem. In my actual file there are 50 images ... and i need the flash to play backwards skipping 2 frames as it goes

gnomeontherun
01-06-2009, 03:14 PM
Then you are better off to make a slideshow using actionscript instead of using the timeline. Search the forum for some threads about xml flash slideshows.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum