Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-20-2008, 02:12 AM   #1
Cerin
Registered User
 
Join Date: Jan 2008
Posts: 39
Default Using UIScrollbar with Flex

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?
Cerin is offline   Reply With Quote
Old 04-21-2008, 05:55 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

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.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 06-05-2008, 03:28 PM   #3
Fury Diamond
Registered User
 
Join Date: Apr 2008
Posts: 5
Default

I got the same error when creating the UIScrollBar in Flash CS3 with AS3 settings.

The following results in the above error:
Code:
import fl.controls.UIScrollBar;
import fl.controls.ScrollBarDirection;
I was trying to compile the example is the AS3 docs.
Fury Diamond is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Flex interaction rico Flex 2, 3 & 4 1 08-01-2008 03:31 PM
Flex Project Data services RR_QQ Flex 2, 3 & 4 0 01-28-2008 10:33 PM
Is flex for me??? roshankolar Flex 2, 3 & 4 4 09-27-2007 06:34 PM
Question about Flex 2 vistasoul Flex 2, 3 & 4 1 02-28-2006 04:07 AM


All times are GMT. The time now is 07:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.