[Golist] Problem with repeater object on a HydroTween item

Moses Gunesch moses at goasap.org
Sun Sep 21 15:28:17 PDT 2008


Alright folks... give this update a whirl and if you like it I'll  
commit the download version.

m

On Sep 21, 2008, at 6:18 PM, Moses Gunesch wrote:

> OK I found the issue.
>
> Committing...
>
> m
>
>
> On Sep 21, 2008, at 2:50 PM, Moses Gunesch wrote:
>
>> I think the fixes are on my other box, I'll check it out today.  
>> Stuart I did post a small fix but it's possible that it's not  
>> right, it was from some files that I was sending back and forth  
>> with Rob Boyd I think, so it might not have been a final fix. I'll  
>> look into it now.
>>
>> m
>>
>> On Sep 20, 2008, at 10:52 AM, donovan at hydrotik.com wrote:
>>
>>> Still seeing the same thing on my end.
>>>
>>> I’m pretty sure Moses fixed this.  Might be a matter of him  
>>> finding the files and posting the updates.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 9/20/08 7:21 AM, "Stuart McNeill" <stuart.mcneill at itworkforce.co.uk 
>>> > wrote:
>>>
>>>> Just for the record, I am still getting the same fault using a  
>>>> repeater instance i.e. my testBox still jumps to the start  
>>>> position instead of a nice smooth animation.
>>>>
>>>> I updated my goasap files from the SVN, I am also just using a  
>>>> simple LinearGo item instead of using Hydrotween (see function  
>>>> below). Am I doing something wrong?
>>>>
>>>> Any input greatly appreciated :-)
>>>>
>>>> Stuart
>>>>
>>>>
>>>>
>>>>         //    Function: moves box
>>>>
>>>>         private function moveBox():void
>>>>         {
>>>>
>>>>
>>>>             var startX:Number = testBox.x;
>>>>
>>>>             var changeX:Number = 300;
>>>>
>>>>
>>>>             function doAnimation(event:GoEvent):void
>>>>             {
>>>>                     testBox.x = startX + changeX * (event.target  
>>>> as LinearGo).position;
>>>>             }
>>>>
>>>>             var repeater:LinearGoRepeater = new  
>>>> LinearGoRepeater(Repeater.INFINITE, true);
>>>>
>>>>             var t:LinearGo = new LinearGo(.5, 2,  
>>>> Exponential.easeOut, null, repeater);
>>>>
>>>>
>>>>             t.addEventListener(GoEvent.UPDATE, doAnimation);
>>>>
>>>>             t.start();
>>>>
>>>>
>>>>         }
>>>>
>>>>
>>>>
>>>>
>>>> On 11/9/08 20:00, golist-request at goasap.org wrote:
>>>>>
>>>>> Send GoList mailing list submissions to
>>>>>  golist at goasap.org
>>>>>
>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>>  http://goasap.org/mailman/listinfo/golist_goasap.org
>>>>> or, via email, send a message with subject or body 'help' to
>>>>>  golist-request at goasap.org
>>>>>
>>>>> You can reach the person managing the list at
>>>>>  golist-owner at goasap.org
>>>>>
>>>>> When replying, please edit your Subject line so it is more  
>>>>> specific
>>>>> than "Re: Contents of GoList digest..."
>>>>>
>>>>>
>>>>> Today's Topics:
>>>>>
>>>>>    1. Problem with repeater object on a HydroTween item (Stuart  
>>>>> McNeill)
>>>>>    2. Problem with repeater object on a HydroTween item (Stuart  
>>>>> McNeill)
>>>>>    3. Re: Problem with repeater object on a HydroTween item
>>>>>       (Moses Gunesch)
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>>
>>>>> Message: 1
>>>>> Date: Thu, 11 Sep 2008 13:45:07 +0100
>>>>> From: Stuart McNeill <stuart.mcneill at itworkforce.co.uk> <mailto:stuart.mcneill at itworkforce.co.uk 
>>>>> >
>>>>> Subject: [Golist] Problem with repeater object on a HydroTween  
>>>>> item
>>>>> To: golist at goasap.org
>>>>> Message-ID: <48C912D3.7050903 at itworkforce.co.uk> <mailto:48C912D3.7050903 at itworkforce.co.uk 
>>>>> >
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>> In response to the last post (cannot reply to it as did not  
>>>>> receive it
>>>>> for some reason), I am grappling with the repeater object at the  
>>>>> mo as
>>>>> well. I think your code may not be working as you are providing  
>>>>> too few
>>>>> arguments. This code may work;
>>>>>
>>>>> HydroTween.go(fusebox, {width:400}, 2, 0, Quadratic.easeOut,  
>>>>> null, null,
>>>>> null, null, null, null, {cycles:2, reverse:true});
>>>>>
>>>>> I am animating a simple box shape back and forth along the x  
>>>>> axis (see
>>>>> my document class below), but on the cycle 2 it jumps back to 0  
>>>>> before
>>>>> animating. Does anyone know why this is or how to correct it?
>>>>>
>>>>> My objective is to animate it in a figure of 8 path - any  
>>>>> suggestions on
>>>>> how to achieve this would be most welcome.
>>>>>
>>>>> Much obliged : )
>>>>>
>>>>> Stuart
>>>>>
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080911/0ab7cc93/attachment-0001.html
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 2
>>>>> Date: Thu, 11 Sep 2008 13:51:38 +0100
>>>>> From: Stuart McNeill <stuart.mcneill at itworkforce.co.uk> <mailto:stuart.mcneill at itworkforce.co.uk 
>>>>> >
>>>>> Subject: [Golist] Problem with repeater object on a HydroTween  
>>>>> item
>>>>> To: golist at goasap.org
>>>>> Message-ID: <48C9145A.4020008 at itworkforce.co.uk> <mailto:48C9145A.4020008 at itworkforce.co.uk 
>>>>> >
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>> Whoops! Forget to include my code;
>>>>>
>>>>> I am animating a simple box shape back and forth along the x  
>>>>> axis (see
>>>>> my document class below), but on the cycle 2 it jumps back to 0  
>>>>> before
>>>>> animating. Does anyone know why this is or how to correct it?
>>>>>
>>>>> My objective is to animate it in a figure of 8 path - any  
>>>>> suggestions on
>>>>> how to achieve this would be most welcome.
>>>>>
>>>>>
>>>>> Document class;
>>>>>
>>>>>
>>>>> package {
>>>>>
>>>>>     import org.goasap.GoEngine;
>>>>>     import org.goasap.managers.*;
>>>>>     import org.goasap.PlayableBase;
>>>>>     import org.goasap.items.GoItem;
>>>>>     import org.goasap.events.GoEvent;
>>>>>     import com.hydrotik.go.HydroTween;
>>>>>     import fl.motion.easing.*;
>>>>>     import flash.display.MovieClip;
>>>>>
>>>>>     import com.hydrotik.go.HydroSequence;
>>>>>     import org.goasap.utils.customadvance.OnDurationComplete;
>>>>>
>>>>>
>>>>>     public class Harmonic_motion extends MovieClip {
>>>>>
>>>>>         private var testBox:Box;
>>>>>
>>>>>
>>>>>         public function Harmonic_motion():void
>>>>>         {
>>>>>
>>>>>             createBox();
>>>>>
>>>>>             moveBox();
>>>>>
>>>>>
>>>>>         }
>>>>>
>>>>>
>>>>>         private function createBox():void
>>>>>         {
>>>>>
>>>>>             testBox = new Box();
>>>>>             testBox.x = 30;
>>>>>             testBox.y = 100;
>>>>>
>>>>>             addChild(testBox);
>>>>>
>>>>>         }
>>>>>
>>>>>
>>>>>         //    Function: moves box
>>>>>
>>>>>         private function moveBox():void
>>>>>         {
>>>>>
>>>>>
>>>>>             /*
>>>>>
>>>>>             var seq1:HydroSequence = new HydroSequence(
>>>>>
>>>>>                 {target:testBox, scaleX:3, scaleY:3, duration:1.6,
>>>>> repeater:new LinearGoRepeater(Repeater.INFINITE, true)}
>>>>>
>>>>>                 //{target:testBox, scaleY:1.6, duration:4 }
>>>>>
>>>>>             );
>>>>>
>>>>>             seq1.start();
>>>>>
>>>>>             */
>>>>>
>>>>>
>>>>>             HydroTween.go(testBox, {x:450}, 2, 0, null, null,  
>>>>> null,
>>>>> null, null, null, {cycles:Repeater.INFINITE, reverse:true});
>>>>>
>>>>>             //    HydroTween.go(testBox, {y:70}, 2, 0, null,  
>>>>> null, null,
>>>>> null, null, null, {cycles:Repeater.INFINITE, reverse:true});
>>>>>
>>>>>
>>>>>             trace ("moveBox called!");
>>>>>
>>>>>         }
>>>>>
>>>>>
>>>>>     }
>>>>>
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> GoList mailing list
>>>> GoList at goasap.org
>>>> http://goasap.org/mailman/listinfo/golist_goasap.org
>>>
>>> _______________________________________________
>>> GoList mailing list
>>> GoList at goasap.org
>>> http://goasap.org/mailman/listinfo/golist_goasap.org
>>
>> _______________________________________________
>> GoList mailing list
>> GoList at goasap.org
>> http://goasap.org/mailman/listinfo/golist_goasap.org
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080921/ae8f4584/attachment-0001.html 


More information about the GoList mailing list