Select Page

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.