Jump to content
Search Community

speedfontain

Members
  • Posts

    1
  • Joined

  • Last visited

speedfontain's Achievements

0

Reputation

  1. Hi All, Love the GreenSock stuff, very cool and works really well. I'm trying to reuse code and load video with a different instance name placed into a single function, the problem i have is ? How can i target a video via name to play / pause etc ? function videoPlayer():void { var combinedName:VideoLoader = new VideoLoader(sourceVM,{name:combinedattName,visible:false,width:playerH,height:playerW,autoAdjustBuffer:true,scaleMode:"stretch",bgColor:0x000000,autoPlay:false,volume:.2,noCache:addCache,requireWithRoot:this.root,onComplete:onMediaComplete}); mediaHolder.addChildAt(combinedName.content, attNumber); combinedName.addEventListener(VideoLoader.VIDEO_COMPLETE,videoComplete); combinedName.load(); } function videoComplete(event:LoaderEvent):void { trace("COMPLETE") - This Works fine. } function videoControl(event:LoaderEvent):void { // HOW TO TARGET PLAYER< MAKE VISIBLE AND PLAY PAUSE / VIDEO }
×
×
  • Create New...