FlashCats Flash Catalyst Tips N' Tricks

16Jul/11Off

How to run Flash Catalyst CS5.5 projects on Android devices

Posted by tarajane

While playing around with Flash Catalyst 5.5 and Flash Builder 4.5 I realized it's pretty easy to get your Flash Catalyst projects onto android devices.

This tutorial will walk you through importing your Flash Catalyst CS5.5 project into Flash Builder 4.5, show you how to convert it to a Flex Mobile project, and finally run your project on an Android device.

As a heads up, I use this strictly as a prototyping/proof of concept method (no release version/to market apps). Flash Catalyst CS5.5 does not create projects optimized for flex mobile.

Requirements:

  • Flash Catalyst 5.5
  • Flash Builder 4.5
  • Motorola Xoom (or other Android device running at least FP 10.2)
7Jun/10Off

Playing sound on application load

Posted by tarajane

Although I'm not a huge fan of websites where audio begins to play immediately on application load, I wanted to try and accomplish the effect in Catalyst.

Just be sure to keep a mute or stop button front and center for your users. ;)

We're going to use the Adobe Media Encoder to convert the audio file to a video file.

Why? Well Catalyst offers extremely limited support with audio files in 1.0. We can play them, but otherwise cannot control them (pause, stop). The video support offers much better options for controlling content.

First, choose the audio file you'd like to being immediately playing on application launch.

25May/10Off

Tracking objects to the cursor on rollover

Posted by tarajane

This post stems from a desire to 'track a visual object to the mouse' in Catalyst on rollover.
What does that mean exactly?
It means an object animates such that it appears to be following the mouse cursor.

I wanted to create a dodgeball game prototype in Catalyst, whereby the dodgeball hovered on the bottom of the screen, and followed the mouse horizontally.

On click, the dodgeball would animate and appear to bounce and hit a player.

You can achieve this mouse tracking behavior using either action sequences, or state transitions.

In this post, I'll discuss how to achieve this using action sequences.

The final outcome, should look like this:

Get Adobe Flash player

23May/10Off

Scrolling on Mouse Over

Posted by bear

In Flash Catalyst, you can drop scroll bars in a Scroll Panel, and they will automatically scroll the content for you. The scrollbars will scroll the content whenever someone clicks on the scroll buttons or drags the scrollbar thumb. But what if you want the content to scroll when someone mouses over a scroll button? Well, there's a way to wire that up, too (and an example, after the jump).

20May/10Off

Looping an Action Sequence

Posted by bear

Sometimes you would like an action sequence to repeat in Flash Catalyst. For example, you might create an animation between two component states that you want to loop. Catalyst doesn't have a "Loop" feature, but there is a workaround.