View Full Version : Using UIScrollbar with Flex
04-20-2008, 02:12 AM
I'm trying to use the fl.controls.UIScrollbar component in an Actionscript 3 project, compiled with mxmlc, but I keep getting the error " Error: Definition fl.controls:UIScrollBar could not be found." I'm assuming that the fl.* library isn't included with the Flex SDK?
Is there anyway to get use this component with Flex, or is there equivalent Flex component I can replace it with?
04-21-2008, 05:55 PM
No, the fl.* library is only included in Flash CS3. To use those components, you need to do one of two things:
1) Export the components from the Flash CS3 library in a SWC and add that to your ActionScript Project in Flex Builder.
2) Add the source files for the fl.* components to your classpath in your ActionScript project. You will need to use setStyle() to add skins or there will be runtime errors.
06-05-2008, 03:28 PM
I got the same error when creating the UIScrollBar in Flash CS3 with AS3 settings.
The following results in the above error:
I was trying to compile the example is the AS3 docs.
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.