Jump to content
Search Community

chefkeifer

Members
  • Posts

    129
  • Joined

  • Last visited

Everything posted by chefkeifer

  1. I am trying to make a little ad banner with multiple ads that have buttons within each one that take them other sites. since my MC are on different layers only the one MC works. its the one on the highest level. how do i make them all work..i have tried the autoAlpha, which made it unclickabe but i still the layeriing issue is what the problem is. any suggestions would be great. here is my code: import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; //*****====================================================***** image1.alpha = 0; image2.alpha = 0; image3.alpha = 0; image6.alpha = 0; //----------------------------------------------- var picScroll:TimelineMax = new TimelineMax({repeat:-1, repeatDelay:3}); picScroll.append(TweenMax.to(image6, 4, {alpha:1})); picScroll.append(TweenMax.to(image6, 4, {alpha:0})); picScroll.append(TweenMax.to(image6, 4, {alpha:0})); picScroll.append(TweenMax.to(image3, 4, {alpha:1})); picScroll.append(TweenMax.to(image3, 8, {y:"-206"})); picScroll.append(TweenMax.to(image3, 4, {alpha:0})); picScroll.append(TweenMax.to(image2, 4, {alpha:1})); picScroll.append(TweenMax.to(image2, 4, {alpha:0})); picScroll.append(TweenMax.to(image1, 4, {alpha:1})); picScroll.append(TweenMax.to(image1, 4, {alpha:0}));
  2. thanks Jack..perfect...i appreciate it...
  3. i would like for them to happen one after the other just like an append would go. Jack i was using a previous code you suggested for another application thought that I could just add another tween and it would fine..not having much luck... i just want to add another tween to the activeTween. i was going to use a Timelinemax and then reverse it in the out function but that didnt work either...
  4. TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll()
  5. I tried that and got a whole bunch of rendering errors..
  6. i have a button that i want to get two tweens to append right after the other and then reverse on roll over and rollout. this isnt working not sure how to add that second tween import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; var btns:Array = [btn1, btn2, btn3, btn4, btn5, btn6]; var activeTween:TweenLite; for (var i:int = 0; i < btns.length; i++) { btns[i].buttonMode = true; btns[i].addEventListener(MouseEvent.ROLL_OVER, over); btns[i].addEventListener(MouseEvent.ROLL_OUT, out); } function over(event:MouseEvent):void { activeTween = new TweenLite(event.currentTarget.board1, .25, {x:50}); activeTween = new TweenLite(event.currentTarget.board2, .25, {x:75}); } function out(event:MouseEvent):void { activeTween.reverse(); }
  7. I meant by within a tween. something like this not that this really applies to this situation but for maybe something else.. function over(event:MouseEvent):void { activeTween = new TweenLite(event.currentTarget, .25, {rotationZ:0, scaleX:2, scaleY:2, x:-2.5, y:-1, event.currentTarget.setChildIndex.numChildren -1}); }
  8. event.currentTarget.parent.setChildIndex(event.currentTarget, event.currentTarget.parent.numChildren - 1); worked great thanks... the setChildIndex is new to me...is there a way to do that within a tween? or you do have to do it like this? function over(event:MouseEvent):void { activeTween = new TweenLite(event.currentTarget, .25, {rotationZ:0, scaleX:2, scaleY:2, x:-2.5, y:-1}); event.currentTarget.parent.setChildIndex(event.currentTarget, event.currentTarget.parent.numChildren - 1); }
  9. I tried using this code what am i doing wrong function over(event:MouseEvent):void { activeTween = new TweenLite(event.currentTarget, .25, {rotationZ:0, scaleX:2, scaleY:2, x:-2.5, y:-1}); setChildIndex(event.currentTarget,numChildren - 1); }
  10. because that would be too easy...just kidding.. is there a way to bring whatever image i roll over to the front... www.keifersdesign-testing.com you will see what i am talking about.. thanks for your help'
  11. I am trying to get it where if you mouse over image1 then it come to the front. right now when you mouse over any of the images all of them come to the front and only shows the one photo on top. how do i get it to have whatever image i mouse over be the only the only that plays and reverses..do i need to go another route for this to happen.. import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; //*****====================================================***** image1.rotationZ = 10; image2.rotationZ = -10; image3.rotationZ = 20; image4.rotationZ = -20; //*****====================================================***** image1.buttonMode = true; image1.addEventListener(MouseEvent.ROLL_OVER, over); image1.addEventListener(MouseEvent.ROLL_OUT, out); //----------------------------------------------- image2.buttonMode = true; image2.addEventListener(MouseEvent.ROLL_OVER, over); image2.addEventListener(MouseEvent.ROLL_OUT, out); //----------------------------------------------- image3.buttonMode = true; image3.addEventListener(MouseEvent.ROLL_OVER, over); image3.addEventListener(MouseEvent.ROLL_OUT, out); //----------------------------------------------- image4.buttonMode = true; image4.addEventListener(MouseEvent.ROLL_OVER, over); image4.addEventListener(MouseEvent.ROLL_OUT, out); //----------------------------------------------- //*****====================================================***** var images:Array = [image1, image2, image3, image4]; var imagesOver:TimelineMax = new TimelineMax({paused:true}); imagesOver.appendMultiple(TweenMax.allTo(images.event.currentTarget, 1, {rotationZ:0, scaleX:2, scaleY:2, x:-2.5, y:-1})); //*****====================================================***** // BUTTON OVER FUNCTION function over(event:MouseEvent){//MAIN BUTTONS imagesOver.play(); } //------------------------------------------------ //BUTTON OUT FUNCTION function out(event:MouseEvent){//MAIN BUTTONS imagesOver.reverse(); } //*****====================================================*****
  12. i am getting this error now... 1061: Call to a possibly undefined method appendMultiple through a reference with static type com.greensock:TimelineMax. i am pretty sure i have most recent version
  13. I am trying to play and animation and reverse on roll over and roll out and i keep getting this error. never seen this one before. its not really telling "ME" anything. TypeError: Error #1123: Filter operator not supported on type com.greensock.TimelineMax. at adLeft_fla::braggingBoard_13/frame1() Code import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; //*****====================================================***** image1.rotationZ = 10; image2.rotationZ = -10; image3.rotationZ = 20; image4.rotationZ = -20; //*****====================================================***** image1.buttonMode = true; image1.addEventListener(MouseEvent.ROLL_OVER, over); image1.addEventListener(MouseEvent.ROLL_OVER, out); //----------------------------------------------- image2.buttonMode = true; image2.addEventListener(MouseEvent.ROLL_OVER, over); image2.addEventListener(MouseEvent.ROLL_OVER, out); //----------------------------------------------- image3.buttonMode = true; image3.addEventListener(MouseEvent.ROLL_OVER, over); image3.addEventListener(MouseEvent.ROLL_OVER, out); //----------------------------------------------- image4.buttonMode = true; image4.addEventListener(MouseEvent.ROLL_OVER, over); image4.addEventListener(MouseEvent.ROLL_OVER, out); //----------------------------------------------- //*****====================================================***** var images:Array = [image1, image2, image3, image4]; var imagesOver:TimelineMax = new TimelineMax({paused:true}); imagesOver.(TweenMax.to(images, 1, {rotationZ:0, scaleX:2, scaleY:2, x:-2.5, y:-1})); //*****====================================================***** // BUTTON OVER FUNCTION function over(event:MouseEvent){//MAIN BUTTONS imagesOver.play(); } //------------------------------------------------ //BUTTON OUT FUNCTION function out(event:MouseEvent){//MAIN BUTTONS imagesOver.reverse(); } //*****====================================================*****
  14. I am very new to this part but my clients wants this to happen... i have the following code. var bullets:TimelineMax = new TimelineMax(); bullets.append(TweenMax.to(bullet1, .25, {alpha:1})); bullets.append(TweenMax.to(bullet2, .25, {alpha:1})); bullets.append(TweenMax.to(bullet3, .25, {alpha:1})); bullets.append(TweenMax.to(bullet4, .25, {alpha:1})); what i need is when that bullet come in..i need a sound to happen at the same time. for each bullet...like boom boom boom boom. never used sound and cannot find anywhere how to add this using tweenmax
  15. so does that one too...sorry Jack..thanks for being patient
  16. told you i was having a bad day..just getting frustrated that i cant get a simple dynamic slide show to work
  17. forgot the fla sorry..long daytest.zip
  18. i have watched the video...i loved it..I am looking forward to more... i have attached the fla..not sure if that will help...since the other fla was pretty the same thing, i just took out the one movie clip that had the slideshow in it... the xml file is pretty much straight forward <?xml version="1.0" encoding="utf-8"?> I did notice that nothing at all was showing, like you said...I do not get any errors just nothing shows up...
  19. it still flies through the animation of fading in and out when testing on the web...but locally it shows nothing...I am not understanding that one... here is a link to the actual gallery so you could see what is happening http://www.thedepotgibsonmill.com click on rent space click more under the number "3" and you can see what i am talking about... i know your busy and I appreciate your help
  20. forgive me for my ignorance isnt there a event listener for the loader right here loader.addEventListener("complete", XMLLoaded); so is the for each statement the issue? function XMLLoaded(event:Event):void{ xml = new XML(event.target.data); for each(var img in xml.image){ var url:String = img.@url; var request:URLRequest = new URLRequest(url); var loader:Loader = new Loader(); loader.load(request); addChild(loader); } } is there another way to bring in images via xml...i didn't think it would be that hard... this code brings errors import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; //*****====================================================***** var picScroll:TimelineMax = new TimelineMax({paused:true}); picScroll.append(TweenMax.to(loader, 0, {x:-250,y:-125, alpha:0})); picScroll.append(TweenMax.to(loader, .5, {alpha:1})); picScroll.append(TweenMax.to(loader, 2, {alpha:0})); //*****====================================================***** function XMLLoaded(event:Event):void{ xml = new XML(event.target.data); for each(var img in xml.image){ var url:String = img.@url; var request:URLRequest = new URLRequest(url); var loader:Loader = new Loader(); loader.load(request); addChild(loader); } } //*****====================================================***** var xml:XML; var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("xml/gallery.xml"); loader.addEventListener("complete", XMLLoaded); loader.load(request);
  21. I am having an issue of getting images from an xml to scroll through...on my local machine it does nothing but show one pic and then nothing after that..but for some reason out on the web it scrolls through the pics but at lightning speed and when it gets to the end it stops..it acts like it does not see the timeline at all. here is my code... import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; //*****====================================================***** function XMLLoaded(event:Event):void{ xml = new XML(event.target.data); for each(var img in xml.image){ var url:String = img.@url; var request:URLRequest = new URLRequest(url); var loader:Loader = new Loader(); loader.load(request); addChild(loader); var picScroll:TimelineMax = new TimelineMax({repeat:2}); picScroll.append(TweenMax.to(loader, 0, {x:-250,y:-125, alpha:0})); picScroll.append(TweenMax.to(loader, .5, {alpha:1})); picScroll.append(TweenMax.to(loader, 2, {alpha:0})); } } //*****====================================================***** var xml:XML; var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("xml/gallery.xml"); loader.addEventListener("complete", XMLLoaded); loader.load(request);
  22. I have the following code and for some reason it does not repeat indefinitely or at all..just one cycle any thoughts on why var picScroll:TimelineMax = new TimelineMax({repeat:-1}); //----------------------------------------------- img1.alpha = 0; for(var i:int=1;i<23;i++){ var img:DisplayObject = this["img" + i]; img.alpha = 0; picScroll.append(TweenMax.to(img, 2, {alpha:1}),-.5); picScroll.append(TweenMax.to(img, 2, {alpha:0}),-.5); }
  23. can you apply this to an image and/or text import com.greensock.*; import com.greensock.easing.*; import flash.geom.Matrix; import flash.display.*; var colors:Object = {left:0xB8E46F, right:0x0066CC}; TweenMax.to(colors, 3, {hexColors:{left:0xff9900, right:0x663399}, onUpdate:drawGradient}); var mySprite:Sprite = new Sprite(); addChild(mySprite); drawGradient(); function drawGradient():void { var m:Matrix = new Matrix(); m.createGradientBox(220, 220, 0, 0, 0); mySprite.graphics.beginGradientFill(GradientType.LINEAR, [colors.left, colors.right], [1, 1], [0x00, 0xFF], m, SpreadMethod.PAD); mySprite.graphics.drawRect(0,0,220,220); }
×
×
  • Create New...