From flexrails at gmail.com Wed Sep 3 03:45:37 2008 From: flexrails at gmail.com (Flex Rails) Date: Wed, 3 Sep 2008 12:45:37 +0200 Subject: [Tweener] number of actively running tweens to optimize rendering effort Message-ID: hi there, can someone help me with this? 1) I'd like to find out how many tweens are actively running, so that I can determine whether my animated scene needs to be rendered or not. the isTweening(), getTweens() etc. methods all require p_scope:Object. but I wanna know about all active tweens. 2) I'd like to stop tweening on one part of the scene, while keeping the tweens on another part of the scene still running. is there any way to group tweens and pause / resume those groups independently rather than all or nothing? any ideas? thanks a lot, flexrails -------------- next part -------------- An HTML attachment was scrubbed... URL: From flashcoder at benga.li Wed Sep 3 04:00:48 2008 From: flashcoder at benga.li (Cedric Muller) Date: Wed, 3 Sep 2008 13:00:48 +0200 Subject: [Tweener] number of actively running tweens to optimize rendering effort In-Reply-To: References: Message-ID: Hello, basically: you could store your objects to be tweened into an array, and loop over that array to check what to do (with your own special rules). hth, Cedric > hi there, > > can someone help me with this? > > 1) I'd like to find out how many tweens are actively running, > so that I can determine whether my animated scene needs to be > rendered or not. > > the isTweening(), getTweens() etc. methods all require p_scope:Object. > but I wanna know about all active tweens. > > 2) I'd like to stop tweening on one part of the scene, while > keeping the tweens on another part of the scene still running. > is there any way to group tweens and pause / resume those groups > independently rather than all or nothing? > > any ideas? > > thanks a lot, > flexrails > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com From makc.the.great at gmail.com Wed Sep 3 04:15:54 2008 From: makc.the.great at gmail.com (Makc) Date: Wed, 3 Sep 2008 14:15:54 +0300 Subject: [Tweener] number of actively running tweens to optimize rendering effort In-Reply-To: References: Message-ID: <7a2c69bf0809030415s1c6693a2j9ba3529329464c@mail.gmail.com> I think Tweener could ideally have some kind of "priority" parameter for tweens. Then on enterFrame Tweener could sort tweens according to priority, and tween them starting from highest priorities, until pre-determined fraction of frame interval elapsed (probably due to heavy stuff object setters do). The rest of low-priority tweens would be simply dropped until next enterFrame, just like media player drops data frames if CPU cant handle the bitrate... On 9/3/08, Flex Rails wrote: > 2) I'd like to stop tweening on one part of the scene, while keeping the > tweens on another part of the scene still running. > is there any way to group tweens and pause / resume those groups > independently rather than all or nothing? > > any ideas? From cristi.baluta at gmail.com Wed Sep 3 05:18:28 2008 From: cristi.baluta at gmail.com (Baluta Cristian) Date: Wed, 3 Sep 2008 15:18:28 +0300 Subject: [Tweener] number of actively running tweens to optimize rendering effort In-Reply-To: <7a2c69bf0809030415s1c6693a2j9ba3529329464c@mail.gmail.com> References: <7a2c69bf0809030415s1c6693a2j9ba3529329464c@mail.gmail.com> Message-ID: <7285de060809030518w7b192f97scc2006a8445b8407@mail.gmail.com> getTweens will return a string array with the properties are curently tweened for passed object.to get the total number of tweens, you can create yourself a method that returns the length of _tweenList or you can make this var public and you directly access it, but better the first solution. On Wed, Sep 3, 2008 at 2:15 PM, Makc wrote: > I think Tweener could ideally have some kind of "priority" parameter > for tweens. Then on enterFrame Tweener could sort tweens according to > priority, and tween them starting from highest priorities, until > pre-determined fraction of frame interval elapsed (probably due to > heavy stuff object setters do). The rest of low-priority tweens would > be simply dropped until next enterFrame, just like media player drops > data frames if CPU cant handle the bitrate... > > On 9/3/08, Flex Rails wrote: > > 2) I'd like to stop tweening on one part of the scene, while keeping the > > tweens on another part of the scene still running. > > is there any way to group tweens and pause / resume those groups > > independently rather than all or nothing? > > > > any ideas? > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > -- Cristi www.ralcr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeh at zehfernando.com Wed Sep 3 06:09:29 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Wed, 03 Sep 2008 10:09:29 -0300 Subject: [Tweener] number of actively running tweens to optimize rendering effort In-Reply-To: <7a2c69bf0809030415s1c6693a2j9ba3529329464c@mail.gmail.com> References: <7a2c69bf0809030415s1c6693a2j9ba3529329464c@mail.gmail.com> Message-ID: <48BE8C89.1060303@zehfernando.com> This is not exactly that, but using skipUpdates let you tell some tweens that they'll only update once every 2 frames (or 3 or 4 or n), so it's if you have a lower framerate for certain tweens. It's useful if you have some heavy tween (say, a filter applied to a huge image) and you want it to be updated less frequently because you know it'll drop the performance. Makc wrote: > I think Tweener could ideally have some kind of "priority" parameter > for tweens. Then on enterFrame Tweener could sort tweens according to > priority, and tween them starting from highest priorities, until > pre-determined fraction of frame interval elapsed (probably due to > heavy stuff object setters do). The rest of low-priority tweens would > be simply dropped until next enterFrame, just like media player drops > data frames if CPU cant handle the bitrate... > > On 9/3/08, Flex Rails wrote: >> 2) I'd like to stop tweening on one part of the scene, while keeping the >> tweens on another part of the scene still running. >> is there any way to group tweens and pause / resume those groups >> independently rather than all or nothing? >> >> any ideas? > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > From zeh at zehfernando.com Wed Sep 3 06:10:35 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Wed, 03 Sep 2008 10:10:35 -0300 Subject: [Tweener] number of actively running tweens to optimize rendering effort In-Reply-To: References: Message-ID: <48BE8CCB.5000108@zehfernando.com> > 1) I'd like to find out how many tweens are actively running, > so that I can determine whether my animated scene needs to be rendered > or not. > > the isTweening(), getTweens() etc. methods all require p_scope:Object. > but I wanna know about all active tweens. The best way is doing a new method/function that reads Tweener's internal tween list and do what you want. > 2) I'd like to stop tweening on one part of the scene, while keeping the > tweens on another part of the scene still running. > is there any way to group tweens and pause / resume those groups > independently rather than all or nothing? It's object-dependent, so the only way is knowing in advance which objects you want to pause/resume/stop. Zeh From sbalkau at gmail.com Wed Sep 10 23:35:21 2008 From: sbalkau at gmail.com (Sascha) Date: Thu, 11 Sep 2008 15:35:21 +0900 Subject: [Tweener] onComplete doesn't fire (AS3) Message-ID: <000d01c913d8$91fbc5f0$b5f351d0$@com> I got this code: ---- var b:Bitmap = p.tweenImage; Tweener.addTween(b, {x: xPos, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {y: yPos, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {scaleX: 0.96, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {scaleY: 0.96, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {rotation: r, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {alpha: 0, delay: 0.6, time: 0.4, transition: "easeOutCubic", onComplete: onTweenComplete}); public function onTweenComplete(e:Event = null):void { trace("Removing: " + e.target); } ---- However the onComplete is never fired? I've also tried adding 'onCompleteScope: this' which as I understand it points to the class where the code is in but the onTweenComplete method is still not called? What am I doing wrong here? Sascha From v-yvtouz at microsoft.com Thu Sep 11 00:32:24 2008 From: v-yvtouz at microsoft.com (Yvan Touzeau (Intl Vendor)) Date: Thu, 11 Sep 2008 08:32:24 +0100 Subject: [Tweener] onComplete doesn't fire (AS3) In-Reply-To: <000d01c913d8$91fbc5f0$b5f351d0$@com> References: <000d01c913d8$91fbc5f0$b5f351d0$@com> Message-ID: <69B54FCC458BE341863AF530B28411481C4AF272AD@EA-EXMSG-C333.europe.corp.microsoft.com> onComplete is not listening to an event (in the way as far as I know) furthermore, it can handle parameters but then, you pass it as an array called onCompleteParams in the tween object Tweener.addTween(b, {alpha: 0, delay: 0.6, time: 0.4, transition:"easeOutCubic",onComplete: onTweenComplete, onCompleteParams:[b]}); public function onTweenComplete(b:Bitmap):void { trace("Removing: " + b); } I don't remember exactly but the scope of the onTweenComplete function could be the tween target (must be tested) If so, no params are needed public function onTweenComplete():void { trace("Removing: " + this); } -----Message d'origine----- De : tweener-bounces at lists.caurinauebi.com [mailto:tweener-bounces at lists.caurinauebi.com] De la part de Sascha Envoy? : jeudi 11 septembre 2008 08:35 ? : tweener at lists.caurinauebi.com Objet : [Tweener] onComplete doesn't fire (AS3) I got this code: ---- var b:Bitmap = p.tweenImage; Tweener.addTween(b, {x: xPos, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {y: yPos, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {scaleX: 0.96, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {scaleY: 0.96, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {rotation: r, time: 0.8, transition: "easeOutCubic"}); Tweener.addTween(b, {alpha: 0, delay: 0.6, time: 0.4, transition: "easeOutCubic", onComplete: onTweenComplete}); public function onTweenComplete(e:Event = null):void { trace("Removing: " + e.target); } ---- However the onComplete is never fired? I've also tried adding 'onCompleteScope: this' which as I understand it points to the class where the code is in but the onTweenComplete method is still not called? What am I doing wrong here? Sascha _______________________________________________ Tweener mailing list Tweener at lists.caurinauebi.com http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com From t.ahmed at impactbbdo.ae Sun Sep 14 20:14:07 2008 From: t.ahmed at impactbbdo.ae (Tahir Ahmed) Date: Mon, 15 Sep 2008 07:14:07 +0400 Subject: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time Message-ID: <133F31E23D273140B219F739A47C7CB803B564BC@IB-EXCHANGE.impactbbdo.ae> Hello All, I just wanted to know what you guys have to say on onEnterFrame updates (which Tweener is currently using) and the updates based on Interval; And to let the developer have the control of choosing between them (based on his project). Regards, Tahir. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeh at zehfernando.com Sun Sep 14 22:10:15 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Mon, 15 Sep 2008 02:10:15 -0300 Subject: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time In-Reply-To: <133F31E23D273140B219F739A47C7CB803B564BC@IB-EXCHANGE.impactbbdo.ae> References: <133F31E23D273140B219F739A47C7CB803B564BC@IB-EXCHANGE.impactbbdo.ae> Message-ID: This has been widely discussed in the past. To put it simply, onEnterFrame/ENTER_FRAME updates (with actual values based on time) is usually the best approach since it'll give you the best performance. There are moments where update based on a given time frame may be preferable (if you want a different framerate for a given update), but this is not something Tweener does at this time. Zeh On Mon, Sep 15, 2008 at 12:14 AM, Tahir Ahmed wrote: > Hello All, > > > > I just wanted to know what you guys have to say on onEnterFrame updates > (which Tweener is currently using) and the updates based on Interval; And to > let the developer have the control of choosing between them (based on his > project). > > > > Regards, > > Tahir. > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.ahmed at impactbbdo.ae Mon Sep 15 21:40:42 2008 From: t.ahmed at impactbbdo.ae (Tahir Ahmed) Date: Tue, 16 Sep 2008 08:40:42 +0400 Subject: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time References: Message-ID: <133F31E23D273140B219F739A47C7CB803B56E06@IB-EXCHANGE.impactbbdo.ae> So should we expect Tweener to have this feature in future? (i.e. having both the options and letting the developer to decide which one he wants to use) Thanks for creating this awesome Tween Engine btw. Regards, Tahir. -----Original Message----- From: tweener-bounces at lists.caurinauebi.com [mailto:tweener-bounces at lists.caurinauebi.com] On Behalf Of tweener-request at lists.caurinauebi.com Sent: Tuesday, September 16, 2008 1:09 AM To: tweener at lists.caurinauebi.com Subject: Tweener Digest, Vol 21, Issue 3 Send Tweener mailing list submissions to tweener at lists.caurinauebi.com To subscribe or unsubscribe via the World Wide Web, visit http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com or, via email, send a message with subject or body 'help' to tweener-request at lists.caurinauebi.com You can reach the person managing the list at tweener-owner at lists.caurinauebi.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Tweener digest..." Today's Topics: 1. onEnterFrame Vs Interval - i.e. Frames Vs Time (Tahir Ahmed) 2. Re: onEnterFrame Vs Interval - i.e. Frames Vs Time (Zeh Fernando) ---------------------------------------------------------------------- Message: 1 Date: Mon, 15 Sep 2008 07:14:07 +0400 From: "Tahir Ahmed" Subject: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time To: Message-ID: <133F31E23D273140B219F739A47C7CB803B564BC at IB-EXCHANGE.impactbbdo.ae> Content-Type: text/plain; charset="us-ascii" Hello All, I just wanted to know what you guys have to say on onEnterFrame updates (which Tweener is currently using) and the updates based on Interval; And to let the developer have the control of choosing between them (based on his project). Regards, Tahir. -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 15 Sep 2008 02:10:15 -0300 From: "Zeh Fernando" Subject: Re: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time To: tweener at lists.caurinauebi.com Message-ID: Content-Type: text/plain; charset="iso-8859-1" This has been widely discussed in the past. To put it simply, onEnterFrame/ENTER_FRAME updates (with actual values based on time) is usually the best approach since it'll give you the best performance. There are moments where update based on a given time frame may be preferable (if you want a different framerate for a given update), but this is not something Tweener does at this time. Zeh On Mon, Sep 15, 2008 at 12:14 AM, Tahir Ahmed wrote: > Hello All, > > > > I just wanted to know what you guys have to say on onEnterFrame > updates (which Tweener is currently using) and the updates based on > Interval; And to let the developer have the control of choosing > between them (based on his project). > > > > Regards, > > Tahir. > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ Tweener mailing list Tweener at lists.caurinauebi.com http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com End of Tweener Digest, Vol 21, Issue 3 ************************************** From charlie.montagut at gmail.com Tue Sep 16 03:06:46 2008 From: charlie.montagut at gmail.com (charlie Montagut) Date: Tue, 16 Sep 2008 12:06:46 +0200 Subject: [Tweener] onComplete problem Message-ID: hi everyone, First Escuse me for my english, i am french...! I have a little probleme about the onComplete param of tweener here is my code: *// this function move(evt:Event) is called on Stage...(Event.RESIZE,move)* *public* *function* move(pEvt:Event=*null*):*void * { removeChild(myFond); Tweener.addTween(myPopUp, {y:(stage.stageHeight/2 - *this*.height/2),x:(stage.stageWidth/2 - *this*.width/2), time:1, delay:0, transition:*"easeOutQuint"*, onComplete:nextMove}); } *public* *function* nextMove():*void * { * // this function **captureScreen()* *is supposed to print the screen into a bitmap var.* captureScreen(); addChild(myFond); swapChildren(myFond,myPopUp); } My problem is that the capture of the stage ( made by Capture Screen() ) is made before the stage is resized, although it's called when the tweener is finished whom is called when the stage is yet resized. Is there a probleme with te onComplete Tweener method? Thanxx for your help, And glad to join this mailing list Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeh at zehfernando.com Tue Sep 16 14:46:06 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Tue, 16 Sep 2008 18:46:06 -0300 Subject: [Tweener] onEnterFrame Vs Interval - i.e. Frames Vs Time In-Reply-To: <133F31E23D273140B219F739A47C7CB803B56E06@IB-EXCHANGE.impactbbdo.ae> References: <133F31E23D273140B219F739A47C7CB803B56E06@IB-EXCHANGE.impactbbdo.ae> Message-ID: <48D0291E.7090804@zehfernando.com> > So should we expect Tweener to have this feature in future? (i.e. having > both the options and letting the developer to decide which one he wants > to use) > Thanks for creating this awesome Tween Engine btw. It has been part of the plan for a while, but honestly right now I have no indication of when and if this will actually be implemented. Zeh From zeh at zehfernando.com Tue Sep 16 14:49:49 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Tue, 16 Sep 2008 18:49:49 -0300 Subject: [Tweener] onComplete problem In-Reply-To: References: Message-ID: <48D029FD.9000607@zehfernando.com> Hi Charlie, > hi everyone, > I have a little probleme about the onComplete param of tweener > here is my code: > (...) > My problem is that the capture of the stage ( made by Capture Screen() ) > is made before the stage is resized, although it's called when the > tweener is finished whom is called when the stage is yet resized. Is > there a probleme with te onComplete Tweener method? I don't really see anything wrong, it should work if I understood the functionality. In fact, even the first Tweener call would be executed AFTER the stage is resized, so I can't see how onComplete can run before it happens. Zeh From dornad at gmail.com Thu Sep 18 09:33:15 2008 From: dornad at gmail.com (=?ISO-8859-1?Q?Daniel_Rodr=EDguez?=) Date: Thu, 18 Sep 2008 12:33:15 -0400 Subject: [Tweener] Ending a Tween on user input Message-ID: Hello guys, I have this (Collada) model that fades out (using Tweener) in 13 seconds, but I want my user to be able to use the spacebar to to force the fade-out (i.e., don't wait 13 seconds ). Is there anyway to do this? I've been going over the docs but haven't seen anything or any example of this. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeh at zehfernando.com Thu Sep 18 09:36:33 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Thu, 18 Sep 2008 13:36:33 -0300 Subject: [Tweener] Ending a Tween on user input In-Reply-To: References: Message-ID: Well, you could do Tweener.removeTweens(nameoftheobj); When the user presses the spacebar, and then just set its visibility/opacity, maybe with a new (shorter) tween? Zeh On Thu, Sep 18, 2008 at 1:33 PM, Daniel Rodr?guez wrote: > Hello guys, > > I have this (Collada) model that fades out (using Tweener) in 13 seconds, > but I want my user to be able to use the spacebar to to force the fade-out > (i.e., don't wait 13 seconds ). > > Is there anyway to do this? I've been going over the docs but haven't seen > anything or any example of this. > > Thanks. > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franck at lapinblanc.org Thu Sep 18 09:38:03 2008 From: franck at lapinblanc.org (Franck Murcia) Date: Thu, 18 Sep 2008 12:38:03 -0400 Subject: [Tweener] Ending a Tween on user input In-Reply-To: References: Message-ID: <509F8D79-352D-494F-8C85-2132CC0FD8E3@lapinblanc.org> Do you want to accelerate or to skip the transition ? if you watn to skip you just have to stop your tween Tweener.removeTweens(obj,"prop"); and set your prop to the end value and if you want to accelerate your animation perhaps you can use the timeScale :) peace Le 18 sept. 08 ? 12:33, Daniel Rodr?guez a ?crit : > Hello guys, > > I have this (Collada) model that fades out (using Tweener) in 13 > seconds, but I want my user to be able to use the spacebar to to > force the fade-out (i.e., don't wait 13 seconds ). > > Is there anyway to do this? I've been going over the docs but > haven't seen anything or any example of this. > > Thanks. > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com Franck Murcia - Lapin Blanc http://lapinblanc.org franck at lapinblanc.org Skype me if you can -------------- next part -------------- An HTML attachment was scrubbed... URL: From dornad at gmail.com Thu Sep 18 09:50:28 2008 From: dornad at gmail.com (=?ISO-8859-1?Q?Daniel_Rodr=EDguez?=) Date: Thu, 18 Sep 2008 12:50:28 -0400 Subject: [Tweener] Ending a Tween on user input In-Reply-To: <509F8D79-352D-494F-8C85-2132CC0FD8E3@lapinblanc.org> References: <509F8D79-352D-494F-8C85-2132CC0FD8E3@lapinblanc.org> Message-ID: That did it !!! Thanks for everything guys, gr8 job !!! Daniel. On Thu, Sep 18, 2008 at 12:38 PM, Franck Murcia wrote: > Do you want to accelerate or to skip the transition ? > if you watn to skip you just have to stop your tween > Tweener.removeTweens(obj,"prop"); > > and set your prop to the end value > > and if you want to accelerate your animation perhaps you can use the > timeScale :) > > peace > > > Le 18 sept. 08 ? 12:33, Daniel Rodr?guez a ?crit : > > Hello guys, > > I have this (Collada) model that fades out (using Tweener) in 13 seconds, > but I want my user to be able to use the spacebar to to force the fade-out > (i.e., don't wait 13 seconds ). > > Is there anyway to do this? I've been going over the docs but haven't seen > anything or any example of this. > > Thanks. > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > > [image: Logo Lapin Blanc] *Franck Murcia - Lapin Blanc* > http://lapinblanc.org > franck at lapinblanc.org > Skype me if you can > > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From x7ks.x.rx at gmail.com Thu Sep 18 14:37:06 2008 From: x7ks.x.rx at gmail.com (x7ks.x.rx) Date: Thu, 18 Sep 2008 18:37:06 -0300 Subject: [Tweener] Loop Infinito [Lang: Portuguese] Message-ID: <8130bed40809181437r2ba329aek8698ef7e93b22ff@mail.gmail.com> Fala Z?!! Desde j? obrigado pela Class, foi a melhor coisa que poderiam inventar, ? de grande utilidade. E parab?ns... voc?(s) fizeram algo que ficar? para a hist?ria. Bom, estou tendo um problema com loop infinito.. Ainda n?o pude notar quando exatamente o erro ocorre, mas geralmente, ocorre quando o objeto n?o existe. Eu utilizo bastante gotoAndStop(1), onde nele estaria um Keyframe em branco, sem o objeto. Sei que d? pra utilizar Tweener.removeTweens(mc); Mas quando a lista de MC's ? meio extensa, fica complicado, e usar o removeAllTweens n?o ? vi?vel (Outras anima??es, etc) no meu caso. Na verdade seria mais uma sugest?o, para se pensar em alguma nova vers?o. Se o objeto n?o existir, remover a Tween dele automaticamente. ? isso... Obrigado e at? mais. []s Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie.montagut at gmail.com Thu Sep 25 07:37:12 2008 From: charlie.montagut at gmail.com (charlie Montagut) Date: Thu, 25 Sep 2008 16:37:12 +0200 Subject: [Tweener] onComplete problem In-Reply-To: <48D029FD.9000607@zehfernando.com> References: <48D029FD.9000607@zehfernando.com> Message-ID: Hi everyone, Can I remove a child after tweening this child?: The idea is to have a motion when myClip is added to stage ( tweening is done in the constructor of this myClip), and the another just before it's removed from the stage. For example this code: tweener.addTween(myClip,{alpha:0, transition:"linear", onComplete: removeMyClip}) function removeMyClip() { removeChild(myClip); } Because i tried to do something similar, and the child is removed during the tweening motion. I don't understand where i failed. if anybody knows a method to do this or have an answer... Thanks you all. Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From makc.the.great at gmail.com Thu Sep 25 07:46:14 2008 From: makc.the.great at gmail.com (Makc) Date: Thu, 25 Sep 2008 17:46:14 +0300 Subject: [Tweener] onComplete problem In-Reply-To: References: <48D029FD.9000607@zehfernando.com> Message-ID: <7a2c69bf0809250746u61d9beb4w2cf2c93ac5c5b303@mail.gmail.com> you have ommited time parameter so it probably tweens instantly. On Thu, Sep 25, 2008 at 5:37 PM, charlie Montagut wrote: > Hi everyone, > > Can I remove a child after tweening this child?: > The idea is to have a motion when myClip is added to stage ( tweening is > done in the constructor of this myClip), and the another just before it's > removed from the stage. > > For example this code: > > tweener.addTween(myClip,{alpha:0, transition:"linear", > onComplete:removeMyClip}) > > function removeMyClip() { > > removeChild(myClip); > > } > > Because i tried to do something similar, and the child is removed during the > tweening motion. I don't understand where i failed. > > if anybody knows a method to do this or have an answer... > > Thanks you all. > > Charlie > > > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > From charlie.montagut at gmail.com Thu Sep 25 08:52:34 2008 From: charlie.montagut at gmail.com (charlie Montagut) Date: Thu, 25 Sep 2008 17:52:34 +0200 Subject: [Tweener] onComplete problem In-Reply-To: <7a2c69bf0809250746u61d9beb4w2cf2c93ac5c5b303@mail.gmail.com> References: <48D029FD.9000607@zehfernando.com> <7a2c69bf0809250746u61d9beb4w2cf2c93ac5c5b303@mail.gmail.com> Message-ID: Uh infact i ommited it just in my mail. In my original code time is set to 1: Tweener.addTween(nomProduit,{scaleX:0.1,rotation :2,y:50, alpha:0,time:1,delay:0.2, transition:"easeOutCubic", onComplete:Next}); function Next(){ removeChild(nomProduit); } 2008/9/25 Makc > you have ommited time parameter so it probably tweens instantly. > > On Thu, Sep 25, 2008 at 5:37 PM, charlie Montagut > wrote: > > Hi everyone, > > > > Can I remove a child after tweening this child?: > > The idea is to have a motion when myClip is added to stage ( tweening is > > done in the constructor of this myClip), and the another just before it's > > removed from the stage. > > > > For example this code: > > > > tweener.addTween(myClip,{alpha:0, transition:"linear", > > onComplete:removeMyClip}) > > > > function removeMyClip() { > > > > removeChild(myClip); > > > > } > > > > Because i tried to do something similar, and the child is removed during > the > > tweening motion. I don't understand where i failed. > > > > if anybody knows a method to do this or have an answer... > > > > Thanks you all. > > > > Charlie > > > > > > > > _______________________________________________ > > Tweener mailing list > > Tweener at lists.caurinauebi.com > > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > > > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > -- ______________________________________ Charlie Montagut - Etudiant 2eme Ann?e SRC tel : 0683332559 - skype: charlie montagut web: www.charlie-montagut.com ______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeh at zehfernando.com Thu Sep 25 11:57:32 2008 From: zeh at zehfernando.com (Zeh Fernando) Date: Thu, 25 Sep 2008 15:57:32 -0300 Subject: [Tweener] onComplete problem In-Reply-To: References: <48D029FD.9000607@zehfernando.com> <7a2c69bf0809250746u61d9beb4w2cf2c93ac5c5b303@mail.gmail.com> Message-ID: <48DBDF1C.2010503@zehfernando.com> Your code should work and properly remove it once the animation is done. I've used similar code in the past, although I usually create an inline function. Here's an example: var blackBox:BlackBox = new BlackBox(); AppInfo.stage.addChild(blackBox); (...) Tweener.addTween(blackBox, {alpha:0, time:0.7, delay:delay, transition:"easeinquad", onComplete:function() { AppInfo.stage.removeChild(this); }}); The references on my example are absolute, but regardless, it should work on your case too. Zeh charlie Montagut wrote: > Uh infact i ommited it just in my mail. In my original code time is set > to 1: > > Tweener.addTween(nomProduit,{scaleX:0.1,rotation :2,y:50, > alpha:0,time:1,delay:0.2, transition:"easeOutCubic", onComplete:Next}); > > > function Next(){ > > removeChild(nomProduit); > } > > > > > 2008/9/25 Makc > > > you have ommited time parameter so it probably tweens instantly. > > On Thu, Sep 25, 2008 at 5:37 PM, charlie Montagut > > wrote: > > Hi everyone, > > > > Can I remove a child after tweening this child?: > > The idea is to have a motion when myClip is added to stage ( > tweening is > > done in the constructor of this myClip), and the another just > before it's > > removed from the stage. > > > > For example this code: > > > > tweener.addTween(myClip,{alpha:0, transition:"linear", > > onComplete:removeMyClip}) > > > > function removeMyClip() { > > > > removeChild(myClip); > > > > } > > > > Because i tried to do something similar, and the child is removed > during the > > tweening motion. I don't understand where i failed. > > > > if anybody knows a method to do this or have an answer... > > > > Thanks you all. > > > > Charlie > > > > > > > > _______________________________________________ > > Tweener mailing list > > Tweener at lists.caurinauebi.com > > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > > > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com > > > > > -- > ______________________________________ > > Charlie Montagut - Etudiant 2eme Ann?e SRC > > tel : 0683332559 - > skype: charlie montagut > web: www.charlie-montagut.com > ______________________________________ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tweener mailing list > Tweener at lists.caurinauebi.com > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com