Werd.

Write Code And Carry A Big Stick

  • Blog My rumblings & other stuff
  • About Developer / Designer
  • 21st Paradigm Non-Profit Organization
  • Portfolio Some of my work

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 Comment

Posted Under Flash Flex

1 Comments

  1. admin
    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

* = Required

    • Posts
    • Twitter
    • Flickr
     

    Small Turtle Po...

    Uncategorized

     

    Backyard Farmin...

    Other

     

    Redlight: A mov...

    News

    Flex 4 Ant Tasks and I don't seem to be getting a long right now.

    follow me on
    twitter

    IMAG0102IMAG0095IMAG0098IMAG0100IMAG0090IMAG0087IMAG0104IMAG0070IMAG0071IMAG0075
  • Categories

    • Actionscript3
    • AJAX
    • Coldfusion
    • Design
    • Development
    • Flash
    • Flex
    • News
    • Other
    • Personal
    • PHP
    • Ranting
    • Uncategorized
  • Archives

    • 2010
      • February
      • April
      • May
      • June
      • July
    • 2009
      • January
      • February
      • March
      • May
      • June
      • July
      • August
      • October
      • November
      • December
    • 2008
      • January
      • February
      • March
      • April
      • May
      • June
      • July
      • August
      • September
      • October
      • November
    • 2007
      • January
      • February
      • March
      • April
      • June
      • July
      • August
      • September
      • October
      • November
      • December
    • 2006
      • July
      • August
      • September
      • October
      • November
      • December

This site is using the Handgloves WordPress Theme
Designed & Developed by George Wiscombe

Subscribe via RSS