[Golist] HydroTween direct method calls--not callbacks? + HydroSequence
Donovan Adams
donovan at hydrotik.com
Fri Jun 27 12:34:54 PDT 2008
Great Idea.. makes sense..
And thanks for the catch:)
----------------------------------------
Return-Path: <golist-bounces at goasap.org>
Received: from procyon.lunarpages.com [209.200.229.10] by mail29.safesecureweb.com with SMTP;
Fri, 27 Jun 2008 14:38:18 -0400
Received: from localhost ([127.0.0.1] helo=procyon.lunarpages.com)
by procyon.lunarpages.com with esmtp (Exim 4.68)
(envelope-from <golist-bounces at goasap.org>)
id 1KCIpM-0005Di-7U; Fri, 27 Jun 2008 11:37:44 -0700
Received: from rv-out-0708.google.com ([209.85.198.247])
by procyon.lunarpages.com with esmtp (Exim 4.68)
(envelope-from <stranskydesign at gmail.com>) id 1KCIpA-0005BS-DG
for golist at goasap.org; Fri, 27 Jun 2008 11:37:40 -0700
Received: by rv-out-0708.google.com with SMTP id b17so569191rvf.46
for <golist at goasap.org>; Fri, 27 Jun 2008 11:37:29 -0700 (PDT)
Received: by 10.140.127.13 with SMTP id z13mr978712rvc.194.1214591849699;
Fri, 27 Jun 2008 11:37:29 -0700 (PDT)
Received: by 10.141.122.11 with HTTP; Fri, 27 Jun 2008 11:37:29 -0700 (PDT)
Message-ID: <5be612720806271137y61d0458eu12a2b987b56c10d9 at mail.gmail.com>
Date: Fri, 27 Jun 2008 11:37:29 -0700
From: "Joel Stransky" <joel at stranskydesign.com>
To: "Mailing list for the Go ActionScript Animation Platform"
<golist at goasap.org>
In-Reply-To: <b06cb0bf58e341e7a724721498ace689 at mail29.safesecureweb.com>
MIME-Version: 1.0
References: <b06cb0bf58e341e7a724721498ace689 at mail29.safesecureweb.com>
X-Google-Sender-Auth: edf561f6c90e583d
X-Spam-Status: No, score=-2.6
X-Spam-Score: -25
X-Spam-Bar: --
X-Spam-Flag: NO
Subject: Re: [Golist] HydroTween direct method calls--not callbacks? +
HydroSequence
X-BeenThere: golist at goasap.org
X-Mailman-Version: 2.1.9.cp2
Precedence: list
Reply-To: Mailing list for the Go ActionScript Animation Platform
<golist at goasap.org>
List-Id: Mailing list for the Go ActionScript Animation Platform
<golist_goasap.org.goasap.org>
List-Unsubscribe: <http://goasap.org/mailman/listinfo/golist_goasap.org>,
<mailto:golist-request at goasap.org?subject=unsubscribe>
List-Archive: <http://goasap.org/pipermail/golist_goasap.org>
List-Post: <mailto:golist at goasap.org>
List-Help: <mailto:golist-request at goasap.org?subject=help>
List-Subscribe: <http://goasap.org/mailman/listinfo/golist_goasap.org>,
<mailto:golist-request at goasap.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1850429701=="
Sender: golist-bounces at goasap.org
Errors-To: golist-bounces at goasap.org
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - procyon.lunarpages.com
X-AntiAbuse: Original Domain - hydrotik.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - goasap.org
X-Source:
X-Source-Args:
X-Source-Dir:
X-Rcpt-To: <donovan at hydrotik.com>
X-SmarterMail-Spam: SPF_None
Seems like it should be called HydroGroup :)
Just fyi, the debugger is throwing this error on the scare tactics page.
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event at 13599eb1 to flash.events.MouseEvent.
On Fri, Jun 27, 2008 at 8:52 AM, Donovan Adams <donovan at hydrotik.com> wrote:
As a matter of fact there is. I've been in the process of testing an update to HydroTween as well as a breakout for Fuse style sequencing which more easily extends the power of SequenceCA. My continuing plan with HydroTween is to keep everything self contained, however this really made more sense in order to take advantage of Go's flexibility. SO with that said, I've added another companion class called HydroSequence. Works like this:
import com.hydrotik.go.HydroSequence;
var fuse:HydroSequence = new HydroSequence();
for (i = 0; i < _headArray.length - 1; i++) {
//HydroTween.go(_headArray[i].container, {alpha:1}, .25, i/4, Quadratic.easeOut);
fuse.addItem({target:_headArray[i].container, alpha:1, duration:.15, easing:Quadratic.easeOut});
}
fuse.addItem({target:_logo, alpha:1, duration:1, easing:Quadratic.easeOut});
fuse.addItem({target:_headArray[_headArray.length - 1].container, delay:1, alpha:1, duration:.1, easing:Quadratic.easeOut});
fuse.addItem({func: triggerAudio});
fuse.addItem({func: _scope.addEventListener, args:[Event.ENTER_FRAME, renderHeads]});
fuse.addItem({func: drawNav});
fuse.start();
HydroSequence internally generates instances of HydroTween to a sequence. All of the functionality of SequenceCA is accessble through HydroSequence now.
If you are interested in testing out/playing with the new version of HydroTween and HydroSequence, contact me offlist and I'll send you the latest. So far it's working great, but wanted to make sure it gets a decent testing before formally posting the updates. Otherwise I should be releasing this soon.
Moses, forgive me for naming all my sequences "fuse". :) Habit I picked up from using Fuse AS2 and I copied and pasted this from the new scaretactics site.
http://www.scifi.com/scaretactics/
*******
Are there any plans to allow HydroTween's sequencing to allow for direct method calls instead of callbacks? Something like:
var seq1:SequenceCA = HydroTween.sequence(
,{target:my_mc, x:0, y:0, alpha:1, duration:3, easing:Sine.easeInOut}
,{scope:this, func:"myFunction", args["hi"]}
}
I've been on an Flash hiatus, and must say I'm impressed with how far HydroTween's come :)
_______________________________________________
GoList mailing list
GoList at goasap.org
http://goasap.org/mailman/listinfo/golist_goasap.org
--
--Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080627/7f1ab307/attachment.html
More information about the GoList
mailing list