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 en en en en en en en en en en en en fr en en en en en en en en en en en en tr en nb en tr en fr en en en en en tr en nb en tr en fr en en en en en tr en nb en tr 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 hu en es en es en en en nl en en en en 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
Hey Fredy, I tried your method and it works great but just wondering, whether checking progress over and again causes any overheads? or it it ok...? Cheers, ak
VideoLoader smoothing not working outside flash
amitkhanna replied to amitkhanna's topic in Loading (Flash)
Hi there, I am still unable to successfully apply smoothing to videos when they are running in a browser. My swf file and videos are on the same server. Videos directory is just beside the swf file. I don't have an crossdomain file but I believe we need it if the videos are on a separate server... Any more thoughts? And btw, I love the amount of control and ease LoaderMax provides Cheers, ak
amitkhanna posted a topic in Loading (Flash)
Hi Guys, I am loading a few flv's using VideoLoader and LoaderMax queue. My video is 720x406 and I am stretching it to fit in 1000x564. VideoLoader's API says that smooting on videos is turned on by default and I have tried setting it to true as well. Problem is that when I test the sfw in flash, smoothing works but when I run this file in browser or on it own, no smoothing is applied. I have also tried this: intro.rawContent.smoothing = true; Appreciate if anyone can point out what might be happening. Thanks, ak
selfLoader & progress problem in pure AS3 project
amitkhanna posted a topic in Loading (Flash)
Hey there, I have posted this in my other thread also but though of making it a separate topic as it will be easy to search for all viewtopic.php?f=6&t=3765&p=15454#p15454 Hope you are doing great. I had SelfLoader & all my assets on frame 1 in a fla file and when I shifted my flash assets on frame 2 and defined SelfLoader on frame 1, it started working fine. This time I have an AS3 project where my fla file doesn't have anything except for a document class. Now if I specify SelfLoader in my Document class, it doesn't show correct progress, jumps straight to 1.. Can you please guide me on how to correctly use SelfLoader for such a project? Also I am using a videoLoader along with SelfLoader so I guess its best to put these loaders in LoaderMax queue but I have a question.. How do I specify ON_PROGRESS/ON_COMPLEE events for individual loaders? Thanks a lot, Cheers, ak
selfLoader & progress problem ( progress not updating )
amitkhanna replied to amitkhanna's topic in Loading (Flash)
Hey there, Hope you are doing great. Have been using LoaderMax now and really like its simplicity. I have a similar question as last time(in above posts). Last time I had all the code on a frame in a fla file and when I shifted my flash assets on frame 2 and defined SelfLoader on frame 1, it started working fine. This time I have an action script project where my fla file doesn't have anything except for a document class. Now if I specify SelfLoader in my Document class, it doesn't show correct progress, jumps straight to 1 i guess.. Can you please guide me on how to correctly use SelfLoader for such a project? Also I am using a videoLoader along with SelfLoader so I guess its best to put these loaders in LoaderMax queue but I have a question.. How do I specify ON_PROGRESS/ON_COMPLEE events for individual loaders? Thanks a lot, Cheers, ak
selfLoader & progress problem ( progress not updating )
amitkhanna replied to amitkhanna's topic in Loading (Flash)
Hey, Thanks a lot for looking into the problem and for the tips I'll have a look at the file you have attached... I am using the queue as I plan to load various other swfs later during the project. Regarding the 70% problem, i typed incorrect estimatedSize which I checked later using the target.bytesLoaded and filled in the retrieved bytes, then loader went till 100%. Thanks a lot again for creating & updating your libraries... ak
selfLoader & progress problem ( progress not updating )
amitkhanna replied to amitkhanna's topic in Loading (Flash)
Here is a simple example. Have a look at the file, if I place the "container_mc" on frame 2 and have an empty frame on frame 1, I start getting the progress updates. But then i dont have any reference to the "container_mc" on frame 1. Am i missing anything? Thanks, akselfLoaderTest.zip
selfLoader & progress problem ( progress not updating )
amitkhanna replied to amitkhanna's topic in Loading (Flash)
Ok I tried putting all images on frame 1 where all my loader code also exists, but still the same.. no progress update. But if I put all these images in an external swf and load that with SWFLoader things work ok. I noticed one thing here that my loaded swf is displayed at 70% itself and the progress bar doesn't reach the 100% mark. Cheers, ak
selfLoader & progress problem ( progress not updating )
amitkhanna posted a topic in Loading (Flash)
Hi there, I recently found LoaderMax and was just wondering why did I never looked at it while all time I was using TweenMax TweenMax is the coolest Ok the thing is, I have a simple swf with 3-4 images in a mc in it on frame 10.. this sizes up to 350kb. Now i want to show a preloader/progress bar as soon as this swf loads Problem is that the progress is never updated and thus progress bars(any kind, component, scaleX etc..) doesn't work. Rather in the end trace shows progress: 1 LoaderMax 'mainQueue' complete I have the following code taken from the docs on frame 1... I am guessing that because my images are in frame 10 thus the loader isn't able to find them and has nothing to acount for ?? any pointers on it?? Thanks a lot, ak import com.greensock.loading.*; import com.greensock.events.LoaderEvent; var loader:SelfLoader = new SelfLoader(this, {name:"self", onProgress:progressHandler, onComplete:completeHandler}); var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler}); queue.append( loader ); queue.load(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { trace(event.target + " complete"); }
“Performance has been of paramount importance for GreenSock, so there is always peace of mind for us, developers.”
“GSAP and CSS Transitions: I've done both, and its like comparing an F16 to a horse. Take like 10 minutes to try.”
“Spent today converting an animation to pure CSS, and then into GSAP. GreenSock was an order of magnitude easier. Love it.”
“With the incredible functionality, and the mind-blowing customer service, the price of Club GreenSock admission is well worth it!”
“Go and browse through FWA or Awwwards, then view source of anything you see that has cool animation and you will be surprised how widely GSAP is used.”
“I am more and more amazed every day, and very glad that I decided to get a business license.”
“I think I love GreenSock as much as bacon.”
“Really quite impressed with @GreenSock JS - even the small things.”
“@greensock is just pure awesomeness. What more can be said?”
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.