Hi James
thanks for the reply, but unfortunately it didn't work I got this error:
Severity Description Resource In Folder Location Creation Time Id
2 Call to a possibly undefined method 'ArrayCollection' TimeChooser.mxml reservation/samples/reservation line 17 10 aprile 2006 17.31.28 36
2 Call to a possibly undefined method 'ArrayCollection' TimeChooser.mxml reservation/samples/reservation line 17 10 aprile 2006 17.31.28 36
I tryied to compile anyway, it did, but didn't solve the problem.
2006/4/10, James Ward <[EMAIL PROTECTED]>:
Hi Paolo,
This is a bug. For now you can fix it by updating the code to:
public function set selectedDate(_selectedDate:Date):void
{
dataProvider = new ArrayCollection();
this._selectedDate = _selectedDate;
for (var i:uint = 0; i <= 23; i++)
{
addDate(i,0);
addDate(i,15);
addDate(i,30);
addDate(i,45);
}
}
private function addDate(h:uint,m:uint):void
{
var t:Date = new Date(_selectedDate.getTime());
t.setHours(h);
t.setMinutes(m);
dataProvider.addItem(t);
if ((t.getHours() == _selectedDate.getHours()) && ( t.getMinutes() ==
_selectedDate.getMinutes()))
{
selectedIndex = dataProvider.length ;
}
}
Let me know if that works.
-James
On Mon, 2006-04-10 at 09:20 +0000, Paolo Bernardini wrote:
> I was looking at the reservation sample that come with the flex data
> services, and I noted than unlike beta1, with beta2 when you drag to
> make a reservation the two combos displaying the time don't update to
> reflect the selection of the drag action.
> I checked the code and I didn't see any error, it looks like there is
> a bug with the selectedIndex of the combo in TimeChooser.mxml.
>
>
> if ((t.getHours() == _selectedDate.getHours()) && (t.getMinutes() ==
> _selectedDate.getMinutes())){
> selectedIndex = dp.length;
>
> }
> dp.push(t);
> }
>
> can someone confirm this?
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.