dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: highlight dates in calendar companent

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    109

    highlight dates in calendar companent

    Was wondering if anyone could help me out here.
    I am trying to make a calendar using the calendar component. I pass a var into flash using PHP this is as so:


    Code:
    // load dates for games for current month
    myDate = new Date();
    mm = myDate.getMonth()+1;
    yy = myDate.getFullYear();
    
    //add 0 for dates with one digit
    if (mm<10) {
            mm = "0"+mm;
    }
    
    // display only the last 2 digits
    myString = yy.toString();
    for (i=2;i<myString.length;i++) {
            yy = (myString.charAt(2)+myString.charAt(3));
    }
    
    gameVars = new LoadVars();
    gameVars.month_id = mm+"/"+yy;
    
    gameVars.onLoad = function (success) {
            if (success) {
                    var i = 0;
                    while (this["day" + i] != undefined) {
                            trace(this["day" + i]);
                            ++i;
                    }
            }
    }
    
    gameVars.sendAndLoad("http://members.lycos.co.uk/robot4hire/monthinfo.php",gameVars,"POST");
    Well for some reason this is not posting all of my cade , here is another forum that has it.
    Full code

    I want to make it so that these are the only dates that are selectable. or at leaste highlight them.
    Any ideas, here is an example that works using Flash Remoting Componets adn ColdFusion MX . But I am using PHP/MySQL.

    Here is the tut on this calendar but rememebr I want to use PHP that returns this VAR:
    Calendar
    Last edited by Andrue; 05-14-2003 at 11:38 PM.

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