I've committed a fix to DateChooser. The problem was that DateChooser was looking for background and border beads on the SWF side which were not defined in the defaults.css. Further, had those beads been defined, DateChooser would not have used them correctly.
Please take a new nightly build which should include this fix. If you want to include background on the DateChooser, do it this way: .MyDateChooser { background-color: #CFCFCF; } @media -flex-flash { .MyDateChooser { iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); } } ‹peter On 10/8/16, 5:15 AM, "Pan Li" <pa...@prominic.net> wrote: > > >Hi everyone! > >DateChooser control fails to me in FlexJS 0.7 in swf mode: >the problem can be reproduced with only two lines of code (There were >longer code but I removed not relevant codes to demonstrate the problem I >have) >----------------- ><js:DateChooser id="ddd"/> > ><js:Label id="lbl" text="Hello World" width="200" /> >----------------- > >it pops error when starting the application in swf mode: >TypeError: Error #1007: Instantiation attempted on a non-constructor. > at org.apache.flex.html.beads::DateChooserView/set strand()[c:\Jenkins >\workspace\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\fle >x >\html\beads\DateChooserView.as:71] > at org.apache.flex.core::UIBase/addBead()[c:\Jenkins\workspace >\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core >\UIBase.as:1028] > at org.apache.flex.core::UIBase/addedToParent()[c:\Jenkins\workspace >\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core >\UIBase.as:1319] > at org.apache.flex.core::UIBase/addElement()[c:\Jenkins\workspace >\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core >\UIBase.as:1093] >....... (many others) > > >the exactly same code can start in javascript mode of FlexJS, but the date >chooser doesn't render perfectly, there are some random gaps between some >of the cells of "day". > >I had seen similar issues in earlier FlexJS 0.6 using DateChooser control. > > > >Thank you > >Pan Li >My Apache Flex community contribution is working on the open source >Moonshine-IDE.com for FlexJS.