Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Jose Ramon Leon

VideoLoader into Flex 4.7.

Recommended Posts

hi friends!


I´m fighting with embed a VideoLoader without using loaderMax into flex.


Dou you know any site with an example?


video = new VideoLoader(.....




this. addChild(video) ¿?


Best regards,


Jose Ramon Leon Somovilla


Link to comment
Share on other sites

Hi and welcome to the forums.


A VideoLoader is not a DisplayObject so it can not be added to the display list. You need to add the content of the VideoLoader




OR in your VideoLoader constructor you can use a container property

var video:VideoLoader = new VideoLoader("someURLToAVideo", {container:this})
  • Like 1
Link to comment
Share on other sites

And by the way, Flex has some funky restrictions on what kind of DisplayObjects are allowed to be added to the display list (they must extend UIComponent), so you can tell LoaderMax to use a special Flex-friendly DisplayObject wrapper by default like this:

 LoaderMax.contentDisplayClass = FlexContentDisplay;

And like Carl said, you should be adding the VideoLoader's "content" to the display list, not the VideoLoader itself. 

  • Like 1
Link to comment
Share on other sites

Thanks both!!!


I already got the thing working... more or less :shock:


But with one little problem more..


if I use that:


but when i use:


The last frame of the video is still at the stage.


How can i erase it?


Thanks again!! Best regards,


Jose Ramon Leon

Link to comment
Share on other sites

That sounds like a Flex bug quite frankly. (In my experience, Flex is riddled with bugs). But you could try calling the VideoLoader's clearVideo() method. 

Link to comment
Share on other sites

With youtube flash api have the same problem, with the last frame, so it´s sure is a flex bug... :-(


Today my fight will be different, i´m using an old version of greensock of an old proyect that was remade (sequels are never good, except back to the future film xdxd), and has not got this method. So just fingers crossed with the latest version...


Thanks a lot for all!! and goodAs!! See you!

  • Like 1
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.