Jump to content
Search Community

TheMightyMac

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by TheMightyMac

  1. Awesome! Works like a charm. Thanks Carl!!! I'm guessing that line that was messing it up wasn't working because the of way I structured my button's mouse over, is that correct? One more question, on my AS layer in the main timeline I'll put the mouseclick functions for my main buttons, should I put the mouseclick functions for the drop down buttons there or inside the drop down mc's AS layer?
  2. Hello all, I am having a very difficult time with my drop down menu and keep getting the error "TypeError: Error #2007: Parameter child must be non-null.at flash.display::DisplayObjectContainer/setChildIndex() at navBarNew_fla::MainTimeline/myWorkOver()" I only have one button that will have a drop down menu and when I roll over it I get the error. I've checked everything many times and can't figure it out. I'll attach the FLA file and if anyone can take a look it will be greatly appreciated. Oh, and I followed a tutorial here to create it: http://www.tutvid.com/tutorials/flash/t ... nMenus.php I've created a drop down menu like this when following the tutorial exactly and had no problems but for this menu I added tweens using GreenSock and the buttons have nested MCs etc. Thanks in advance.
  3. Ben, looking back to when I created the original file I didn't import or activate any plugins, I believe it is packaged with the TweenMax. Try removing those lines of code. Carl, I added the color transform coded like you mentioned and now everything works great! The reason why embedded the color transform inside the button is it kept changing everything in the mc to that color. How is it that it's not doing that now with your code? Thanks again for all your help!
  4. Hey Carl I can't open the fla you attached. I'm running Flash CS3, I wonder if that's the problem...
  5. Awesome, thanks Carl! I'll take a look and try an example on my own.
  6. Hey, thought it would be a good idea to just post the fla file so you can see exactly what's happening.
  7. Hi, I wanted to see if anyone has a solution for this because I can't seem to find it anywhere...I created a button that when you roll over it moves tweens up and when you roll out it returns to it's original position (it also has a color transform on the rollover which is working fine). The problem is when you roll in/out at the bottom of the button it jumps up and down and doesn't stop. I know why it's doing it but I can't seem to find a way to stop it. I also want to add a drop down menu to this button but with this problem I don't see how I can. Thanks in advance for any suggestions.
  8. Thanks, that worked as you described to remove the errors I was getting but now the button doesn't return to the original color state when moused out. Is there a way I can have it tween back to it's original state?
  9. Thank you, that helps a lot. At least I can understand what's happening now. I think I'll try the remove event listeners option and see if I can get it to work. I assume that bit of code goes at the beginning of frame 5's action script layer?
  10. Thank you for taking the time in looking into this for me, it's greatly appreciated. Attached is the FLA, please don't laugh at the simplicity of how it looks. I was just testing out an idea to create a slide show gallery for a my website. The strange thing is it functions properly but the output window pops up with the error code. Also, how can I stop the word "next" from being tinted since it's inside the mc being tinted. Thanks again! -Mike-
  11. That's the strange thing, if I remove the "Mouse_Over" and the "Mouse_Out" functions from the script, the "next1_mc" button does exactly what it supposed to when clicked, it jumps to the frame labeled "image 2" and I get no errors with it or the previous1_mc. But when I click "next1_mc" when the "Mouse_Over" and the "Mouse_Out" functions are in the script I get the error code. Also to note, the actual tint tween for "next1_mc" works fine. I'm stumped, I can't figure out why something so simple shouldn't work -Mike-
  12. I'm having some trouble with a slideshow I've created. Basically an image tweens in and then when you click "next1_mc" or "previous1_mc" it goes to another frame label and another image tweens in and so on. Everything worked fine with it until I added the "Mouse_Over" and "Mouse_Out" functions to my "next1_mc" that has the button change tint and now I get this error code: Error: Cannot tween a null object. at com.greensock::TweenLite$iinit() at com.greensock::TweenLite$/to() at imagegallerytest_fla::MainTimeline/out1() TypeError: Error #1006: value is not a function. at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/com.greensock:TweenLite::updateAll() TypeError: Error #1006: value is not a function. There is more to this error but I just copied a bit of it since it basically repeats itself. Below is my code I used. Any help to fix this would be greatly appreciated. Thanks! -Mike- import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([TintPlugin]); TweenLite.from(image1Group_mc, .5, {x:782, ease:Quint.easeInOut, delay:.1}); next1_mc.addEventListener(MouseEvent.CLICK, next1); function next1 (event:MouseEvent): void { MovieClip(root).gotoAndStop("image 2"); } next1_mc.addEventListener(MouseEvent.MOUSE_OVER, over1); function over1 (event:MouseEvent): void { TweenLite.to(next1_mc, .3, {tint:0x336600}); } next1_mc.addEventListener(MouseEvent.MOUSE_OUT, out1); function out1 (event:MouseEvent): void { TweenLite.to(next1_mc, .3, {tint:0xCC0000}); } previous1_mc.addEventListener(MouseEvent.CLICK, previous1); function previous1 (event:MouseEvent): void { MovieClip(root).gotoAndStop("image 3"); } stop(); Thanks again
  13. I'm having some trouble with using the "onComplete" function. I'm trying to make an mc slide in to the stage after another mc slides off the stage in a sort of slideshow manner and it works fine until I add a second "onComplete" function on another frame. Here is the sample code on the frame after the button is pressed: TweenLite.to(guagGroup2_mc, .6, {x:-449, ease:Cubic.easeOut}); TweenLite.to(nsGroup_mc, .6, {x:490.15, ease:Cubic.easeOut, delay:.5, onComplete:nsComplete}); function nsComplete() { MovieClip(root).gotoAndStop("stopNs"); } stop(); The first instance I use this works fine until I add this code to another frame with different instance names there. Here is the error code I get (it repeats so I just pasted a piece of the error): Error: Cannot tween a null object. at com.greensock::TweenLite$iinit() at com.greensock::TweenLite$/to() at webNew_fla::MainTimeline/onOut2() TypeError: Error #1006: value is not a function. at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/com.greensock:TweenLite::updateAll() Has anyone had trouble like this? Any help will be greatly appreciated. -Mike-
  14. Worked perfectly, thanks Jamie.
  15. Thanks for the reply Jamie, I will try the "arrow_mc.alpha = 0;" I thought I tried that, but actually used "arrow_mc.visible = false;" and I obviously failed with that. Thanks again! Mike
  16. Hello! I am having trouble with the starting opacity of an mc. I'm sure it's an easy fix I am overlooking but I don't know what I'm doing wrong. Basically I want to have a button that when you mouse over it an arrow fades in from zero opacity to full opacity and at the same time moves towards the button. My problem is when I first play the movie the arrow is visible on the stage when it should start out invisible. Here's the code I'm using: stop(); import com.greensock.*; import com.greensock.easing.*; home_mc.buttonMode = true; home_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver); function onOver(e:MouseEvent):void { TweenLite.to(home_mc, .25, {scaleX:1.25, scaleY:1.25, ease:Back.easeOut}); TweenLite.from(arrow_mc, 1.25, {alpha:0}); TweenLite.to(arrow_mc, .5, {x:140, overwrite: 0}); } Any help will be greatly appreciated Thanks, Mike
  17. Thanks Carl, I'll take a look into timelineMax and read up more into your documentation. I appreciate you helping out. -TheMightyMac-
  18. Sorry Carl, I was just trying to boil my question down to a simple form which was probably just more confusing. Maybe if I tell you exactly what I'm trying to do it would be more useful. I have a website that has some intro animation and then stops on frame 1 (all done with actionscript). I then want to have some images transition from one to the next after that intro animation is done (say with an initial delay of 5 secs so that the transitions start after the initial intro animation). Here is the code I will use inside the image transition mc (there will be 10 of these image transitions but I condensed it down to 2 to keep this message smaller): import com.greensock.*; TweenLite.from(bicAdL_mc, 1.5, {delay:5, alpha:0}); TweenLite.to(bicAdL_mc, 1.5, {delay:6, alpha:0}); TweenLite.from(closysL_mc, 155, {delay:6.5, alpha:0}); TweenLite.to(closysL_mc, 1.5, {delay:7.5, alpha:0}); My goal was to have the images fade in after 5 secs and continue to loop when the maintimeline stops. Here's the curveball, after the first cycle of image transitions I wanted to have the images fade from one to the other without the initial 5 sec delay. I know I can easily do this with traditional motion tweening and a "goto" statement in the mc code but the Greensock tweening is much smoother and cleaner. Again, sorry that I was confusing and I appreciate you taking the time to look at my question. -TheMightyMac-
  19. Thanks again Carl for looking into this for me. I must be doing something majorly wrong but I can figure it out. I've attached my file. -TheMightyMac-
  20. Ok, now I'm stumped...I made a simple animation with this code on frame 1: import com.greensock.*; import com.greensock.easing.*; TweenLite.from(circle_mc, 1, {x:-100, y:199, ease:Circ.easeInOut}); It's just a movieclip of a circle that moves in from the left side of the stage and stops. I must have some setting not checked or something because it should just keep looping without a stop(); command. I'm sure this is a very simple fix that I'm overlooking somewhere but for the life of me I can find it. Anyone have any ideas? Thanks in advance, -TheMightyMac-
  21. Thanks for taking a look Carl. I'll continue to trouble shoot it and see if I can clear up the problem. I was hoping I was just overlooking something obvious and it was an easy fix I was overlooking. -TheMightyMac-
  22. Hi all, I have a problem I can't seem to figure out the answer for. I'm designing a website that opens up with some intro animation and then stops. All of the animation is done with AS3 (GreenSock) and contained on frame 1, as well as the stop(); command. I now want to add a movie clip on the same frame that will have 10 images that will transition from one image to the next and then continually loop while the main timeline is stopped. Everything works perfectly except that once that movie clip with the image transitions ends it doesn't loop. I don't have a stop command withing that movie clip, just on the main timeline. I am going nuts trying to figure it out because I thought a movie clip should naturally loop even if it is on the main timeline that is stopped. Any help would greatly be appreciated. -TheMightyMac-
×
×
  • Create New...