Jump to content

Search the Community

Showing results for tags 'loaderm'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


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

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Personal Website



Company Website



Found 1 result

  1. Greetings all, I've run into a problem with loadermax videoloader. I have the video loading and can play it with no problem. My problem is that I cannot get it to play using a play button that is used in my project. In the queueCompleteHandler below, I add a listener which works: videoContent.addEventListener(MouseEvent.CLICK, _togglePause,false, 0, true); This is clicking on the video itself to get it to play. What I would like to do is have a mc which overlays the video take over the play actions: This fails miserably: firstPlay.addEventListener(MouseEvent.CLICK, firstVidPlay); My code: function _queueCompleteHandler(event:LoaderEvent):void { var video:VideoLoader = LoaderMax.getLoader("vid/u1a2p3.mp4"); trace("duration:", video.duration); var videoContent:ContentDisplay = LoaderMax.getContent("vid/u1a2p3.mp4"); videoContent.x = vidBG.x; videoContent.y = vidBG.y; videoContent.width = 512; videoContent.height = 288; videoContent.scaleMode = "proportionalInside"; addChild(videoContent); addChild(firstPlay); videoContent.addEventListener(MouseEvent.CLICK, _togglePause,false, 0, true); firstPlay.addEventListener(MouseEvent.CLICK, firstVidPlay); } WORKS: function _togglePause(event:MouseEvent):void { var video:VideoLoader = VideoLoader(event.target.loader); video.videoPaused = ! video.videoPaused; video.playVideo(); } DOES NOT WORK: function firstVidPlay(event:MouseEvent):void { var video:VideoLoader = VideoLoader(event.target.loader); video.videoPaused = ! video.videoPaused; video.playVideo(); firstPlay.visible = false; } Any help will be appreciated. If this can be solved, then my scrubber woes should be solved as well. Cheers!