Category: Flash

JW Player example: two streaming flash players that clip to hard stop in a single page

The authors of our learning modules often want to embed one one or more videos embedded in a page. A typical request is to be able to “edit” the video using a duration set in the playist, so that the player shows only a few seconds of the video, focusing on only the relevant material for the current page.

Continue reading

Troubleshooting Jeroen Wijering’s FLV player in your HTML

There are some errors that come up time and time again when working with Jeroen Wijering’s Flash Video Player. Here’s how to troubleshoot them. I’ll keep adding to the list as time permits. Click the images to see a larger view.

Continue reading

Error #1056: Cannot create property x on loaded clip in AS3

I had a particularly sticky flash problem where a MovieClip worked perfectly when run on its own, but when loaded into a container clip using a loader, would give:

Error #1056: Cannot create property someProperty on loaded clip myLoadedClip
At first I thought it was some kind of timing problem or failure to declare the items in the clip, but it turned out, simply adding the word dynamic to the class definition fixed the problem. Dynamic classes can have properties added at runtime. The MovieClip class is already dynamic, but apparently, the dynamic property is removed in some other part of my code.

Continue reading

useButtonMode = true not working in AS3

In Actionscript 3, you may find yourself wondering why when you use “useHandCursor” on a MovieClip, the cursor remains an arrow on mouse_down.

In AS3, useHandCursor is a property of the SimpleButton class. if an object has “buttonMode” set to true, by default “useHandCursor” will also be true. If is is not set to buttonMode, setting “useHandCursor” to true will do nothing.

On objects that are set to buttonMode, setting “useHandCursor to false will prevent the cursor from changing to a hand on MOUSE_DOWN.

Continue reading

A SCORM-ready template: Part 2E. Add the video player to your learning module

If you are in a hurry, here are two ready-to-use pieces of player code to choose from. All you need to do is choose one, edit a few lines and drop the code into your page. You will need a playlist for both of them, although it can be very simple for the single file player. Save the playlist to the media folder (there is probably a sample one there already in newer modules).

Continue reading