Skip to main content
Participant
August 19, 2013
Question

Creating a widget that shows youtube movies

  • August 19, 2013
  • 0 replies
  • 266 views

Hi All,

I'm trieing to create a captivate widget, usein widgetfactory, that can play youtube content in my project. So far I've succeeded in creating an AS3 script that loads a youtube move and places it on the stage. Here's a part of the code i use in stagemode:

override protected function initiate():void {

   super.initiate();

  

   WidgetDebugger.debug("MainStage class");

     

   r = new myRect();

  

   r.addEventListener(Event.ADDED_TO_STAGE, myInit);

   addChild(r);

  

  

  

  }

 

  public function myInit(e:Event):void {

  

  

   p = new youTubePlayer();

  

   addChild(p);

  }

my idea was to add r as a movieclip to the stage and add p, the youtube player, to it as a child. When i run this as a standalone swf it works. But when i try to load the youtube movie into a widget nothing shows up. Anyone any ideas? Or someone who can point me to a site where i can find more information about creating widgets using widgetfactory (Allready looked at CPGURU an WidgetKing).

Thanks,

Dennis

This topic has been closed for replies.