[Golist] extending PlayableBase for simple action
Moses Gunesch
moses at goasap.org
Sat Jul 26 22:10:36 PDT 2008
Could it be the return true in the first line of stop()?
public function stop():Boolean
{
return true;
By the way, since this class only really operates on start(), maybe
you could just do the action and fire the COMPLETE event then... the
code seems a little on the complex side. Like just,
public function start():Boolean
{
dispatchEvent(new GoEvent(GoEvent.COMPLETE));
_target.visible = _visible;
return true;
}
public function stop():Boolean
{ return true; }
public function pause():Boolean
{ return false; }
public function resume():Boolean
{ return false; }
public function skipTo(position:Number):Boolean
{ return false; }
On Jul 26, 2008, at 8:44 PM, rboyd at telematter.com wrote:
>
> Hi all,
>
> I'm trying to extend PlayableBase and implement IPlayable for an
> action that simply sets a boolean property of an object.
> Specifically I'm trying to set the visible property on a
> Papervision3D DisplayObject3D. I don't want to override LinearGo
> for this purpose because I'm not really tweening anything -- I'm
> just flipping a Boolean.
>
> Here's my code: http://pastie.org/241817
>
> I'm adding this to PlayableGroup (which itself lives within a
> SequenceCA). Anyway, the start method seems to be getting called as
> I can see my object become visible, but the next step within the
> SequenceCA never plays. So I'm assuming that I'm not dispatching
> the COMPLETE event correctly or something -- but I've compared to
> LinearGo and SequenceBase and just can't seem to figure out where
> I'm going wrong.
>
> So now I'm asking for your help. =)
>
> Thanks in advance. Hopefully it's something really simple.
>
> Robert Boyd
> Telematter, Inc.
> rboyd at telematter.com
> _______________________________________________
> 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/20080727/93961f17/attachment.html
More information about the GoList
mailing list