Code://creates an empty movie clip to save the place for the images that will be loaded this.createEmptyMovieClip("image_mc", this.getNextHighestDepth()); var mclListener:Object = new Object(); mclListener.onLoadInit = function(target_mc:MovieClip) { //this variable places the image where it needs to be var image_mc = image_mc._x = 580; }; var image_mcl:MovieClipLoader = new MovieClipLoader(); image_mcl.addListener(mclListener); var now_date:Date = new Date(); var currentHour:Number = now_date.getHours(); // if the current hour is less than 9AM... if (currentHour <6 ) { trace("MPod"); image_mcl.loadClip("imager5.png",image_mc); // else..if the current hour is less than 2PM... } else if (currentHour < 13) { trace("Rooney and Moon in the morning"); image_mcl.loadClip("image1.png", image_mc); // else..if the current hour is less than 2PM... } else if (currentHour < 13) { trace("Bill"); image_mcl.loadClip("imager2.png", image_mc); // else..if the current hour is less than 7PM... } else if (currentHour < 20) { trace("Angela"); image_mcl.loadClip("image3.png",image_mc); // else..if the current hour is less than 9PM... } else if (currentHour < 21) { trace("Best of Rooney Moon"); image_mcl.loadClip("image1.png", image_mc); // else the current hour is between 9PM and 11:59PM } else { trace("DJ KC"); image_mcl.loadClip("image4.png", image_mc); } //dont forget to export images used for actions script on the linking menu (on the library)
That is my final code.. thank you so much everyone!!
I couldnt done it without you..
Nara
Its on the banner on www.heymix.com the part that says ON AIR NOW.. it changes according to the hr of day!





Bookmarks