May 16, 2008
Posted by admin
Flex Design Mode (.swc) error
So needed to use a independent scrollbar for a little project I am doing, and knowing that Flex doesn’t have a solo scrollbar component, I decided to use the one from Flash, especially after reading some articles on exporting an .swc from Flash to get what I need. Here is one of the articles from Zeuslabs.us.
 Anywho, it imported fine eventually and here is the sample AS3 code for your pleasure:
import fl.controls.UIScrollBar;
var uiComponent:UIComponent = new UIComponent();
var scrollBar:UIScrollBar = new UIScrollBar();
scrollBar.direction = "horizontal";
scrollBar.setSize(600,20);
uiComponent.addChild(scrollBar);
navigationBar.addChild(uiComponent);
Be sure to add reference that the scrollbar is a UIComponent, or you will be recieveing #1034 errors
However, I ran into a problem with design mode after I added the swc. The scrollbar still works, but it renders problems for design mode, and the error it displays is:
Design mode: Cannot load UIScrollBar.swc (reason:Error Load Verify). It may require classes (such as Adobe AIR Components) that are not supported by design mode.
Jeez, after a little research, I still haven’t found the solution, but am still working.
Yes, I did do the simple things by cleaning the project (project > clean) and tried closing and reopening it as well.
No dice.
If anyone gets any hints, before I can find it let me know. So far it looks like it MAY be a bug that has been reported to Adobe.










1 Comments
May 16, 2008
Apparently I am an idiot because I somehow missed that there are ScrollBar components for Flex (HScrollBar and VScrollBar).
Good Grief.
How did I miss that????
Oh well, good learning about the .swc to Flex anyways, however, I did see other posts about design mode errors when importing the swc that hasn’t been resolved.
Leave a comment