A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: calender

  1. #1
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221

    calendar

    Hey i was wondering if anyone knew where i could get or maybe a tutorial on how to make a calender in flash so if u click on that day a bubble will pop up showing all the stuff that was being done that day and easey to edit each mounth lol

    if anyone knows anything like this that would be awsome

    an example is this but i want it to be bigger and the bubble that pops up to be bigger like take up half a page

    http://gzmusic.org/ (to the very right)

    thanks

    or would this just be best done in html?
    Last edited by Veggie1232; 04-13-2006 at 11:29 PM.
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    I have a flash 8 calander component on my site, that is easily changeable:


    www.flashmechanic.net > Flash 8 > Examples

  3. #3
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    wow thats awsome i love it do i have permision to use it? (also ur sites really cool)

    anyways im not sure how to edit it could u give me a little exsplination

    and when u click on the date to the right is a empty box is that where text will go that goes with that date?
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    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.

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    lol im confused :S but ill figure it out probibly
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  6. #6
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    um ok so i can edit it but the only problem is i dont want people to have to click on every day to see whats up if nothings schedualed is it possible to have each day where there is text to be high lighted green or somthing?
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  7. #7
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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.
    .

  8. #8
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    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!

  9. #9
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    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. -

  10. #10
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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.
    .

  11. #11
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    oh wow thats so awsome
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  12. #12
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    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!

  13. #13
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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.
    .

  14. #14
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    oh i know i can change one day

    say i make today have text on it and when u click on it theres more information well i can do that once but how do i add more days is all im asking how do i incert more code because im doing it wrong

    like show me what the top code would look like if u had 2 days with text on them

    ty
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  15. #15
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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>
    .

  16. #16
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    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!

  17. #17
    Senior Member
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    221
    bump
    The Nikon Alliance Show those 'Canon' nerds who's boss, join today!

  18. #18
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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>
    .

  19. #19
    Senior Member
    Join Date
    Feb 2002
    Posts
    272
    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
    Woody

  20. #20
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center