Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-26-2006, 02:44 PM   #1
Jon Lai
Registered User
Join Date: Jul 2006
Posts: 35
Default DateChooser Component

In Flash, there's a Datechooser component. What function can I use to seperate the Date, Month, Year, of the chosen date into three seperate variables?
Jon Lai is offline   Reply With Quote
Old 08-01-2006, 06:53 PM   #2
Registered User
Join Date: Aug 2006
Posts: 3

try this in your script to get you started:


and .getDay() / .getMonth() / .getYear()

.getYear() seems be the number of years the selected year is from 1900 so the following would give "06" if you chose a date in 2006:

yearchosen = datechooser_dc.selectedDate.getYear()-100;

Last edited by keeprighton1974; 08-01-2006 at 06:57 PM.
keeprighton1974 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
removeMovieClip() not work for components? djandrew Components 30 08-03-2007 04:51 PM
PHP or XML events with DateChooser component mjorge ActionScript 2.0 0 04-19-2006 03:48 PM
DateChooser Component - Cannot Set Text Parameters BullFrawg Components 6 09-01-2005 03:39 AM
Working with the dateChooser component monAmour ActionScript 1.0 (and below) 2 10-27-2004 07:45 PM
extending the DateChooser component fu-meng Components 0 07-06-2004 01:53 PM

All times are GMT. The time now is 05:46 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.