[Golist] inconsistencies with LinearGo duration setting and actual playback time

rboyd at telematter.com rboyd at telematter.com
Tue Aug 5 18:50:55 PDT 2008


Thanks Gil and Donavan for the quick replies.  I've reproduced the
behavior with a small 46 line flex app (which I'm just building with
Adobe opensource mxmlc).  You'll notice I'm building a Sequence of 60
tweens (HydroTween in this case, but I'm fairly sure this is unrelated
to Donavan's code including his pv3d render manager).  Each tween is
constructed with a 1 second duration.  I'm tracing out the sequence
start and complete times.  On my system this sequence has a runtime of
65 seconds.

It could be that this is entirely within the expected behavior of the
framework, in which case I just need to put together a plan to
compensate.

Thanks again for your brain power on this one.

-rb

---

Here's that code snippet:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
  xmlns:mx="http://www.adobe.com/2006/mxml"
  backgroundGradientAlphas="[0, 0]"
  backgroundColor="#000000"
  applicationComplete="onApplicationComplete()">

  <mx:VBox height="100%" width="100%">
    <mx:Image source="http://www.goasap.org/images/goishi.jpg" id="img"
/>
    <mx:TextArea height="80%" width="80%" text="{debug}" />
  </mx:VBox>

  <mx:Script>
    <![CDATA[
      import org.goasap.utils.Sequence;
      import org.goasap.events.GoEvent;
      import com.hydrotik.go.HydroTween;

      [Bindable]
      protected var debug:String = "test";

      protected function onSequenceComplete(e:Event):void {
        debug += "Ended: " + (new Date).minutes + ":" +
                 (new Date).seconds + "\n";
      }

      protected function onApplicationComplete():void {
        debug += "Started: " + (new Date).minutes + ":" +
                 (new Date).seconds + "\n";

        // build a sequence of 20 LinearGo items of 1 second duration
each
        var seq:Sequence = new Sequence();
        for (var i:uint = 0; i < 60; i++) {
          seq.addStep(new HydroTween(img,
                      {x: (200 * (i % 2 ? 1 : -1)) + 200}, 1));

        }
        seq.addEventListener(GoEvent.COMPLETE, onSequenceComplete);
        seq.start();


      }
    ]]>
  </mx:Script>
</mx:Application>



-------- Original Message --------
Subject: Re: [Golist] inconsistencies with LinearGo duration setting
and actual playback time
From: "Gil Birman" <gil at allflashwebsite.com>
Date: Tue, August 05, 2008 4:33 pm
To: "Mailing list for the Go ActionScript Animation Platform"
<golist at goasap.org>

Robert,

As for a path forward, try to come up with the simplest example where
you can reproduce this behavior, and send to the list. Also, try to make
sure you're not miscalculating the total duration. I personally have not
had this timing problem but I haven't done anything super-complicated.
 
Gil

On Tue, Aug 5, 2008 at 5:46 PM, <rboyd at telematter.com> wrote:
 
In the app I'm working on, I'm building a large sequence of tweens using
Hydrotik and Go3D.  Part of the application design calls for a
horizontal slider which has a thumb that slides along the track along
with the playback.  So I'm tweening that thumb from the slider's minimum
to maximum value and setting the duration of this tween to the total
duration of the sequence which is previously built.  Then I group the
slider's animation along with the main animation sequence into a
PlayableGroup and I start it on a button click event.
 
The problem I'm having is that the slider's tween animation is finishing
well before the main animation.  It's quite noticable -- on the order of
2-3 seconds for a 20 second animation.

I've tried it with several different tweens, and I've tried disabling
the ENTER_FRAME event handler which executes a pv3d scene renderer. 
Both with no success.
 
I'm curious if anyone else has experienced similar problems or if anyone
has any ideas on a path forward.  I've been wrestling with it the past
couple of days, so once again I'm coming to the community with fingers
crossed.
 
Thanks for reading.

Robert Boyd
rboyd at telematter.com



_______________________________________________
 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





More information about the GoList mailing list