Jump to content
GreenSock

TheMightyMac

Members
  • Posts

    22
  • Joined

  • Last visited

Reputation

0 Newbie
  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
×