does anyone know how to make calendar like on the bottom of this site http://www.afternoon-tea.net ?
This is exciting!! I figured it out!
The calender part is pretty easy. It’s just all the days listed in static text. Then the month could be action scripted along with the location of the blinking triangle. The blinking triangle is just a movieClip that fades it’s alpha.
I made a seperate empty movieClip to tell the objects what to do.
Okay, code:
The month is a dynamic text box, in the ‘var’ area, put in ‘month’.
Give the blinking triangle an instance name of ‘triangle’.
[AS]
onClipEvent(load){
now=new Date();
months=[“January”,“Febuary”,“March”,“April”,“May”,“June”,“July”,“August”,“September”,“October”,“November”,“December”]
}
onClipEvent(enterFrame){
_root.month=months[now.getMonth()];
location=now.getDate();
if(location==1){_root.triangle._x=40;}
if(location==2){_root.triangle._x=60;}
//…etc,etc,etc the _x tells the triangle to hover in a certain location //
}[/AS]
Any questions? Please ask, I’m pretty excited that I got it to work (I still consider myself new…b)
(-:
}
if you could post it in a flash file that would be great…thank you!!
I will but it will take me a day or two. I just sold another website to a company in Phoenix so that project must take priority.
As soon as it’s done, I’ll post it.
(-:
On second thought, I could use a calender like that on this site I’m making. Hmm. In that case, it’s done and working. To view if this is what you wanted click here:
www.freddythunder.com/calenderhorizontal.swf
And here’s the .fla.
Enjoy!
(-:
PS - I threw in a bonus running clock for fun
ok no problem …just whenever you are ready…thanks again…
Did you see that it was done? It’s two posts behind…
(-:
is it possible to make this into a wall paper? how? a fla file would be great…thanks again…
How come I cant see the script in the attach file? I was too lazy to learn the script until you mention that you are new too, I feel ashame. Can you do something like a tutorial thing for me if itz not too much trouble? Very thankful for your help!! I’m on my way learning scripts too!! wish me luck!!!
Sorry, I forgot to tell you. Instead of making an empty movieClip off the stage, I got lazy and put all the code in the triangle. The if/else statements are a little redundant and can be replaced with math. (Not as processor intensive).
I’m doing a website that will use that. I’ll use the other code and let you know!
(-: