Calander component

http://www.kirupaforum.com/showthread.php?s=&postid=125003#post125003

hehe i am really dumb now… goto that thread to see the correct code for line break. i posted that thread

as for the textfield covering the calendar it is possible…
let me think a while

okay I was able to create the calaneder from your help… so in March I have 5 dates that I am able to click on.

So far so good i think.

But how do I get data into the “events_txt”

Do i have to create an XML named that? This is where i am getting confused i think.
it would be best if I could just create an xml file, and upload that to the server so the changes are made and updated right away.

Do i make any sense or what??!?! :slight_smile:

getEvents.load(“blog.xml”);

this is the line rite at the bottom that finds the xml file to load

for ur windows this is what i got… u can change the format etc

  1. create a movie clip (lets call it mc32 as instance name)

  2. put the dynamic textfield(events_txt) inside that movie clip and drag the mc32 onto the main timeline to where u want it to appear
    Note : so now the calling of this textfield will be _root.mc32.events_txt rite?
    Also, remember to remove the original textfield from the main frame.

  3. since the calling has changed. Look at the AS for the calendar
    var c = events_txt; will become
    var c = [COLOR=orangered]mc32[/COLOR].events_txt;

  4. you will have to edit the mc32 now
    add 2 more layers, so now u have 3 layers
    first layer is textfield
    second layer is background
    third layer is button

  5. the first layer add another keyframe. give both frames 1 and 2 the action stop();

  6. the second layer frame1 put a graphical background and let it alpha 0. In frame2 set alpha as 50(or whatever u like it to appear as)

  7. the third layer is a button. Leave frame1 as empty frame while frame2 put a button and give actions to the button

on (press) {
_root.mc32.gotoAndPlay(1);
}

  1. Ok the mc32 is done and ready. But u r left with one final step which is go back to the AS for the frame of the calendar. Look at the line

c.htmlText += output_str;

now enter this before that line
[COLOR=orangered]_root.mc32.gotoAndPlay(2);[/COLOR]

so that it looks like this
[COLOR=orangered]_root.mc32.gotoAndPlay(2);[/COLOR]
c.htmlText += output_str;

now try and see if it works
:slight_smile:
if it doesnt, post ur xml file and ur fla and i will look thru them

[final note] the user will still be able to click on the calendar that is behind the mc32… i am not too sure how to disable that. But i hope this is what u need

its late but i will look into it tomororw thanks again.

I am curious why you call yourslf a newbie???

I am a newbie…half of the stuff you mention I don’t have a clue… but I am figuring it out slowly :slight_smile:

Now THAT’s a newbie!!!

I hope it all works out, and I can ge this off the ground…thanks to your big help!

G’Nite