Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-30-2006, 12:34 AM   #1
petter mikke
Registered User
 
Join Date: Nov 2006
Posts: 1
Smile Datechooser component (customise)

I want to use a datechooser component to enable the user to chose a day and when that day its clicked triggers an event that loads a movieclip.

So how do i instruct the component to respond with an event when a day its clicked?

IŽll be most gratefull http://www.actionscript.org/forums/i...lies/smile.gif
on your help on this function. thanks!
petter mikke is offline   Reply With Quote
Old 11-30-2006, 09:37 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

from the help section:

Quote:
Originally Posted by flash help panel
Example
This example, written on a frame of the timeline, sends a message to the Output panel when a DateChooser instance called my_dc is changed. The first line of code creates a listener object called form. The second line defines a function for the change event on the listener object. Inside the function is a trace() statement that uses the event object that is automatically passed to the function, in this example eventObj, to generate a message. The target property of an event object is the component that generated the event (in this example, my_dc).

// Create listener object.
var dcListener:Object = new Object();
dcListener.change = function(evt_obj:Object) {
var thisDate: Date = evt_obj.target.selectedDate;
trace("date selected: " + thisDate);
};

// Add listener object to date chooser.
my_dc.addEventListener("change", dcListener);

so instead of the trace statement... call a function or event to trigger instead.
__________________
tg
---
what the hell was i thinking?

Last edited by tg; 11-30-2006 at 09:39 PM.
tg is offline   Reply With Quote
Reply


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
DateChooser Component Jon Lai Components 1 08-01-2006 06:53 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 10:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.