Jump to content
Search Community

Search the Community

Showing results for tags 'as3 video mp4'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Video presenter made with VideoLoader... I made a video presenter that loads videos (mp4) and cycles through them. There are 8 videos in total around 30MB combined. Everything loads in perfectly and plays for awhile, however, for some reason after a certain number of cycles, the screen will go black and the video complete listener never fires. It does this on random videos and is never the same video that it happens to. The managePlayer function will fire and load the video but it never fires the complete event. Is this sufficient addition/removal of videoLoader? Am I missing something? Any ideas why the screen would go black and the complete event never fires? Per memory usage would it be better to make swfs rather than MP4s? private function managePlayer():void { //this just traces out to a window where we are at addToDisplayIt("managePlayer"); var currAsset = media.getChildAt(mediaTracker-1); if(currAsset.vars.type!=null) { if(currAsset is VideoLoader){ container_mc.addChild(currAsset.content); currAsset.playVideo(); currAsset.addEventListener(VideoLoader.VIDEO_COMPLETE, videoComplete); } } } private function videoComplete(e:Event):void { //this just traces out to a window where we are at addToDisplayIt("videoComplete"); var currAsset:VideoLoader = VideoLoader(e.target); currAsset.removeEventListener(VideoLoader.VIDEO_COMPLETE, videoComplete); currAsset.gotoVideoTime(0, false); container_mc.removeChildAt(0); currAsset=null; managePlayBack(); }
×
×
  • Create New...