ehud35new Posted December 7, 2006 Share Posted December 7, 2006 Hi,I have question about Date Constructorwhat is the easy script to put in my movie if i want that a movie clip will play in a specific day ? and will continue .....to playEhud Link to comment Share on other sites More sharing options...
smiles Posted December 7, 2006 Share Posted December 7, 2006 well you need a condition script like if(till that day){your movie will play and continue to play;}the script for getting day is maybe likethatvar today : Date = new Date();CaculationOnDay = today.getDate + today.getMonth*30 + today.getFullYear*365;if you choose your day to begin is 1-1-2007 ( Happy New Year ) then you have :Constant = result ( that result = 1 + 1*30 + 2007*365 )you create a loader with parameter autoLoad = False ; contentPath = " your swf link "thenif (CaculationOnDay>= Constant){ yourloadername.load();}somthing like that or you could find another way better Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now