Jump to content
Search Community

as3gs

Members
  • Posts

    13
  • Joined

  • Last visited

as3gs's Achievements

0

Reputation

  1. Thanks. Your explanation makes good sense. What would the fromTo line look like? I'm having a bit of trouble figuring out how to call the next image and preserve the blur.
  2. Nobody knows? (the trouble I've seen...)
  3. Hey Gang, I am working on this project and am using TweenMax for blurring between the big images in the main marquee. Its at: http://bit.ly/mM1Kkv Though, when a user clicks the PREV/NEXT buttons fast the images start blurring as they should - but never finish. I know it's a factor of holding the next image from loading until the blur is done. But not sure where my code issue is. I'm waiting until the onComplete function to do the tweening. Any help is super big time appreciated. function onMarqCompleteStatus(e:Event):void { var imgArr = new Array(); var imgloaderInfo:LoaderInfo = e.target as LoaderInfo; imgArr.push(imgloaderInfo.content); marqLoading = false; TweenMax.from(Object(this).marqDisplay_mc, 1, {blurFilter:{blurX:20}}); TweenMax.to(Object(this).marqDisplay_mc.addChild(imgArr[0]), 2, {blurFilter:{blurX:0}}); //preLoader.stop(); }
  4. Thanks... is this supposed to blur between the current image and the next one loaded? I tried it, but it did not seem to do that. I just blurred the current image. And I assume that once I understand it, this would work to for text?
  5. Hi, is it possible to blur the existing text in a text field with new text replacing it? I am currently using two textfields and swapping. But this may not be needed? I would like to know how to do the same thing for images as well. When a new is loaded, blur out the existing and replace/blur in the new. Any code examples much appreciated.
  6. Hey all, I have a movie clip with a loaded image. I want to be able to use an addChild to change the image, but place a blur in between. Is this possible? Here is what I thought may work (but did not). Any help much much appreciated. function onCompleteStatus(e:Event):void { var imgArr = new Array(); var imgloaderInfo:LoaderInfo = e.target as LoaderInfo; imgArr.push(imgloaderInfo.content); TweenMax.to(Object(this).marqBox_mc.marqHolder_mc.addChild(imgArr[0]), 1, {blurFilter:{blurX:20}}); // PRE TWEENMAX LINE THAT WORKED: Object(this).marqBox_mc.marqHolder_mc.addChild(imgArr[0]); }
  7. Wow, your help has been awesome. Thanks again. This is the first set of external I have ever used and they are well done.
  8. Hi X10, also when I use your code, like mine, it appears that the first use works with the fade tween, but then after that it only swapped out words without the effects. Is that a known issue or is it just coded incorrectly when used repeatedly?
  9. X10, many thanks for your help. I am admittedly unfamiliar with how to swap out text or images. The example code provided earlier was greatly helpful. I need to have text change out when a user clicks a certain button. I was admittedly tired when trying that which I'm sure is the issue. So if I had 5 buttons, what would be the best way to swap out the text? And can I do that with images too? Many, many thanks to everyone from an excited newbie...
  10. Wow, thanks kindly. I have been playing with test variation of the code, trying to simulate swapping out just new text for old. This test AS code works on the first go-round, but throws a weird error on repeated use. Am I doing something stupid to make this happen? Also, could the same idea be used to change images using TweenLite/TweenMax? This is so helpful, thanks again for your expertise. CODE: import com.greensock.*; var test1:String = "THIS IS THE ORIGINAL TEXT"; var test2:String = "HEY THIS IS NEW TEXT!"; message_txt.text = test1; function show1(evt:MouseEvent) { message_txt.alpha=0; TweenMax.to(message_txt, 2, {alpha:1, onComplete:show1}); message_txt.text = test1; } function show2(evt:MouseEvent) { message_txt.alpha=0; TweenMax.to(message_txt, 2, {alpha:1, onComplete:show2}); message_txt.text = test2; } Object(this).button_mc.addEventListener(MouseEvent.MOUSE_OVER,show2); Object(this).button_mc.addEventListener(MouseEvent.MOUSE_OUT,show1); and the ERROR: ArgumentError: Error #1063: Argument count mismatch on test_fla::MainTimeline/show2(). Expected 1, got 0. at Function/http://adobe.com/AS3/2006/builtin::apply() at com.greensock.core::TweenCore/complete() at com.greensock::TweenMax/complete() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll()
  11. Thanks much. if i had text in the textbox, and wanted to update that with new text, would you have an example of how to do this? I so appreciate the guidance.
  12. Hello, I know it's possible to tween a textbox inside a movie clip from one MC to another, but if I had just one text box, but wanted the text to blur each time it was updated, is that possible?
  13. Hello Friends, I have 3 movie clips in the same position that I want to blur and fade when I select a different button. How hard is it to say blur and fade out to one movie clip, then fade in and unblur to the next in line? I am new and any help is greatly appreciated.
×
×
  • Create New...