FlashCats Flash Catalyst Tips N' Tricks

3Aug/10Off

Another Image Gallery Using Data Lists

Posted by bear

You know what they say, there's more than one way to skin a Data List. And there's certainly more than one way to build an image gallery in Flash Catalyst. The first method was covered in this previous post. This time, however, we're going to create one with transitions between images. Nifty, right? More after the jump!

26Jul/10Off

Creating An Image Gallery Using a Data List

Posted by bear

Ever wanted to create an image gallery with more than 20 images? Ever wanted to play some more with Data Lists in Catalyst? Well, here's your chance. We're going to create an image gallery using Data Lists and the Design Time Data Panel, so that you can create an image gallery with as many images as you want. The end result of this tutorial will look something like the below image.

More after the jump.

17Jul/10Off

Setting the initial position on a scroll panel

Posted by bear

If you've been playing around with scroll panels, you've probably noticed that the scrolling content window always starts off displaying the upper left corner of the actual scrolling content. Great for anything text-based, but not so great for anything image-based. For example, if you're scrolling an image, you will probably want to start out with the content window displaying the center of your content.

Example 1 (Centered Content)

Get Adobe Flash player

Example 2 (Default, Top-left Content)

Get Adobe Flash player

More after the jump!

17Jul/10Off

Creating Scrollbars without Tracks and Thumbs

Posted by bear

Have you ever designed a scroll panel or data list and wanted to make it scroll with just buttons? For example, the scroll panel below scrolls its content with just an up, down, left, and right button.


Get Adobe Flash player

Normally, when you create a scrollbar, Catalyst prompts you to assign the thumb and track for each scrollbar. In fact, they are both marked, rather ominously, as "required". One way of getting around this is to create the thumb and track parts, and then hide them, either offscreen, or setting their opacity to zero. But this can leave weird mouse interaction areas in your swf, and it's less than ideal.

As it turns out, "required" parts for the horizontal and vertical scrollbars are really only suggested. They're part of a typical scrollbar, but in this case, we don't want a typical scrollbar. So guess what? You don't have to assign them. Just assign the button parts (left, right, up, down) and you're good to go.

17May/10Off

Create a Button with a Hit Area that Matches Your Artwork

Posted by bear

When you convert artwork to a button in Catalyst, by default your button responds to mouse input inside the artwork's rectangular bounds. This area that responds to mouse input events from the user (mouse click, hover, enter, exit, etc.) is called the hit area. If you have multiple buttons whose hit areas overlap, the topmost rectangle will always get the click event. Sometimes your button hit areas may overlap, or sometimes you may have oddly shaped buttons and the default hit area isn't quite right.
Here's how to make your button hit areas match your artwork exactly.