-
-
Moderator
I have a flash 8 calander component on my site, that is easily changeable:
www.flashmechanic.net > Flash 8 > Examples
-
-
Moderator
In the actions layer:
Code:
stop();
myDateChooser.setStyle("themeColor", "special_blue");
myDateListener = new Object();
myDateListener.change = function(eventObj)
{
var eventSource = eventObj.target;
var theSelectedDate = eventSource.selectedDate;
// format the date
var theDate = theSelectedDate.getDate();
var theMonth = theSelectedDate.getMonth() + 1;
var theYear = theSelectedDate.getFullYear();
var formattedDate = theMonth + "-" + theDate + "-"+ theYear;
// In case the user clicks the same date twice
if (theDate == undefined) {
return;
}
if(theDate == 30 && theMonth == 1 && theYear == 2006) {
statusMessage1.text = " Corey's Birthday ";
}
if(theDate == 6 && theMonth == 9 && theYear == 2006) {
statusMessage1.text = " Eric's Birthday ";
}
if(theDate == 10 && theMonth == 7 && theYear == 2006) {
statusMessage1.text = " Alyssa's Birthday ";
}
// compose the message
msg = "You selected " + formattedDate;
// display the message
statusMessage.text = msg;
}
myDateChooser.addEventListener ("change", myDateListener);
myDateListener = new Object();
myDateChooser.showToday = true;
//*****************************************************************
// (Year, month, day) 0 = Jan 11 = Dec
//*****************************************************************
myDateChooser.selectableRange = {rangeStart:new Date(2006, 0, 1),
rangeEnd:new Date(2006, 11, 31)}
The bolded area is what you change.
-
lol im confused :S but ill figure it out probibly
The Nikon Alliance Show those 'Canon' nerds who's boss, join today!
-
-
Try this download http://www.flashkit.com/board/attach...chmentid=53147
The forum this is at is http://www.flashkit.com/board/showthread.php?t=679476
You get to edit all of it. Sorry estudio but I prefer not to be limited like how it is in yours.
-
hey this looks great exacly what i was looking for in size although estudioworks seams a little less complicaited to edit could u tell me how to do this? thanks
The Nikon Alliance Show those 'Canon' nerds who's boss, join today!
-
Senior Member
You cannot stand on two legs or as we say all good things are three:
http://flashscript.biz/MX2004/calend...e_chooser.html
- The right of the People to create Flash movies shall not be infringed. -
-
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<calendar color="72A372">
<year value="2006">
<month value="3">
<day value="22">
<label>Got my calendar!!!</label>
<description>This is the day I got a calendar</description>
</day>
</month>
</year>
</calendar>
that is the xml file. If you go to march 3 on the calendar you'll see this message. Say if you wanted to add another day do this:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<calendar color="72A372">
<year value="2006">
<month value="3">
<day value="22">
<label>Got my calendar!!!</label>
<description>This is the day I got a calendar</description>
//To place an event on the same day you do it like this:
<label>It's a label!!!</label>
<description>The label is the headline and this is the content</description>
</day>
//for a different day in the same month
<day value="30">
<label>It's another label!!!</label>
<description>More description</description>
</day>
</month>
<month value="6">
//for a different month. add the same stuff from above to here.
</month>
</year>
</calendar>
It's a pattern. Plus you don't need to keep reposting the swf.
-
-
oh wait...
how do i add more then one day lol i copy n paest the code and just re did the date and stuff lol but it didnt work
any idea?
The Nikon Alliance Show those 'Canon' nerds who's boss, join today!
-
http://www.mikekreidel.com/temp/xml_calendar_v8_01.zip
That is the link to the original file. It is a lot more descriptive. It uses flash 7 actionscript 1.0. In the file from earlier I converted it to flash 8 w/2.0. Also, April is the 4th month. Make sure you're looking at the right month. Check march because the first bit of code I gave you was in that month. The code makes the current year/month/day show. The code works fine.
-
-
To start a new year you need two tags <year value="2006"> and </year> same with days <day value="20"> and </day> If you want something included in that year/month/day then you need to place it between the two like this:
Code:
<day value="20">
<label>
Got my calendar!!!
</label>
<description>
This is the day I got a calendar
</description>
</day>
-
hmm i dont think u get what im asking
what would the code LOOk like if i had 2 days filled out or even 2 diffrent days in 2 diffrent mounths
because i can only edit one day :S
lol
The Nikon Alliance Show those 'Canon' nerds who's boss, join today!
-
-
this is two days in the same month.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<calendar color="72A372">
<year value="2006">
<month value="4">
<day value="22">
<label>First day.</label>
<description>The date for this is april 22, 2006.</description>
</day>
<day value="30">
<label>Second day.</label>
<description>The date for this is april 30, 2006.</description>
</day>
</month>
</year>
</calendar>
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<calendar color="72A372">
<year value="2006">
<month value="4">
<day value="22">
<label>First month</label>
<description>The date for this is april 22, 2006.</description>
</day>
</month>
<month value="5">
<day value="22">
<label>Second month</label>
<description>The date for this is May 22, 2006</description>
</day>
</month>
</year>
</calendar>
-
this xml calendar is pretty amazing. I just had 2 questions about it... for anyone that really understands what is going on.
1) the print function... what is "bmovie"?... what are we actually telling the program to print?
2) is there a fairly easy way to add date events without opening the xml directly?... you know, creating a blank form to send data to a php, then to write in the xml and then called back by the flash doc. It's kind of a long-shot question, but oh well.
I'm trying to make a blog type thing and I wanted to use a calendar system as a basis. Now I've got to figure out how to incorporate images into each date. =D
This is really cool though. Any info would be awesome! thanks
-
1) not sure
2) I would like to know the same thing. Quickly looking through some links http://www.phpfreaks.com/scripts/XML_Tools/46.php might help. Tell me what you come up with.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|