Software School Design and Training
Software trainer, published author, web and multimedia developer

Archive for September, 2010

Workaround for playing Flash on the iPad

Friday, September 24th, 2010

It’s no secret (to say the least) that the iPad doesn’t support Flash. This isn’t a bug; Apple did this on purpose. So if you have an iPad and surf to a web site that contains SWFs, you won’t see them.

FlowplayerAs a web developer, you can work around this. Instead of serving your SWFs in the default player embedded by the Flash application or something like SWFobject (used by Dreamweaver), use Flowplayer. Flowplayer uses the QuickTime player that comes with the iPad and iPhone. There’s a free version that displays their logo, and there are logo-free licenses starting at $95. You can use any of them commercially. Get it at www.flowplayer.org.



Upcoming speaking engagement

Monday, September 20th, 2010

I will be at the Garden State Greenfest, speaking about how to use free web 2.0 tools to market your green (or any, really) business. Topics will include Twitter, Linked In, Facebook, blogs, Groupon and other tools. Speaking schedule is still TBA.

Greenfest is being held October 1, 2 and 3 at the Garden State Exhibit Center in Somerset, NJ. For more info, visit www.gardenstategreenfest.com. You can purchase tickets online or at the door. It’s inexpensive and is good fun for the whole family, not just tree huggers like me.



Cue points in After Effects and Flash CS5

Wednesday, September 1st, 2010

Now that I have the full Master Collection of Creative Suite 5, I’ve been using some of the great collaborative features. One that I really liked is cue points. One of my clients had videos of someone speaking, and they wanted animated text to appear next to him. As he spoke certain phrases, the wording needed to appear.

After Effects and Flash made this a piece of cake. I brought 6 short videos into After Effects and created a separate composition for each one. I then added 4 or 5 cue points to each comp, where the speaker was saying certain phrases. I exported each comp to a Flash video (FLV) and brought those into Flash projects. A few lines of ActionScript 3 had Flash read each cue point and place the play head at a frame label that had the same name.

Here’s the code:

import fl.video.MetadataEvent;
video_MC.speakerFLV.addEventListener(MetadataEvent.CUE_POINT, playCuePoint);
function playCuePoint(event:MetadataEvent):void {
    gotoAndPlay(event.info.name);
}

The instance of the FLVplayer object is called speakerFLV, and that’s inside a movie clip called video_MC. The key is the last line of code: gotoAndPlay(event.info.name). If I created a cue point called Hello, this script will detect it, put the play head at a frame label called Hello, and play the animation (text animating in, then animating out). Since this happened 4-5 times in each video, I simply put a stop() command between each sequence. You can see it working at www.vision2voice.com.

Occasionally, I’d lose my place as to where each cue point was — maybe I’d forget if there were 4 or 5 or what their names were or where they were in the movie. When the FLV player was selected, the Properties panel listed them:

Cue Points

Do you notice the plus and minus signs in the panel? You can create your own cue points in the video. But where the cue points embedded in After Effects can be used in any application (even those not from Adobe), the cue points created in this panel will only be recognized by Flash. But maybe that’s all you need.