|
Thanks Matt, I was just trying to compile it in Flash,
as outlined in http://download.macromedia.com/pub/documentation/en/flex/15/flex_components_themes.pdf For use in Flex. But I guess I don’t need to in this
case. From: SWCs for Flex 1.5 aren’t really
intended to work in MX 2004, just Flex. From: Well I gave up with trying to compile it
in Flash, as there were too many compiler errors. Works fine with Flex. Can anyone tell me how to compile
components in Flash when required classes are missing? In this case,
mx.styles.CSSStyleSheet doesn’t come with Flex Classes (flexforflash.zip)
and the compiler throws a bunch of other nasty messages about the UIObject
methods createClassObjectWithStyles, getNonInheritingStyle, etc. SWCRepair
didn’t fix it in this case. ??
Jim From: Hi all, I’d like to use the ColorPicker component that ships
in the extras folder of Flex 1.5. Although the readme states: “The colorpicker folder
contains: The ActionScript source, the .PNG and .AS files, along with the compiled component swc.”
I don’t have the SWC file. I decided to do the logical thing, and compile it using
Flash MX 2004. I created a component, associated the class, set the classpath
to flex classes, and exported the swc. Then, I ran swcrepair : ColorPicker.swf: OK ColorPicker.png: OK catalog.xml: OK ColorPicker.asi: needs
repair... looking in
Accordion.swc looking in Application.swc looking in
Binding.swc looking in
Box.swc looking in
Button.swc looking in
CheckBox.swc looking in
ComboBox.swc looking in
ControlBar.swc looking in
DataGrid.swc looking in
DataGridColumn.swc looking in
DateChooser.swc looking in
DateField.swc looking in
DividedBox.swc looking in
DownloadProgressBar.swc looking in
FlashRemoting.swc looking in
Formatter.swc looking in
FormItem.swc looking in
HBox.swc looking in
HScrollBar.swc looking in Image.swc looking in
Label.swc looking in
Link.swc looking in
LinkBar.swc looking in
List.swc looking in
Loader.swc looking in
MediaController.swc looking in
MediaDisplay.swc looking in
MediaPlayback.swc looking in
MenuBar.swc looking in
Move.swc looking in
NumericStepper.swc looking in
Panel.swc looking in
Preloader.swc looking in
ProgressBar.swc looking in
RadioButton.swc looking in
RadioButtonGroup.swc looking in
Repeater.swc looking in
SimpleButton.swc looking in
TabBar.swc looking in
TabNavigator.swc looking in
TextArea.swc looking in
TextInput.swc looking in
TitleWindow.swc looking in
Tree.swc looking in
TreeDataProvider.swc looking in
Validator.swc looking in
VBox.swc looking in
ViewStack.swc looking in
VScrollBar.swc looking in
Zoom.swc SWCRepair completed I then put this SWC in the appropriate Flex directory (other custom
components work fine in this directory.) Upon running the ColorPickerSample.mxml (that also comes in the extras
directory) I get this error (first compile only) C:\Program
Files\Macromedia\Flex\jrun4\servers\default\streamline\s57\components\ColorPicker.swc
does not define a sprite for ColorPicker class ColorPicker It’s probably something simple. Ideas, anyone? Jim
|
- RE: [flexcoders] Using the ColorPicker component in Flex 1.5 e... Jim Phelan
- RE: [flexcoders] Using the ColorPicker component in Flex ... Matt Chotin
- RE: [flexcoders] Using the ColorPicker component in F... Jim Phelan

