I dont think it works with Flex 4.
yeah it currently doesn't workin Flex 4 i am in the process of attempting to get it to work, although i;m not hopeful
Why not just use actionscript this post seems suitable for your needs.
Message was edited by: miguel8312
Let us know how it goes.
it was the spinner part of the time editor i wanted not the clock itself.
I've only been playing around with flex for about 4 weeks and I've found converting the yahoo component to flex 4 is a little beyond me there's is too much going on that i don't understand within the code.
so it's back to the drawing board
It works in Flex 4, I am actually using it.
I am using Yahoo Astra 1.4 SWC
What type of RTE are you experiencing ?
And no, I had not to use updated sources for this library to make it work in Flex 4 by Josh Tynjala from GitHub
as far as I can remember
the probelms I am having with it in Flex 4
- The arrow buttons do not appear (I am using TimeStepper not TimeInput)
- The AM/PM field to display (i have set styles for 12hr and ampm to show). However there are 3 textfields present, just nothing in the last one
right i've had some moderate success converting the yahoo TimeStepper component http://developer.yahoo.com/flash/astra-flex/timestepper/
The classes I have now are in no way converted to a spark architecture but they do seem to work
in the TimeInput class
AMPMField.text = this.getStyle("AMText"); and
AMPMField.text = this.getStyle("PMText");
weren't working, I have replaced them with hard coded "am" and "pm" strings for now.
In addition the setting of styles for the buttons weren't working
this.nextButton.styleName = new StyleProxy(this, this.upArrowStyleFilters);
this.nextButton.upSkinName = "upArrowUpSkin";
this.nextButton.overSkinName = "upArrowOverSkin";
this.nextButton.downSkinName = "upArrowDownSkin";
this.nextButton.disabledSkinName = "upArrowDisabledSkin";
this.nextButton.skinName = "upArrowSkin";
this.nextButton.upIconName = "";
this.nextButton.overIconName = "";
this.nextButton.downIconName = "";
this.nextButton.disabledIconName = "";
the buttons were converted to spark buttons and the styling was replaced with
prevButton.height = timeInput.height / 2;
nextButton.height = timeInput.height / 2;
for both next and previous buttons respectively.
Once my current project is over I'll will attempt to come back to this and create a spark compatible component