en en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en de en en fr en en ca en en en en en en sv sv en en fr en en en en en en en fr en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en sv en fr en de en en en en en pl en en en en en it en es en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
AntB90 posted a topic in Loading (Flash)
VideoLoader duration tracing out as 0 although buffer full
AntB90 replied to AntB90's topic in Loading (Flash)
Hey, thank you for your reply. I've loaded in a 10 second video and given it over 5 minutes to load just to check if the metadata was there but this isn't the case. I am converting the video to .flv with ffmpeg beforehand so that the software can play any video format and guess this may be causing the metadata to be lost. Any idea on how I can get around this or is it something I will have to solve with ffmpeg?
VideoLoader duration tracing out as 0 although buffer full
AntB90 posted a topic in Loading (Flash)
Hey, I'm trying to simply load a video and get it's duration. The video does load correctly and plays but video.duration is tracing out as 0. I also tried onComplete but again the duration traces out as 0. video = new VideoLoader(filePath, {name:"video", container:scope.videoHolder_mc, x:5, y:5, width:640, height:480, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, requireWithRoot:mainScope.root});//, onComplete:completeHandler}); video.addEventListener(VideoLoader.VIDEO_BUFFER_FULL, bufferFullHandler); video.load(); function bufferFullHandler(e:LoaderEvent):void { trace("video.duration: " + video.duration); } Thanks in advamce.
Motion path with rotation
AntB90 replied to AntB90's topic in GSAP (Flash)
Hey, Thank you for your time on this That seems to do then trick with a few minor tweaks
Motion path with rotation
AntB90 replied to AntB90's topic in GSAP (Flash)
Hey, I hope my question made sense (it was a bit difficult to explain). Putting .globe after currentTarget gives me the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. What I'm trying to accomplish is having an object follow a path (which I've done) but also make that object rotate on it's own axis a set number of times (the amount of times it rotates will control the speed in which each rotation must be done).
Motion path with rotation
AntB90 posted a topic in GSAP (Flash)
Hey, I'm having a play with TweenMax creating a solar system in which as you would expect the planets orbit the sun and rotate on their own axis as they do this. Having each of the planets orbit the sun is the easy bit and works exactly as I want but i'm trying to come up with an elegant way of having each planet rotate a set amount of times on it's own axis during it's journey around the sun (the speed of each rotation would be determined by the amount of time given for the orbit). e.g. The Earth rotates on it's own axis 365 times (approx) per orbit of the sun. Is it possible to achieve something like this using TweenMax? Hope this makes sense var orbitalPath:CirclePath2D = new CirclePath2D(320, theSun.y, currentTarget.distanceFromSun); var pathFollower:PathFollower = orbitalPath.addFollower(currentTarget, orbitalPath.angleToProgress(currentTarget.rotation), true); TweenMax.to(pathFollower, (currentTarget.orbitalPeriod *100), {progress:orbitalPath.followerTween(pathFollower, 360, Direction.CLOCKWISE), repeat:-1, ease:Linear.easeNone}); TweenMax.to(currentTarget, 5, {rotation:360, repeat:-1, ease:Linear.easeNone});
“GreenSock is the best thing that happened to SVG animations since SVG animations.”
“@greensock it’s a great library that many people love, and I know you care deeply about performance :)”
“Honestly think without TweenMax, I'd of changed careers by now; it's that good.”
“GSAP was a revelation for me to be compared with the introduction of jQuery”
“GSAP is just miles and miles ahead of any animation library out there. Great work!”
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
“No other animation library is as intuitive, rigorous, conceptually simple and well curated as GreenSock’s”
“The best thing about GSAP is that it just works, and it works well. On every single browser I’ve tested.”
“With the incredible functionality, and the mind-blowing customer service, the price of Club GreenSock admission is well worth it!”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.