Jump to content
Search Community

Jerome

Members
  • Posts

    7
  • Joined

  • Last visited

Jerome's Achievements

0

Reputation

  1. I fixed the problem. Word to the wise double check your xml list for case sensitivity and always use absolute URLs. Just wasted 4 hours of my life.
  2. I am not sure how to fix. I tested everything and it worked fine on my computer but when I place swf file on server the tweens work but freeze and different times. Is there an issue with my browser? I have tried this on firefox (PC and MAC), IE, and Safari (MAC).
  3. Ok so basically I can change from: function tweenFinished(e:TweenEvent):void { var my_loader:Loader = Loader (e.target.obj); my_loader.unload(); full_mc.removeChild(my_loader); MovieClip(root).removeChild(full_mc); full_mc = null; container_mc.addEventListener(MouseEvent.CLICK, callFull); container_mc.buttonMode = true; container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver); container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut); } To function tweenFinished():void { MovieClip(root).removeChild(full_mc); full_mc = null; container_mc.addEventListener(MouseEvent.CLICK, callFull); container_mc.buttonMode = true; container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver); container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut); }
  4. ok I am really new scripting. I am a straight up designer, lol. But the problem I am getting now is this: ArgumentError: Error #1063: Argument count mismatch on sample_fla::MainTimeline/tweenFinished(). Expected 1, got 0. at Function/http://adobe.com/AS3/2006/builtin::apply() at com.greensock.core::TweenCore/complete() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() The original tweenFinished function accepted and event parameter: function tweenFinished(e:TweenEvent):void .... So I am not even sure how to edit this right now.
  5. Ok, so upon creating the sample fla to send I got more errors as if it found Tweenlite were it was supposed to be. But anyways the error i am getting is a result from me using TweenLite instead of the Tween class. I believe I successfully impleted this expect for this error. I originally had this: function removeFull(e:MouseEvent):void { var my_loader:Loader = Loader (e.currentTarget); full_tween = new Tween(my_loader, "alpha", Strong.easeOut, 1,0,0.5, true); full_tween.addEventListener(TweenEvent.MOTION_FINISH, tweenFinished); container_mc_tween = new Tween(container_mc, "alpha", Strong.easeOut, 0.5,1,0.5, true); } function tweenFinished(e:TweenEvent):void { var my_loader:Loader = Loader (e.target.obj); my_loader.unload(); full_mc.removeChild(my_loader); MovieClip(root).removeChild(full_mc); full_mc = null; container_mc.addEventListener(MouseEvent.CLICK, callFull); container_mc.buttonMode = true; container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver); container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut); var my_tween:Tween = Tween(e.target); my_tween.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinished); } Then I changed it to this: function removeFull(e:MouseEvent):void { var my_loader:Loader = Loader (e.currentTarget); full_tween = new TweenLite(my_loader, 1, {alpha:0, ease:Strong.easeOut, onComplete:tweenFinished}); container_mc_tween = new TweenLite(container_mc_tween, 1, {alpha:1, ease:Strong.easeOut}); } function tweenFinished(e:TweenEvent):void { var my_loader:Loader = Loader (e.target.obj); my_loader.unload(); full_mc.removeChild(my_loader); MovieClip(root).removeChild(full_mc); full_mc = null; container_mc.addEventListener(MouseEvent.CLICK, callFull); container_mc.buttonMode = true; container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver); container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut); var my_tween:TweenLite = TweenLite(e.target); my_tween.removeEventListener(my_tween, {onComplete:tweenFinished}); } I am getting this error: 1061: Call to a possibly undefined method removeEventListener through a reference with static type com.greensock:TweenLite. for: my_tween.removeEventListener(my_tween, {onComplete:tweenFinished});
  6. So I download the as3 folder and placed the com folder in the same folder as my file. I am using the following to import: import com.greensock.*; import com.greensock.plugins.*; import com.greensock.events.*; import com.greensock.easing.*; When I try to test I am getting this error: 1046: Type was not found or was not a compile-time constant: TweenLite. For these Lines: var container_mc_tween:TweenLite; var full_tween:TweenLite; var my_tween:TweenLite = TweenLite(e.target);
×
×
  • Create New...