# Calander component

**URL:** <https://forum.kirupa.com/t/calander-component/14677>\
**Category:** flash\
**Created:** [March 1, 2003, 5:50am UTC](https://forum.kirupa.com/t/calander-component/14677 "2003-03-01T05:50:01Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 4:11am UTC](https://forum.kirupa.com/t/calander-component/14677/21 "2003-03-02T04:11:19Z")

</div>

[http://www.kirupaforum.com/showthread.php?s=&postid=125003#post125003](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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 4:31am UTC](https://forum.kirupa.com/t/calander-component/14677/22 "2003-03-02T04:31:18Z")

</div>

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??!?! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 5:12am UTC](https://forum.kirupa.com/t/calander-component/14677/23 "2003-03-02T05:12:30Z")

</div>

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  
🙂  
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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 5:21am UTC](https://forum.kirupa.com/t/calander-component/14677/24 "2003-03-02T05:21:06Z")

</div>

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 🙂

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

[Previous page](https://forum.kirupa.com/t/calander-component/14677.md?page=1)
