I'm trying to use the Flex DateField component in Flash CS6. I understand flex swc files which come packaged with Flash by default are not the full packages, so I downloaded the flex SDK.
I linked core.swc and mx.swc from the SDK in "Actionscript Settings" in my project. I can now refer to the DateField component, but when I try to add it to the stage, i get the following error:
1046: Type was not found or was not a compile-time constant: [mx.core]::IIMESupport
1046: Type was not found or was not a compile-time constant: [mx.managers]::IFocusManagerComponent
I'm adding it in the following way:
import mx.controls.DateField;
var df:DateField = new DateField();
addChild(df);
I need a date picker component which allows me to disable certain date ranges like before today and after a year and this appears to be the only component that will reliably allow me to do that.
I don't have access to FlashBuilder and FlashDevelop, only Flash Professional CS6. Any help will be appreciated!
addChild()
defaults tothis.addChild()
- Plasty Grove