Jump to content
Search Community

bdavey311

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by bdavey311

  1. Greensock! I've implemented the beginning pieces of loaderMax into a template I purchased, that I asked about a few days ago and I think it's good to go. Just a few thing such as whether or not I have it setup correctly. Each swf that loads, has it's own XML file. Do I have to insert code into each swf or does LoaderMax recognize that info while it's loading it in the queue? Not sure I fully understood the documentation explanation. Sorry about that. Trying to wrap my head around it. So taking the sample code from the LoaderMax page this is how I have it setup: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; //create a LoaderMax named "mainQueue" and set up onProgress, onComplete and onError listeners var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); //append several loaders queue.append( new SWFLoader("content.swf", {name:"contentClip", estimatedBytes:126000, container:this, visible:false, autoPlay:false}) ); queue.append( new SWFLoader("team.swf", {name:"teamClip", estimatedBytes:129000, container:this, visible:false, autoPlay:false}) ); queue.append( new SWFLoader("news.swf", {name:"newsClip", estimatedBytes:140000, container:this, visible:false, autoPlay:false}) ); queue.append( new SWFLoader("contact.swf", {name:"contactClip", estimatedBytes:70000, container:this, visible:false, autoPlay:false}) ); //start loading queue.load(); //pause loading queue.pause(); //resume loading queue.resume(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { trace(event.target + " is complete!"); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); } I don't want the swf's to show, just be cached so I used the visible property. That right? And to clarify my earlier question about the XML data, should I just put those in the queue here as well? At this point I'm not too concerned about showing a progress bar...maybe that will come later once I get more comfortable with these basic steps. Thanks again for all the help. You rule! bD
  2. So I've decided that I want to mess around with some AS3 templates and break them down to begin the learning beast that is AS3. Now - my question is, would this template:http://activeden.net/item/omnia-elegant-flash-website-ikoote-v20/116542 work well with your Loader and Tween Classes? That site template, loads each swf as it's called. It would be perfect if it utilized the cache more effectively and downloaded everything in the background. I want to have a website that has a solid foundation of quality code and allows me to use what you've created so I can throw my own style into it. Thanks again for everything. bD
  3. ooooooooooooooooooo. Missed that " flash.geom.Point"
  4. Ah. So I switched that as well earlier to do some testing to make sure the instance was unique but remember not being able to get it to work. So, thinking I'm crazy I tested it again with your solution and still nothing. Such confusion! Did you change it and get it to work?
  5. Yea sorry about that...the rotation was just one of the things I changed to test why it wasn't working and never changed it back. And they are movieClips. Still no go so I attached my FLA. Thanks, Brian
  6. Any reason why this wouldn't work? I've got two movieClips that both have instance names and I get this for the output message: \\motionBlur tweens only work for MovieClips and TextFields \\motionBlur tweens only work for MovieClips and TextFields Here is the code. stop(); import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin, AutoAlphaPlugin, MotionBlurPlugin, ColorMatrixFilterPlugin, DropShadowFilterPlugin, TransformAroundPointPlugin]); var tl:TimelineLite = new TimelineLite(); tl.insert( TweenLite.to(logoLeft, 1, {motionBlur:true, transformAroundPoint:{point:new Point(487,152), rotation:30}}) ); tl.insert( TweenLite.to(logoRight, 1, {motionBlur:true, transformAroundPoint:{point:new Point(487,152), rotation:30}}) ); tl.insert( TweenLite.to(middleLogo, 2, {_xscale:130, _yscale:130, autoAlpha:0, ease:Back.easeOut}), 0.4); thanks in advance! MotionBlur rules.
  7. Right on man. Like I said - Because of your positivity and genuine response for helping people out I've signed up for club GreenSock. I then realized that you had the sale going on and became a full member. Much appreciated for everything and much love! PeaceOut! Brian
  8. Does it does read from top to bottom for the order of events. That's great! Brian
  9. Wow dude. I'm starting to understand how this works and it is pimp! Sooooooo many questions though because wrapping my head around this is nuts. So instead of bothering you I went through the documentation and picked up as much as I could. But my main question is probably the one I need to understand the most. Does the order of the actionscript obviously affect the timeline? So is the timeline created reading the actionscript from top to bottom and and whatever "append" is next in the code determines that it comes next? Or how does that work? Trying to visually understand this is a trip. Not going to lie. Also - is all text a pain in the ass to animate? Mine doesn't come out very clean and gets on my nerves. I have a feeling that's just flash. Finally, this was my new favorite chunk of code I played around with that sort of changed my life: tl.appendMultiple([ TweenLite.to(txtMC.txt4_there, 1,{_x:37.85, _alpha:100, ease:Cubic.easeOut}), TweenLite.to(txtMC.txt5_are, 1,{_x:100.8, _alpha:100, ease:Cubic.easeOut}), TweenLite.to(txtMC.txt6_eager, 1,{_x:167.8, _alpha:100, ease:Cubic.easeOut}), TweenLite.to(txtMC.txt7_buyers, 1, {_x:271.8, _alpha:100, ease:Cubic.easeOut})], -1, TweenAlign.START, 0.1); Thanks again for everything. bD
  10. Wow. That file is waaaaaay cleaner and makes a lot more sense. The $150 is a little much for now - but I'm sure I can swing the $50 man. Especially with responses as quick as this. What if I didn't want the text to come in as such a straight forward sequence? Before one finishes have the other start? And then I believe I'll be done asking questions for the days. bD
  11. So I'm hoping you have a great sense of humor and find this funny. But! I was thinking that it would be dope to have some examples/tutorials on the site, such as the intro animation you put together right when you get to the page showing all the new features. Then I noticed that the motionBlur was apart of it and that it wouldn't make any sense for you to just offer that up. SO! With that being said - what if I were to join Club greensock to one support everything you have done. And 2 - dissect that dope file you got there and see the best ways to use these classes? Like I said - sense of humor. But I swear to god I'm stumped every step of the way and something like that would be sweet. That's all I got. Much love and peace! bD
  12. Yep - could still use the help with my file. CS4 ok? Basically what I want to happen is that I don't want the txtMC movieclip to activate/animate until the other animations are done. I thought that putting a delay on it would give me the time I was looking for but I noticed that doesn't stop the animations inside the movieClip from animating. So what's the best way to get all the text animations to activate only when called on? Put a delay inside of that? Surely there is a better way Thanks again man. BD
  13. Ah AS2, so is the difference basically getting rid of the quotes around the property's values and add the underscore? Such as the _y: timeline.append( new TweenLite(txt1_in, 1, {_y:-23, ease:Back.easeOut}) ); It worked so I would imagine that's the case. Do I have to do the import com.greensock.*; if I want to use the timelineLite or Max?
  14. Hola again, I'm in the mood to figure out all the new tools you have provided so please bare with the noob questions I'm trying to have a sequence of animations with text animating in. I'm not able to get any of these to work. Am I importing it correctly, and is my code even close? import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin, AutoAlphaPlugin]); import com.greensock.*; import com.greensock.easing.*; var timeline:TimelineLite = new TimelineLite(); timeline.append( new TweenLite(txt1_in, 1, {y:"-230", ease:Back.easeOut}) ); timeline.append( new TweenLite(txt2_every, 1, {blurFilter:{blurX:0}}) ); timeline.append( new TweenLite(txt3_market, 1, {y:"-2.5", ease:Elastic.easeOut}) ); Thanks in advance! BD
  15. I was not aware of that. So basically I've learned that 95% of the time to never use the movieClip = function(){} Well alright! Thanks man. bD
  16. I feel silly but for some reason this seems like it should work but I'm having a little trouble troubleshooting it. Am I using the onComplete correctly, and if so why can't I get it to call the logosFadeOut function? import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin, AutoAlphaPlugin]); import com.greensock.*; import com.greensock.easing.*; TweenLite.to(logoLeft, 1, {_x:487, ease:Bounce.easeOut, onComplete:logosFadeOut, blurFilter:{blurX:30}}); TweenLite.to(logoRight, 1, {_x:487, ease:Bounce.easeOut, onComplete:logosFadeOut, blurFilter:{blurX:30}}); TweenLite.to(middleLogo, .8, {_xscale:100, _yscale:100, autoAlpha:100, ease:Bounce.easeOut, delay:.6, startAt:{autoAlpha:0}}); logosFadeOut = function(){ trace("good"); TweenLite.to(logoLeft, .5, {_x:0, autoAlpha:0, blurFilter:{blurX:0}}); TweenLite.to(logoRight, .5, {_x:0, autoAlpha:0, blurFilter:{blurX:0}}); };
×
×
  • Create New...