video.Maru
by polyGeek polyGeek logo



 

Placing controls on top of the videoWindow

November 27th, 2007 . by polyGeek

This is easily the question I get asked the most about video.Maru: how can I put controls on top of the videoWindow?

It’s very easy to do:

  • select the videoWindow MovieClip
  • Hit the F8 key to convert that to a MovieClip - essentially embedding the videoWindow within another MovieClip
  • Give it any symbol and instance name you want
  • Make sure that your controls are on a layer above the layer which holds the videoWindow holder - you probably already did this

video.Maru uses recursion to find all the controls so you could nest the videoWindow, or any other control, inside as many MovieClips as you wish and it will still work - provided the control is defined on frame one of the timeline.
The reason that the videoWindow ends up on top of other controls is that the videoWindow gets replaced at runtime with a MovieClip that is embedded in the Library.

MovieClips created at runtime automatically get placed on top of any MovieClips that are on the stage at authoring time. That’s because authoring time MovieClips get a depth starting at -16383. Creating MovieClips at runtime defaults to starting at a depth of 0, above anything on the Stage at authoring time.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Technorati
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

Leave a Reply

Name

Mail (never published)

Website