set selectableRange for one field based on dates
entred in the other one. In priveous beta everything
worked fine but in b3 it started to kill my browser.
So I made another application to test it
Here it is, try to run the following code in your
browser. The problem occurs when you first set the
date in the top field and then change that date to a
date before.
___________________________________
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
backgroundColor="#C6D0DE" >
<mx:Script>
<![CDATA[
private function setEdate():void
{
var date:Date = new Date(sDate.selectedDate);
eDate.selectableRange={rangeStart: new Date(2006,
7, 1),
rangeEnd: new Date(date.getFullYear(),
date.getMonth()+3, date.getDate()+7)};
}
]]>
</mx:Script>
<mx:DateField id="sDate" change="setEdate()"/>
<mx:DateField id="eDate"/>
</mx:Application>
____________________
On my computer it kills the browser so the system
suggests to disable flash player.
I have tried on different computers with same luck.
So I guess it'a bug.
Dima Ulich
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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.

