[osflash] Tweening by Code

Karnei Gozman kgozman at detroitweb.net
Wed Nov 4 08:12:50 PST 2009


I concur - GreenSock is awesome

On Nov 4, 2009, at 10:49 AM, Highley, Neil (LDN-LWW) wrote:

> TweenMax can chain multiple events, but Beno said it right, if  
> you’re having problems mixing AS2 and AS3 in the same code, you may  
> need to step back a bit and do a few of the examples on the TweenMax  
> site and amend them as your need.
>
> http://blog.greensock.com/tweenmax/
>
> Neil Highley
>
>
>
> From: osflash-bounces at osflash.org [mailto:osflash- 
> bounces at osflash.org] On Behalf Of beno -
> Sent: 04 November 2009 14:48
> To: Open Source Flash Mailing List
> Subject: Re: [osflash] Tweening by Code
>
> I think I'm good to go on all of this *except*...
>
> I have a motion tween that goes from object A to object B, then C, D  
> and finally E. How do I make the whole shooting match one big  
> (small) movie? I've tried highlighting all the frames then pressing  
> F8 but that doesn't seem to work (just makes the first frame a  
> movie). Please advise.
> beno
> On Wed, Nov 4, 2009 at 1:02 AM, Chi Kin lam <keni011179 at gmail.com>  
> wrote:
> Beno,
>
> Because:
>
> the 1st half of your codes:
> test.MovieClip = new MovieClip();
> this.addChild(test);
> var i:Number = 0;
>
> (specially (addChild(test)) is actionscript 3
>
> whereas:
> test.onEnterFrame = function() {
> while (i < 10) {
> i++;
> test.alpha += .10;
> };
> }
>
> is actionscripts 2
>
> are you making it in ver 2, or ver  3, check your document profile.
> And I think that is the problem!!
>
> If you are trying to do some tweening on codes, check out Tweener -  
> an opening source online.
>
> http://code.google.com/p/tweener/
>
> those remain questions, try to figure out yourself. Here are some  
> hints:
>
> 1) framespeed == frame per second (fps)
> 2) to call a object to use on stage, you need to give a linkage name  
> to the object from their property
> 3) try gotoAndPlay() per frame?? but that is not the ideal way of  
> using frame for me
>
> Kind Regards,
>
> Keni, Lam
> E: Keni011179 at gmail.com
> U: http://www.ki-cl.com
> Skype: keni_lam
> MSN: keni011179 at gmail.com
>
> On 4 Nov 2009, at 01:08, beno - wrote:
>
> Hi;
> I'm trying to figure out how to do an alpha tween. When I run this  
> code:
>
> onClipEvent(enterFrame){
>     if(this._alpha < 100){
> this._alpha += 1;
> };
> }
>
> I get this error after the first line:
> Extra characters found after end of program
>
> When I create an object on the stage and convert it to a movie clip  
> named "test" and run this script:
>
> test.MovieClip = new MovieClip();
> this.addChild(test);
> var i:Number = 0;
> test.onEnterFrame = function() {
> while (i < 10) {
> i++;
> test.alpha += .10;
> };
> }
>
> I get an error about test being an unidentified variable. Please  
> advise.
>
> Also, while we're at it:
> 1) How do I change the framespeed?
> 2) I have a motion tween between different 5 graphics. I want to put  
> the whole thing into a movie that I can place in the library and  
> call as I will. How do I do that? Also, how do I reverse the movie?
> TIA,
> beno
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
> Lowe & Partners Worldwide Limited | Registered office: 60 Sloane  
> Avenue, London SW3 3XB, England | Registered number: 506057
> This message contains information which may be confidential and  
> privileged. Unless you are the intended recipient (or authorized to  
> receive
> this message for the intended recipient), you may not use, copy,  
> disseminate or disclose to anyone the message or any information  
> contained
> in the message. If you have received the message in error, please  
> advise the sender by reply e-mail, and delete the message.
> Thank you very much.
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/osflash_osflash.org/attachments/20091104/38148dda/attachment-0001.html>


More information about the osflash mailing list