# Trying to change swfs by date

**URL:** <https://forum.kirupa.com/t/trying-to-change-swfs-by-date/329857>\
**Category:** Uncategorized\
**Created:** [October 25, 2012, 3:02pm UTC](https://forum.kirupa.com/t/trying-to-change-swfs-by-date/329857 "2012-10-25T15:02:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dude1111](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Dude1111](https://forum.kirupa.com/u/Dude1111)\
**Post date:** [October 25, 2012, 3:02pm UTC](https://forum.kirupa.com/t/trying-to-change-swfs-by-date/329857/1 "2012-10-25T15:02:05Z")

</div>

[COLOR=#222222][FONT=Times]I am simply trying to have this if/else code the change the movie at the end of the timeline to another movie.[/FONT][/COLOR]  
[COLOR=#222222][FONT=Times]It doesn’t work but I get no errors. What am I overlooking? I can’t seem to get it.[/FONT][/COLOR]  
[COLOR=#222222][FONT=Times]Any help would be appreciated greatly! Here is what I have …

BTW… the smiley face is actually a : with a D …

var today\_date:Date = new Date();  
var date\_str:String = (today\_date.getDate()+"/"+(today\_date.getMonth()+1)+"/"+today\_date.getFullYear());

if (date\_str ==“19/12/2012”) {

loadMovie(“test2.swf”,0);

trace(“one”);

} else if (date\_str ==“25/12/2012”) {

unloadMovie(0);

loadMovie(“test3.swf”,0);

trace(“two”);  
}

else if(date\_str ==“23/12/2012”)  
{

unloadMovie(0);

loadMovie(“test2.swf”,0);

trace(“three”);

}  
else

trace(“four”);  
{

}  
[/FONT][/COLOR]
