Fixing the Flash CS3 Flex Skin Template classpath Bug

I’ve been using the Flex Component and the Flex Skinning Templates for Adobe Flash CS3 for awhile now. I couldn’t figure out why Flash CS3 would throw up this error at certain times:

A definition for the base class could not be found in the classpath. Please enter the name of a class that is defined in the classpath, or enter the default base class ‘flash.display.MovieClip’.

Today I found the answer in the comments of the Flex Community Blog post about “Turning Flash CS3 assets into Flex Components“.

If you’re using the Skinning Templates by Adobe to create new skins for your project you’ll want to pay attention to this little item during your workflow.

I usually open the Flex Skinning Template in Flash CS3 via the “New” dialog box.

In the example of skinning a Flex Button Component. Once I open the Flex skinning template, I duplicate the symbol in the library because more often than not I will be creating multiple Flex Skin’s for a single Flex Button Component.

If you’ll notice below in the “Symbol Properties” dialog box the default Base class for the component is “mx.flash.UIMovieClip”

If you duplicate the symbol (see below), Flash CS3 changes the Base class to “flash.display.MovieClip”.

The thing to note here is if you publish your file and import the new skin into Flex Builder, your skin states will automatically play like an animated gif. Also, if you try to type in the “mx.flash.UIMovieClip” Base class path you will get the error message above.

The admin on the Flex Community blog today resolved this for me in his comments on this post and quoted below for clarity.

“I’m sorry, It appears I have mislead you with an error. I went through my steps from the beginning, and found that you need to set the base class as flash.display.MovieClip. Flash then automatically changes it to mx.flash.UIMovieClip after you click commands -> convert symbol to Flex component. You can see this change if you go to the linkage window for the symbol after you create a Flex component from it. I’m sorry for the frustration, I try to keep these articles as error free as possible, but this one slipped through. Try this and let me know how it works for you.

If you still have a problem, let me know before googling your eyes out further (I know how that is), and I’ll help you get it. It’s a great tool.

P.S. I have corrected this in the article.”

So if you encounter this problem when you are trying to bring in an animated Flash skin into Flex, converting the symbol to a Flex component command could help. See below.

Thanks Admin, I’m not sure who you are but you helped me a lot today.

Flex Prototypes; Beyond Mock-Ups

The Neo UI Designer
As a freelance RIA UI Brand Designer, I’ve adapted my Design workflow/delivery methods to fit the needs of the 2008 Start-up and Flex Builder 3.0 has helped me to accomplish this. It might seem strange for a Designer to utilize Flex Builder in the Design workflow, but for me coming from a Website Design/HTML/CSS coder background it was as a natural fit as Dreamweaver. I downloaded the trial of Flex Builder 2.0 over a year ago and created my first project as a test, just to find out what was really going on. I have to say, I was very surprised to see how much Flex’s MXML language made sense. It was just like coding an HTML/CSS website, except with MXML I had way more creative control and Photoshop-like style options such as:

  • Dropshadows and Blurs
  • Gradients! (Can’t emphasis this enough)
  • Alpha Transparency
  • Rounded Corner (Corner Radius)
  • Embedded Fonts
  • Animation Effects (Move, Resize, Rotate, Fade)
  • Not to mention the powerful Skinning possibilities

I was amazed at how quickly I could prototype Flex UI layouts from my Photoshop or Illustrator mock-ups and how creative I could be with a Developer’s tool.

A Designer using Flex Builder for RIA UI Design? Duh!
I know there’s Designers out there who say Fireworks is the next best thing for UI Design and rapid prototyping and I can’t really say I’ve tried it. I have used Visio and Illustrator for years to create static wireframes and workflows. Also, I have tried loading Flex component kits into Illustrator, Flash and Photoshop and those do aid the in the design and production process. I have to say using Flex Builder 3.0 to create working UI prototypes to hand-off to developers is the fastest and most requested way to deliver a RIA UI design.

What about Thermo?
Now, I know that Adobe is coming out with Thermo some time in the near future but I don’t know if I’m going to leave Flex Builder behind. As a Graphic UI and Brand Designer for some years now I have to say I get a lot of fulfillment seeing things actually work. As a contractor, clients don’t readily provide defined codebases to share with me (probably because they are in “stealth” mode) so I can’t work parallel to a Flex developer. Some clients have no immediate plan to build a fully functioning RIA, but want a Branded/Skinned Flex prototype to wow prospects during the pitch process. It must be fallout from the dotcom hay days that’s forcing start-ups to provide more substantive products complete with; proof of concept, branding, an established super-network of users, multiple beta releases/testing and a audible buzz before gaining additional funds from investors.

Meeting the Demand
Regardless, I am in the same boat as any other start-up. As a contract RIA UI Designer I need to provide more within my own services to meet the increase in demand for a more seamless Design-to-Developer workflow. I don’t think I am alone in this, and if you have been around long enough you will see this pattern emerge; as software applications provide more functionality, software users must demonstrate more technical knowledge and skills.

The Neo UI Designer’s New Deliverable
Gone are the days of static mock-ups being the deliverable, today are the days of Flex UI Skinned prototypes with multiple states, multiple views, animated menus and transitions. I must say the feedback has been awesome. Clients are eager to get my zipped files containing:

  • The Flex Builder Project
  • Flex CSS Stylesheet
  • Asset Folder containing: Images, SWF’s, SWC’s, MP3’s, Fonts
  • UI Layouts in MXML with Multiple Views
  • Flex Builder Bin ready for demo
  • MXML scripted movement, transitions, effects, and animated menuing
  • Flash SWF animation for the preloader
  • Embedded Icons and Fonts

Sample Flex UI Design by Dolores Joya MooreView a sample Flex UI Design Prototype deliverable.

View sample of final product 
Download sample zipped file

So with this, it is my view that the UI or Interactive Designer’s role in RIA’s is evolving. Extended knowledge into the realm of functionality will become the status quo. Integrating Flex Builder 3.0 into the UI Design workflow can only speed the RIA process which is increasingly getter shorter and shorter.

I’m always interested to hear about other’s UI Design process’ or project’s, shoot me an email at moore.art.design@gmail.com to get in touch.