# Change key frame depending on dates

**URL:** <https://forum.kirupa.com/t/change-key-frame-depending-on-dates/326204>\
**Category:** flash\
**Created:** [November 29, 2011, 1:07pm UTC](https://forum.kirupa.com/t/change-key-frame-depending-on-dates/326204 "2011-11-29T13:07:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonks](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tonks](https://forum.kirupa.com/u/tonks)\
**Post date:** [November 29, 2011, 1:07pm UTC](https://forum.kirupa.com/t/change-key-frame-depending-on-dates/326204/1 "2011-11-29T13:07:02Z")

</div>

Hi there,  
Quite simply I need a piece of code which jumps to a certain frame based on the actual dates below.

1-4[SUP]rd Dec[/SUP] - gotoAndStop(1);  
5[SUP]th Dec [/SUP] - gotoAndStop(2);  
6-7[SUP]th Dec[/SUP] - gotoAndStop(3);  
8[SUP]th Dec[/SUP] - gotoAndStop(4);

I have found bits of code which allows you to specify which days, but not dates. My actionscript is very beginner so I can’t work out what to do.

THis forum has always been a real help to me so thanks in advance.

Many thanks.
