sv 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 ms en de en fr en en en ca en en en en en en en sv sv 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 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 en en en en en en en sv en fr en en en en en de en de en pt en es en de 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
MP3Loader and imported MP3 files
DagShot replied to DagShot's topic in Loading (Flash)
thank you for your reply. i will check out if this is what i was looking for, tomorrow! i don't have time today. thanks a lot. *EDIT Are all these mp3s located inside your swf? this is important
yeah i know, thanks for your reply. the loadiing itself isn't the problem, its about the onprogress Event, duration, time, progress propertys witch i use in the program to monitor and dispatch certain actions. Working with these functions is very intuitive and practical. if i know have to embed everything i somehow have to rewrite all the functions. is there an equivalent to these very features, somehow, somewhere? thx.
DagShot posted a topic in Loading (Flash)
Hey There, i wonder if there is any way to use the MP3Loader Methods with Mp3 files that are imported in the .flas library. The admin wants a single .swf rather than over a hundret files. its such a shame, because it really works well. i tried to, but it didn't work. maybe im doing it wrong, or maybe its just not meant to be. It would be very nice if you could help me out.
DagShot replied to DagShot's topic in Loading (Flash)
I noticed that the Init event wasn't happening. i built it again from scratch and noticed, that i applied the onInit function to a LoaderMax instead of a SWFLoader... sad but true, this does the trick. now everything works like a charm. thank you, greensock!
SWF Loader unload problem
DagShot replied to DagShot's topic in Loading (Flash)
Your right. Im sorry, I'm a bit of a mess right now. i should watch my touch-typing.. your help is highly aprreciated! I love your platform, i just can't handle it... here we go: along another LoaderMax "queue", witch is responsible for Mp3 Loading, i have 4 SWFLoaders,: var unter:SWFLoader = new SWFLoader("content/unternehmen.swf", {name:"unternehmen", container:this.contor, x:0, y:0, onProgress:progressFilm, onInit:filmInit}); var haupt:SWFLoader = new SWFLoader("content/hauptfilm.swf", {name:"hauptfilm", container:this.contor, x:0, y:0, onProgress:progressFilm, onInit:filmInit}); var proz:SWFLoader = new SWFLoader("content/prozess.swf", {name:"prozess", container:this.contor, x:0, y:0, onProgress:progressFilm, onInit:filmInit}); var mitA:SWFLoader = new SWFLoader("content/mitarbeiter.swf", {name:"mitarbeiter", container:this.contor, x:0, y:0, onProgress:progressFilm, onInit:filmInit}); function filmInit(event:LoaderEvent):void { this.contor.alpha = 1; var Blenden:TimelineMax = new TimelineMax(); //Blenden.append(TweenMax.to(loadbar, .8, {y:ladePos2, alpha:0, ease:Expo.easeOut})); Blenden.append(TweenMax.from(event.target.content, 3, {alpha:0})); } i have a function that loads one of the SWFLoaders, triggered by buttons, to keep the reference to the current loader, i tried to use an Array named getMe var getMe:Array = new Array(); function filmLaden(targetFilm):void{ targetFilm.load(); getMe[0] = targetFilm; } function mitarbeiterLaden(e:MouseEvent):void{ filmLaden(mitA); } function hauptLaden(e:MouseEvent):void{ filmLaden(haupt); } function prozessLaden(e:MouseEvent):void{ filmLaden(proz); } function unternehmenLaden(e:MouseEvent):void{ filmLaden(unter); } this works, ok now the tricky part: all these sub loaded swfs contain timelineMax's witch trigger the parent movieclips "filmOut" function witch basically should stop all sounds and unload the whole content of the movieClip: Code in Subloaded SWF: function itsOver():void{ MovieClip(parent.parent.parent).filmOut(); } /* ... */ var film:TimelineMax = new TimelineMax({}); /* ... */ film.append(TweenMax.to(this , .01,{go:1, onComplete:itsOver})); Code in Parent SWF: [/code] function filmOut():void{ targetLoader.rawContent.film.stop(); //an array i keep references to the mp3loaders in the sub loaded swf, this works getMe[0].rawContent.playingSounds[0].soundPaused = true; //... getMe[0].unload(); } this dosent work at all, i wonder if it is a problem, that i start loading them with a button function. i got it to work somehow with the swfloader appended to a loadermax and then immediately started loading without waiting for a button event to be fired. of couse i didn't have to store any reference to the current loader anywhere, witch doesn't seem to work in this example anywhere, i wonder why, because it works beautifully with mp3loaders. the thing i want to achieve is, to be able to load all four films ( i could also load them all at once, if that doesn't slow down the performance) and then be able to RELOAD any of these four films from scratch, so that it starts all over again. thanks a lot
SWF Loader unload problem
DagShot replied to DagShot's topic in Loading (Flash)
now i messed up my code completely. this is really urgent. i don't know how to unload an SWFLoader anymore. please help me.
SWF Loader unload problem
DagShot posted a topic in Loading (Flash)
hey guys, I'm currently loading swfs witch contain mp3 loaders and timelineMaxs via swf loader. works. when i unload on of them, the movie clips disappear, but the timeline and the sounds keep on playing, this is annoying, what should i do? *Edit i stopped them both via rawContent, but is this really the only way?
timeline max label problem
DagShot replied to DagShot's topic in GSAP (Flash)
sweet. thanks a lot. and how do i address functions and vars in a parent swf? well i found this: MovieClip(stage.getChildAt(0)).doSomething(); witch works fine, as long as i load the swf in an container movie, where doSomething(); is available. otherwise it'll just get stuck and do nothing. thats no big deal because i want to load all the conent anyway. i just wonder if there might be a more precise way to do the same. *Edit: everythings fine.
timeline max label problem
DagShot replied to DagShot's topic in GSAP (Flash)
excuse me carl, i spend the last few days in the middle of nowhere. i will try to figure out, what exactly was the problem an where i messed up the code. but right now i have a deadline and i don't have the permission to hand over any of the given artwork, means i have to somehow clean it up first to send it to you. it would be very helpful to know if it is possible to control a timelineMax, witch is located inside an sub loaded SWF ( via SWFLoader, loadermax). the whole project is split in several chapters and i would like to create an container SWF witch then loads every part and is also able to control each of them with its navigation interface. right now i don't even know how to read and write vars that are located inside of sub loaded swfs.
timeline max label problem
DagShot posted a topic in GSAP (Flash)
hey folks, i created a pretty long timelineMax, and by now there are more than a few bugs inside of it. meaning, once played, from start to end, everything is fine. BUT if i call a label, that is located at a time that has already been passed, the tweenMaxes eventually get busted. ( some of them for example stay at their alpha 0 state, where they're supposed to be later or earlier on in the TLM, or show up, even if they shouldn't) but i somehow have to implement the ability to switch chapters back and forth. so i thought about simply passing the name of the label to an freshly loaded swf, where every things fine as it should be, and then via init get timelineMax and start it from this very label. i haven't tried yet, but let me know if theres any way to avoid the busted tweens or if there is a reload method for TLM, or if this swfloader init thing isn't going to work anyway. and yeah i know i should have done it a little bit more clean, i know its possible. thanks in advance!
Zero Duration Tweens in TimelineMax
DagShot replied to DagShot's topic in GSAP (Flash)
Hey, everything works! as expected. TimelineMax is simply awesome! Thanks for the detailed information and help.
Zero Duration Tweens in TimelineMax
DagShot replied to DagShot's topic in GSAP (Flash)
this sounds promising! I'm pretty sure i used the right property because i used the documentation; but i assumed that the immediateRender property was set to false by default. i guess it automatically is set to true, when the duration of the tween is put to 0, right? i will test it in an hour or so. and let you know if it worked.
Zero Duration Tweens in TimelineMax
DagShot posted a topic in GSAP (Flash)
Hey Folks, I'm currently building a long animation movie with TimelineMax for the sake of slider implementation. the different Parts (scenes) are each organized in different MCs and i keep them off stage as long they aren't supposed to be visible. i want to place them to x:0/y:0 as soon as their timelineMax is to be activated, utilizing a zero duration TweenMax: szeneXY.append( TweenMax.to(myContent, 0, {x:0, x:0})); witch doesn't work, all these Tweens seem to be render immediately, and as a result all the mcs are visible from start. setting alpha:0 is no option because it slows down performance massivey. setting the duration of the tweens to .01 is still producing a slight movement animation eventually, witch isn't bulletproof enough. i already played around with the renderImmediately property, but wasn't lucky. thanks for reading any thoughts?
“Any time I've struggled to achieve a complex animation in CSS alone, I've never regretted using @greensock 's GSAP. After all these years, and impressive competitors, it's still Best In Class.”
“GSAP and CSS Transitions: I've done both, and its like comparing an F16 to a horse. Take like 10 minutes to try.”
“GSAP was a revelation for me to be compared with the introduction of jQuery.”
“This stuff is so incredibly amazing I can't believe it. The level of details and options put into these things and the natural instinct GreenSock has for solving everyday problems is impressive.”
“@greensock it’s a great library that many people love, and I know you care deeply about performance :)”
“I continue to be astounded by the sheer breadth of what @greensock can do. Every time I'm like "ooh, I wonder if I can do X", it turns out I can!”
“GSAP makes my job fun, because it allows me to focus on creating rich, engaging web experiences, while GSAP handles much of the implementation details behind the scenes.”
“There is no doubt that GreenSock is currently the best available tool for creating astonishing interactive websites and animation effects.”
“I really need to commit to using GSAP more in my daily work & demos. I love pushing native CSS animation as far as I can but every time I use GSAP I’m just blown away. Keep up the great work!”
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.