Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    flash in reverse - no can do

    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?

    Code:
    num=1000;
    setInterval(pod, 1000);
    function pod()
    {
    	gotoAndPlay(num);
    	num=num-2;
    	if(num==2)
    	{
    		num = 1000;
    	}
    }
    please improve my new year

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •