to use the flash popup calendar, a few things must be done:

  1. copy the flashpop.html, flashpop.swf, and flashpop.js files into the same folder as your html file
  2. insert the following code into your html file:
    <script language="javascript" src="flashpop.js">
    <!--
    // kevin robert casey
    // 24 august 2004
    // kevin@senatorcasey.com
    //-->
    </script>
  3. to open the popup window, place the following code appropriately:
    openCalendar(target)
    where target is a reference to the text field expecting to receive the date value
  4. it would probably be a good idea to double check the title of the flashpop.html file

 

below you will find a demo of the flash popup calendar for reference.

from through

 

"but there are so many files involved - how does it all work?" you ask... for the curious, and for my own reference, here is a simplified outline:

  1. the user clicks on a button (or something similar) which calls openCalendar(target)
  2. openCalendar(target) (which is defined in flashpop.js) creates a new window and loads flashpop.html
  3. flashpop.html loads the flashpop.swf movie
  4. when the user selects a date in flashpop.swf, it makes a call to fscommand(command, args) in flashpop.html
  5. flashpop.html passes the selected date back to the file that opened it (containing the button or something similar) via the dateSelection(arg) function defined in flashpop.js
  6. dateSelection(arg) puts the given date into target.field (from back in step 1)

 

date: $Date: 2004/09/06 01:31:44 $
version: $Revision: 1.1 $