Greg,
[quoted text, click to view] > I can import a still image onto the stage successfully, as you
> did. But it stays there when the video starts playing.
That makes sense, though, right? Until you tell it to move ... an image
*should* stay put. ;)
[quoted text, click to view] > I can't seem to control the visibility of it. I think that may
> be the key.
In order to be able to address this image, you'll have to convert it to
a symbol. I recommend a movie clip symbol Doing so allows you to give that
movie clip an instance name (see the Property inspector, while the movie
clip is selected on Stage). Once it has an instance name, you can use
ActionScript to "call this object by name," so to speak, and tell it what to
do.
Each object in Flash has its own set of features. These are determined
by the object's class (in ActionScript, all objects are defined by a class,
which specifies that object's particular properties [characteristics],
methods [things it can do], and events [things it can react to]).
When it comes to Components, this principle still holds -- that is,
ActionScript even features an FLVPlayback class, which defines your
FLVPlayback object (the player itself) -- but the Components Language
Reference is organized a bit differently from the ActionScript 2.0 Language
Reference. In the ASLR, classes generally show properties, methods, and
events all in the same class entry. For some reason, the CLR separates
them, so Component classes are a little harder to "follow." In the case of
FLVPlayback, in particular, this object extends MovieClip and wraps the
VideoPlayer object, so you have more than one class to research.
But ... at least you've got a start now. :) FLVPlayback, via
VideoPlayer, provides quite a few events that may be of interest to you.
Controlling your image, which has now been converted to a movie clip --
that's much easier. You'll notice, for example, that the MovieClip class
features a MovieClip._visible property. When dealing with a class instance
(such as your image, which, as a movie clip, has been given an instance
name), you use the instance name, then a dot, then the property you're
interested in.
If your instance name is, say, posterFrame ...
posterFrame._visible = false;
.... will do it. As to *when* you want that image to go invisible ... that's
up to you, and will probably determined by the VideoPlayer.PLAYING property
of the VideoPlayer.state property.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/ "Luck is the residue of good design."