Jump to content
Search Community

DeltaFrog

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by DeltaFrog

  1. Hmm now my chrome/developer tools/console is returning a Uncaught ReferenceError: _tween is not defined
  2. Can't thank you enough Jack, I'm a bit new to html and Java script so I'm still a bit confused. Below is the div I want to display the number in. Do I need to add a <p> tag to my html? This is what I have currently: <div id="data-rate"></div> Should I replace "trace" with my div id "data-rate"?
  3. I'm just looking for the best way to tween a number from 0 - 500 and display the counting in html, kinda like a preloader animation. Can someone point me in the right direction? Is that something I can do using endArray?
  4. Ah, just convert to a string. Gotcha. TweenLite.to(mc, 1, {y:String(-10)});
  5. Say I want to move an objects y position +10 each time a function is called: Would I do something like this or is there something better? TweenMax.to(mc, 1, {y:mc.y+10});
  6. I found this and it pretty much says flash can't do soft burn. http://livedocs.adobe.com/flash/9.0/Usi ... -7d55.html The blending modes that Flash does not support are Average, Negation, Exclusion, Soft Light, Subtractive, Fuzzy Light, Color Dodge, and Color Burn.
  7. Hi everyone I have a design in fireworks that I would like to recreate in flash. The problem is flash doesn't have the same layer effects as fireworks and the design is dependent on them. Is it possible to match the soft dodge effect using greeksock?
  8. I just got around to doing this in as3 so I figured I'd post it for a complete tread. Better late then never right? import com.greensock.*; import com.greensock.easing.*; var mcs:Array=[mc,mc,mc];//just put your MovieClips in this Array var i:Number,curMC:MovieClip; for (i = 0; i < mcs.length; i++) { curMC=mcs; curMC.others=getOthers(curMC); curMC.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler); curMC.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler); } //returns an Array of all the MovieClips in the "mcs" Array EXCEPT the on passed in as a parameter. function getOthers(mc:MovieClip):Array { var others:Array=[]; for (var i:Number = 0; i < mcs.length; i++) { if (mcs!=mc) { others.push(mcs); } } return others; } function rollOverHandler(event:MouseEvent):void { TweenMax.allTo(event.target.others, 1, {colorTransform:{exposure:0.5}}); } function rollOutHandler(event:MouseEvent):void { TweenMax.allTo(event.target.others, 1, {colorTransform:{exposure:1}}); }
  9. Hi I can't seem to get transformAroundCenter to fire. I have the TransformAroundCenterPlugin.as in the plug ins folder and I think I'm importing everything but it just wont go. import com.greensock.*; import com.greensock.easing.*; TweenLite.to(mc, 1, {transformAroundCenter:{scaleX:0.1, scaleY:0.1}, ease:Elastic.easeOut}); Any ideas? -Delta
  10. Ahh thought TweenLite.to(mc, 1, {frame:-10}); was working but maybe not....time to zzz. hehe
  11. Hey everyone, Is there a way I can set the playhead to go back ten frames? So no matter where the play head is it goes back ten frames? TweenLite.to(mc, 1, {frame:backTenFrames}); Thanks in advance.
  12. Now that's sexy. Very nice, just what I was looking for thank you. Smaller toooooo.
  13. Hey I'm trying to do this rollover thing in AS3 but have a snag. how would I finish this? Thanks in advance. import com.greensock.*; import com.greensock.easing.*; function activateRolloverFunc() { var mcs:Array=[homePage_mc.k1_mc,homePage_mc.k2_mc,homePage_mc.k3_mc,homePage_mc.k4_mc,homePage_mc.k5_mc];//just put your MovieClips in this Array var i:Number,j:Number,curMC:MovieClip; for (i=0; i curMC=mcs; curMC.others=getOthers(curMC); curMC.addEventListener(MouseEvent.MOUSE_OVER, rollOverHandler); curMC.addEventListener(MouseEvent.MOUSE_OUT, rollOutHandler); } //returns an Array of all the MovieClips in the "mcs" Array EXCEPT the on passed in as a parameter. function getOthers(mc:MovieClip):Array { //builds array var others:Array=[]; for (var i:Number = 0; i if (mcs!=mc) { others.push(mcs); } } return others; } function rollOverHandler() { TweenMax.allTo(this.others,1,{colorTransform:{exposure:0.6}}); TweenMax.allTo(this.others, 1, {colorTransform:{exposure:0}}); } function rollOutHandler() { TweenMax.allTo(this.others,.5,{colorTransform:{exposure:1}}); } } activateRolloverFunc(); Looks like the "this.others" is the problem, it does not trace in the roll handlers. Just starting working with AS3 so thanks for the help! it generates this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenMax$/allTo() at MethodInfo-238()
  14. Thanks a lot. I found an article on it but your solution is ten times shorter. Your brain must be really heavy.
  15. Thanks I'll try that. Looks like something I should have known along time ago. :S
  16. I guess I am always looking for the next best solution. It does run smooth. I guess I'll just leave it like this.
  17. I'm sure there is a much better way to do this and before I try I wanted to see what your thoughts on it are. This works but I'm sure it it could be a bit smoother. Thanks. function panUpFunc() { TweenLite.to(panning_mc, 23, {y:-170, onComplete:panDownFunc}); } function panDownFunc() { TweenLite.to(panning_mc, 23, {y:20, onComplete:panUpFunc}); } panUpFunc();
  18. Hey is there a way to just delay a goto function without changing any other properties? Somthing like: TweenLite.to(mc, 1, {onComplete:this.gotoAndPlay, onCompleteParams:["myframe"]}); Thanks a lot!
  19. Well I couldn't be happier. Thank you so much Jack. Been trying to do something like this for a long time. You ever get tired of people telling you how cool you are? lol Thanks again.
  20. Awesome, just awesome man. I can't wait til my shockingly green membership runs out so I can purchase it again. I changed to the v11 release and its working now. My gut says it was directly related to that but I did tweek a few other things. Thank you so much. Maybe I'll start a new thread and see if there is a way to optimize this so I could easily add additional clips. import com.greensock.*; import com.greensock.easing.*; square1.onRollOver = function() { TweenMax.to(square2.container,.5,{colorTransform:{exposure:.5}}); TweenMax.to(square3.container,.5,{colorTransform:{exposure:.5}}); }; square2.onRollOver = function() { TweenMax.to(square1.container,.5,{colorTransform:{exposure:.5}}); TweenMax.to(square3.container,.5,{colorTransform:{exposure:.5}}); }; square3.onRollOver = function() { TweenMax.to(square1.container,.5,{colorTransform:{exposure:.5}}); TweenMax.to(square2.container,.5,{colorTransform:{exposure:.5}}); }; square1.onRollOut = function() { TweenMax.to(square2.container,.5,{colorTransform:{exposure:1}}); TweenMax.to(square3.container,.5,{colorTransform:{exposure:1}}); }; square2.onRollOut = function() { TweenMax.to(square1.container,.5,{colorTransform:{exposure:1}}); TweenMax.to(square3.container,.5,{colorTransform:{exposure:1}}); }; square3.onRollOut = function() { TweenMax.to(square1.container,.5,{colorTransform:{exposure:1}}); TweenMax.to(square2.container,.5,{colorTransform:{exposure:1}}); };
  21. Ok I have three movie clips with rollovers and I want to make the movie clips that I am not putting the mouse over darken. The movie clip rolled over would stay its normal exposure while the others would darken. When the mouse is not over any clip they all return to the normal exposure. I feel like this below should work but I cant get it to act right (sometimes they don't darken and sometimes they do) maybe I am not using the Overwrite manager correctly. I also am sure there is a better structure to accomplish this simple task. Any ideas would be awesome. thanks square1.hitter.onRollOver = function() { TweenMax.to(square2.container,1,{colorTransform:{exposure:.5}}); TweenMax.to(square3.container,1,{colorTransform:{exposure:.5}}); }; square2.hitter.onRollOver = function() { TweenMax.to(square1.container,1,{colorTransform:{exposure:.5}}); TweenMax.to(square3.container,1,{colorTransform:{exposure:.5}}); }; square3.hitter.onRollOver = function() { TweenMax.to(square1.container,1,{colorTransform:{exposure:.5}}); TweenMax.to(square2.container,1,{colorTransform:{exposure:.5}}); }; square1.hitter.onRollOut = function() { TweenMax.to(square2.container,1,{colorTransform:{exposure:1}}); TweenMax.to(square3.container,1,{colorTransform:{exposure:1}}); }; square2.hitter.onRollOut = function() { TweenMax.to(square1.container,1,{colorTransform:{exposure:1}}); TweenMax.to(square3.container,1,{colorTransform:{exposure:1}}); }; square3.hitter.onRollOut = function() { TweenMax.to(square1.container,1,{colorTransform:{exposure:1}}); TweenMax.to(square2.container,1,{colorTransform:{exposure:1}}); };
  22. Hey is there an easy way to lock the width and height ratio? I'm trying to set the width of the mc equal to the stage but have the height keep to scale also. So the wider I open my stage the taller the mc gets also. :S Thanks in advance. sizeXListener = new Object(); sizeXListener.onResize = resizerX; Stage.addListener(sizeXListener); function resizerX() { TweenLite.to(main,0,{_width:Math.floor(Stage.width)}); } resizerX();
  23. Man this engine is smooth! You have made coding a joy. http://www.coristyle.com/ http://www.kainaluxt.com http://www.mendwater.com http://www.graygallery.com
×
×
  • Create New...