[Golist] Why doesn't this work?
Gil Birman
gil at allflashwebsite.com
Thu Jul 17 00:03:11 PDT 2008
Thanks,
doing
var _this:* = this;
works.
On Wed, Jul 16, 2008 at 8:15 AM, donovan at hydrotik.com <donovan at hydrotik.com>
wrote:
> From just a quick glance scope issue comes to mind?
>
> The use of "this" in a nested closure could be the issue.
>
>
>
> On 7/16/08 4:25 AM, "Gil Birman" <gil at allflashwebsite.com> wrote:
>
> Sorry, I know this isn't necessarily GoASAP related, but....
>
> // tempRect is a class-level variable of type Rectangle
> tempRect = this.scrollRect;
> HydroTween.go( tempRect, { y: newY }, 1, 0, null, null,
> function() { this.scrollRect = tempRect; } );
>
> Why doesn' t this work?
>
> Thanks
> Gil
>
> ------------------------------
> _______________________________________________
> 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/20080717/8a5bc0ae/attachment.html
More information about the GoList
mailing list