PDA

View Full Version : custom v2 EventsCalendar component


fu-meng
07-07-2004, 07:22 PM
hi.

i'm working on building my own v2 EventsCalendar component and i'm in the beginning stages, i.e. the layout of the calendar.

currently, i'm having difficulties creating and setting the month text field above the dates. my intention is also to create a static line of "M, T, W, T, F, S, S" above the dates as well.

i've attached the fla and the associated component class. everything is pretty well commented throughout. i was just hoping for a little help along the way with these 2 problems. .

thank you. fumeng.

fu-meng
07-07-2004, 10:41 PM
me again.

i've made quite a few changes to the syntax of the .as file i originally posted. now it's properly formatted, so i'm reposting that file again. the .fla didn't change at all.

thanks. fumeng.

p.s. you'll notice that the calendar doesn't format properly at all!!! -- it's all bunched up. this is because i took out the parameters (xOff,yOff) in the function createCalendar() (which is now the function draw()).

i did this because i know i don't need the offset values. there's got to be a way to lay this out without those.

thanks again. fm.