Jump to content
Search Community

videoPause not firing

Wonder Giant test
Moderator Tag

Recommended Posts

I am using a queue to load an xml and video:

 

queue = new LoaderMax ({name:"mainQueue", onComplete:transitionIn2});

queue.append (new XMLLoader ("cofig.xml", {name:"myxml"}));

queue.append (new VideoLoader (videoFile, {name:"myvideo", repeat:-1, container:main.videoHolder, autoPlay:true, scaleMode:"proportionalOutside", width:800, height:600}));

queue.load ();

 

Then later I am trying to pause the video, but when I do this:

var video:VideoLoader = LoaderMax.getLoader ("myvideo").pauseVideo ();

 

I get this error:

1061: Call to a possibly undefined method pauseVideo through a reference with static type com.greensock.loading.core:LoaderCore.

 

Any ideas?

Link to comment
Share on other sites

  • 2 weeks later...

You must be using a very old version of LoaderMax. More recent versions of getLoader() return an untyped object (*) rather than a LoaderCore. But if you insist on using the old version, you could just cast it as a VideoLoader like VideoLoader(LoaderMax.getLoader("myvideo")).pauseVideo()

 

I would DEFINITELY recommend updating, though, as I've made several enhancements and bug fixes over the last several months. http://www.greensock.com/loadermax/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...