Flash Lite [ 7 ] Date/Time
You don't need to create a Date object, and you can get the Date/Time value in the Flash Lite. Just use the fscommand2 it provided.
fscommand2( "GetDateDay" );
fscommand2( "GetDateMonth" );
fscommand2( "GetDateWeekday" );
fscommand2( "GetDateYear" );
fscommand2( "GetLocalTime" , "time" );
fscommand2( "GetTimeHours" );
fscommand2( "GetTimeMinutes" );
fscommand2( "GetTimeSeconds" );
fscommand2( "GetTimeZoneOffset" , "timezoneoffset" );
When you use GetLocalTime or GetTimeZoneOffset, and you need to use the variable which mark with orange color. Of couse, you can change to another name you like.
fscommand2( "GetDateDay" );
fscommand2( "GetDateMonth" );
fscommand2( "GetDateWeekday" );
fscommand2( "GetDateYear" );
fscommand2( "GetLocalTime" , "time" );
fscommand2( "GetTimeHours" );
fscommand2( "GetTimeMinutes" );
fscommand2( "GetTimeSeconds" );
fscommand2( "GetTimeZoneOffset" , "timezoneoffset" );
When you use GetLocalTime or GetTimeZoneOffset, and you need to use the variable which mark with orange color. Of couse, you can change to another name you like.


0 Comments:
<< Home