<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#333333">
<small><font face="Verdana">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.<br>
<br>
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?<br>
<br>
Any input greatly appreciated :-)<br>
<br>
Stuart<br>
</font></small><br>
<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; Function: moves box<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private function moveBox():void<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var startX:Number = testBox.x;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var changeX:Number = 300;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; function doAnimation(event:GoEvent):void <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;testBox.x = startX + changeX * (event.target as
LinearGo).position;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var repeater:LinearGoRepeater = new
LinearGoRepeater(Repeater.INFINITE, true);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var t:LinearGo = new LinearGo(.5, 2, Exponential.easeOut,
null, repeater);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t.addEventListener(GoEvent.UPDATE, doAnimation);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t.start();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
<br>
<br>
<br>
<br>
On 11/9/08 20:00, <a class="moz-txt-link-abbreviated" href="mailto:golist-request@goasap.org">golist-request@goasap.org</a> wrote:
<blockquote
 cite="mid:mailman.1.1221159603.4074.golist_goasap.org@goasap.org"
 type="cite">
  <pre wrap="">Send GoList mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:golist@goasap.org">golist@goasap.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://goasap.org/mailman/listinfo/golist_goasap.org">http://goasap.org/mailman/listinfo/golist_goasap.org</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:golist-request@goasap.org">golist-request@goasap.org</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:golist-owner@goasap.org">golist-owner@goasap.org</a>

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 <a class="moz-txt-link-rfc2396E" href="mailto:stuart.mcneill@itworkforce.co.uk">&lt;stuart.mcneill@itworkforce.co.uk&gt;</a>
Subject: [Golist] Problem with repeater object on a HydroTween item
To: <a class="moz-txt-link-abbreviated" href="mailto:golist@goasap.org">golist@goasap.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:48C912D3.7050903@itworkforce.co.uk">&lt;48C912D3.7050903@itworkforce.co.uk&gt;</a>
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: <a class="moz-txt-link-freetext" href="http://goasap.org/pipermail/golist_goasap.org/attachments/20080911/0ab7cc93/attachment-0001.html">http://goasap.org/pipermail/golist_goasap.org/attachments/20080911/0ab7cc93/attachment-0001.html</a> 

------------------------------

Message: 2
Date: Thu, 11 Sep 2008 13:51:38 +0100
From: Stuart McNeill <a class="moz-txt-link-rfc2396E" href="mailto:stuart.mcneill@itworkforce.co.uk">&lt;stuart.mcneill@itworkforce.co.uk&gt;</a>
Subject: [Golist] Problem with repeater object on a HydroTween item
To: <a class="moz-txt-link-abbreviated" href="mailto:golist@goasap.org">golist@goasap.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:48C9145A.4020008@itworkforce.co.uk">&lt;48C9145A.4020008@itworkforce.co.uk&gt;</a>
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!");

        }
       
       
    }
   

}



  </pre>
</blockquote>
</body>
</html>