0 Replies Latest reply on Jan 15, 2010 3:36 PM by jsd99

    YouTube Chromeless Player - Loader vs SWFLoader

    jsd99 Level 3

      I am trying to get the YouTube chromeless player to work in my Flex app.  The YouTube examples all show using the Loader class to load the swf, but if you do that, you can't addChild() to add the swf to the window.  (You get a type coercion runtime error.)


      Apparently one is supposed to use SWFLoader class for this purpose instead.  I tried that but none of the events (init, complete) ever fire.  How do you handle this?




      ytLoader = new SWFLoader();
      ytLoader.addEventListener(Event.INIT, onLoaderInit);
      ytLoader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));


      Is there any way to trace what events, if any, are being sent from ytLoader?