Dynamically setting FLVPlayback skin to none

Cost me time, solution:

If your creating the FLVPlayback dynamically using ActionScript and want to set the skin to none the component is expecting a String. So in the component inspector your select none so I assumed "none" in my code would work... nah, got to set it to null.

Actionscript:
  1. my_flvplayback.skin = null;

This entry was posted in AS2, AS3, Flash and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Harish R
    Posted November 26, 2009 at 8:09 am | Permalink

    this throws an Error

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::skinAutoHideHitTest()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

    I ve set the Skin url on roll and then trying to remove it on mouseleave stage listener.

2 Trackbacks

  1. [...] post by newtriks This entry is filed under Uncategorized. You can follow any responses to this entry through the [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>