Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

timaging

Members
  • Posts

    250
  • Joined

  • Last visited

Everything posted by timaging

  1. ok, oh my god I think it's actually working. THANK YOU so so much! Dave
  2. ok, so check this out. I think maybe I'm close? Here is what I have up top: import flash.media.Sound; import flash.media.SoundChannel; var sound:SampleSound = new SampleSound(); var soundChannel:SoundChannel = new SoundChannel(); //var soundChannel:SoundChannel = sound.play(); var mySound:Sound = new SampleSound(); mySound.play(); var lastPos:Number = 0; this is playing, but not stopping. I have this for my button: //stopButton begin =========================================================================================================; stopShow.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler01); function fl_MouseOverHandler01(event:MouseEvent):void { TweenMax.to(stopShow, 1, {alpha:0}); TweenMax.to(stopShow, 1, {alpha:1}); TweenMax.to(stopShow, 1, {tint:0xEFB100}); } stopShow.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler01); function fl_MouseOutHandler01(event:MouseEvent):void { TweenMax.to(stopShow, 1, {alpha:1}); TweenMax.to(stopShow, 1, {alpha:0}); TweenMax.to(stopShow, 1, {tint:0x4E8ABE}); } stopShow.addEventListener(MouseEvent.CLICK, pauseSound) function pauseSound(e:MouseEvent):void{ trace(soundChannel.position); lastPos = soundChannel.position; soundChannel.stop(); TweenMax.pauseAll(); } then, I just need it to resume playing. THANKS!!!
  3. Hi Carl, Thank You for posting this, but that file needs to also play when the movie starts I just tried adding this, but it broke: var soundChannel:SoundChannel = sound.play(); Dave
  4. yep. I checked out this tutorial earlier, but it's the same thing where you have to call an external file. They explain up to a point then go to the external file. let me see if I can get your stuff working though...thanks!! Dave
  5. sorry about that. I did go off on a bit of a tangent. what I need to be able to do is have a button that pauses my sound and one that resumes it. Ideally, I would want to call the sound that I have in my timeline. It's certainly not necessary, but it just seemed easier in my head to stop and start that way... you may however disagree. this would be an event sound because streaming doesn't stream if you only animate using code and one frame (or at least that's what I'm experiencing) so, mp3Loader is out. super duper easy to do with as2, but then I have to animate using Flash's timeline tools and I have become quite jaded using Greensock stuff I did sort of try a few things and it's in this new thread that I started... may be easier? viewtopic.php?f=1&t=6133 and now I'm wondering if there's a way to put it in some timelineMax setup? I just can't seem to get anything working internally... everything seems to need to call an external file, and the client's server won't allow it. thanks!! Dave
  6. Hi, I downloaded the source files and that stuff is WAY out of my league. Is there anything that shows just how to load an external mp3 file and the swf that I'm publishing? I have some code that worked fine for a while but is now broken on the file I'm working on. I have no idea how to troubleshoot it, but I think maybe part of it is because I'm calling an external mp3 file? import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; stop(); var loader:SelfLoader = new SelfLoader(this, {onProgress:progressHandler, onComplete:completeHandler}); function progressHandler(event:LoaderEvent):void { progressBar.scaleX = event.target.progress; myTextField.text = int( loader.progress * 100 ) + "%"; } function completeHandler(event:LoaderEvent):void { this.gotoAndPlay("3") } thanks- Dave
  7. Hi, I see that there is a sample of how to toggle sound on/off from one button, but what if I would like to have one button for pause and one for resume? I've got this now, but it's not working: function fl_ClickToGoToWebPage01(event:MouseEvent):void { soundPaused:true // TweenMax.to(channel, 0, {pause:true}); // SoundMixer.stopAll(); TweenMax.pauseAll(); } then, if this works I will upload to the client server and see if I can get it to call an external file... seems as though there is no answer to calling a sound from the library which seems odd to me, but I've literally been looking now for 6 hours for a solution and nothing has come up. thanks! Dave
  8. ok, so I just tried this as well at the top: var sound:MP3Loader = new MP3Loader(this, {name:"SoH", autoPlay:true, repeat:0}); //begin loading sound.load(); then added this to the button, but I got a bunch of errors: function fl_ClickToGoToWebPage01(event:MouseEvent):void { TweenMax.pauseSound(this); //TweenMax.to(this, 0, {soundTransform:{volume:0, pan:1}}); // SoundMixer.stopAll(); TweenMax.pauseAll(); }
  9. ok, so I did try this just to see if it would affect the sound and nothing happened. Here's what I have in the head: and here's what I have in my button to click: now, I don't know if this will pause/resume, but this also doesn't seem to be doing anything to the sound. I was assuming by the numbers that it would fade down? does the fact that it's an event sound make a difference? thanks- Dave
  10. and a touch more on that issue. I have this right now that works perfectly to pause everything" function fl_ClickToGoToWebPage01(event:MouseEvent):void { SoundMixer.stopAll(); TweenMax.pauseAll(); } BUT I can't see to get the sound to resume from where I stopped. What I was hoping to do was to get the mp3 loader to do that?
  11. Hi Carl, yeah, that's my old thread actually, but now I'm trying to pause and resume? I'll see if I can use this somehow to call it, but right now I just have this starting my sound from the library: var mySound:Sound = new SoH(); mySound.play(); then, I need to pause and resume that, OR ideally get mp3Loader to call my file in my library, because that appears to have the pause and resume functionality that I'm looking for. thanks, Dave
  12. ok, so I have this internal sound in my timeline. I need to be able to stop it along with all my movie clips, just as you would see in a typically timeline based animation. I'm trying to use this code for the sound: import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; import com.greensock.OverwriteManager; TweenPlugin.activate([MotionBlurPlugin, TintPlugin, BlurFilterPlugin, EndArrayPlugin, ColorMatrixFilterPlugin, SoundTransformPlugin]); import flash.events.MouseEvent; import flash.ui.Mouse; stopShow.buttonMode = true; stopShow.useHandCursor = true; var mySound:Sound = new SoH(); mySound.play(); var navClips:Array = [bkgrd, lmLogo, stopShow, playShow, rewindShow, login, mlcHeader, sohHeader]; TweenMax.allTo(navClips, 0, {alpha:0}); TweenMax.to(bkgrd, 1, {alpha:1}); TweenMax.to(playShow, 1, {alpha:1}); TweenMax.to(stopShow, 1, {alpha:1, delay:.25}); TweenMax.to(rewindShow, 1, {alpha:1, delay:.5}); TweenMax.to(lmLogo, 1, {alpha:1, delay:2}); TweenMax.to(mlcHeader, 1, {alpha:1, delay:2.25}); TweenMax.to(sohHeader, 1, {alpha:1, delay:2.5}); //stopButton begin =========================================================================================================; stopShow.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler01); function fl_MouseOverHandler01(event:MouseEvent):void { TweenMax.to(stopShow, 1, {alpha:0}); TweenMax.to(stopShow, 1, {alpha:1}); TweenMax.to(stopShow, 1, {tint:0xEFB100}); } stopShow.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler01); function fl_MouseOutHandler01(event:MouseEvent):void { TweenMax.to(stopShow, 1, {alpha:1}); TweenMax.to(stopShow, 1, {alpha:0}); TweenMax.to(stopShow, 1, {tint:0x4E8ABE}); } stopShow.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage01); function fl_ClickToGoToWebPage01(event:MouseEvent):void { SoundMixer.stopAll(); TweenMax.pauseAll(); } //stopButton end =========================================================================================================; //stopButton begin =========================================================================================================; playShow.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler02); function fl_MouseOverHandler02(event:MouseEvent):void { TweenMax.to(playShow, 1, {alpha:0}); TweenMax.to(playShow, 1, {alpha:1}); TweenMax.to(playShow, 1, {tint:0xEFB100}); } playShow.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler02); function fl_MouseOutHandler02(event:MouseEvent):void { TweenMax.to(playShow, 1, {alpha:1}); TweenMax.to(playShow, 1, {alpha:0}); TweenMax.to(playShow, 1, {tint:0x4E8ABE}); } playShow.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage02); function fl_ClickToGoToWebPage02(event:MouseEvent):void { mySound.resume(); TweenMax.resumeAll(); } //stopButton end =========================================================================================================; first question is that it's asking for a movie clip, but it's not a movie clip-it's an internal event sound. I tried naming it under AS linkage, but it's still not recognized. the TweenMax is definitely stopping the timeline which is perfect... I can't however seem to get the sound to stop and start because it's internal? thanks, Dave
  13. Hi, Check this one out. I have my com folder in the same directory as this file, but I'm getting errors saying it's not there... I did not supply the com folder, but it's the AS3 version from bonus-all-v11 Dave Followup... main folder had / in it. Apparently this causes the relative path of com to not work. I don't know why, but it seems strange.
  14. oh man... totally missed the F in glowfilter... THANKS Dave
  15. Hi, I'm trying to add glow to a movie but it's not showing up. I'm fairly certain that this is correct: import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; import com.greensock.OverwriteManager; TweenPlugin.activate([MotionBlurPlugin, GlowFilterPlugin]); OverwriteManager.init(OverwriteManager.CONCURRENT); var allImages:Array = [bgrd, logo, text01, text02, bulletText01, bulletText02, bulletText03, bulletText04, bulletText05, bullet01, bullet02, bullet03, bullet04, bullet05, thankYou01, thankYou02]; TweenMax.allTo(allImages, 0, {autoAlpha:0}); TweenMax.to(bulletText01, 2, {autoAlpha:1, delay:10}); TweenMax.to(bullet01, .5, {autoAlpha:1, delay:10}); TweenMax.to(bullet01, 1, {glowfilter:{color:0x66ffff, autoAlpha:1, blurX:10, blurY:10}, delay:11}); stop(); I've also attached the file, but you can see that the movie I have isn't glowing. Is this due to the size? thanks, Dave
  16. perfect. That last url did the trick. I was looking under sound or something like that... thanks!! Dave
  17. now I'm getting 2 errors: 1046: Type was not found or was not a compile-time constant: MP3Loader. 1180: Call to a possibly undefined method MP3Loader. and here's what I have up top:
  18. hmmm... I was just needing this information too... I put this script in my scene and get an error: 1046: Type was not found or was not a compile-time constant: LoaderEvent.
  19. ok, I see how now: arrowAction01.stop(); //your MovieClip TweenMax.delayedCall(7, arrowAction01.play); all set-thanks!! Dave
  20. Hi, I'm trying to get a movie clip to start at 5 seconds. I've tried both TweenMax.to and using delay, as well as tried TweenMax.delayedCall and neither seem to be starting my movie when I want. AND when I say movie, I mean a movie that has timeline tweens in it: TweenMax.delayedCall(arrowAction01, 0, {delay:5}); I checked the docs and that's asking me to add in a function, but I'm really trying to do something much simpler than that. I also just tried setting a delay, but the movie still started on that frame even though I had the delay set. any ideas would be greatly appreciated. THANKS!! Dave
  21. ok, so I've found a way to make this work. I just included the glow information outside of that variable, using TweenMax.to... in addition to that, for some reason white really isn't showing up at all so I had to try a different approach with color matrix filters. Dave
  22. Hi Carl, The issue is that I need it to pulse, or go on and off and not just set on alpha:1 in the glow, which is why that's there. I tried adding delays, so that the first "actual" alpha fade for the button would come to full opacity, then the glow would pulse on and off, but nothing seemed to work? thanks!! Dave
  23. Hi, I'm not sure if I'm doing something incorrectly here, but it appears that it should be correct. I've imported my glow filter and am trying to apply a glow at the end of this sequence like so: var timelineNav07in:TimelineLite = new TimelineLite({repeat:0}); timelineNav07in.appendMultiple([new TweenLite(hdr_nav07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(hdr2_nav07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(button07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07off, 1, {tint:0xffffff, ease:Quad.easeInOut}), new TweenLite(nav07_b07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b01, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b02, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b03, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b04, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b05, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b06, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(downloadButton, 1, {autoAlpha:1, ease:Quad.easeInOut}), new TweenLite(downloadButton, 1, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30}}), new TweenLite(downloadButton, 1, {glowFilter:{color:0xffffff, alpha:0, blurX:30, blurY:30}})], 0, TweenAlign.START, 0.1); the item labeled "downloadButton" is the one in question. If I try to apply glow, it simply never goes to the alpha value of 1, BUT if I remove the glow information, it works fine: var timelineNav07in:TimelineLite = new TimelineLite({repeat:0}); timelineNav07in.appendMultiple([new TweenLite(hdr_nav07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(hdr2_nav07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(button07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07off, 1, {tint:0xffffff, ease:Quad.easeInOut}), new TweenLite(nav07_b07, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b01, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b02, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b03, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b04, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b05, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(nav07_b06, 1, {alpha:1, ease:Quad.easeInOut}), new TweenLite(downloadButton, 1, {autoAlpha:1, ease:Quad.easeInOut})], 0, TweenAlign.START, 0.1); so, am I missing something "glowingly" obvious (yeah, couldn't help myself thanks!! DAve
  24. I do feel better, and more than anything, I appreciate both of you guys helping out. Dave
  25. yes, long long long weekend of troubleshooting. I think all the renaming did the trick though. It's interesting, but it appears that even though I wasn't calling a button at the time, that was causing this entire timing problem.
×