ActionScript 3.0 Tween and Fade Control Part II

Wed, Oct 28, 2009

ActionScript

ActionScript 3.0 Tween and Fade Control Part II

This movie requires Flash Player 9

No Timelines! With one single sentence we create a whole animation from ActionScript

Click Here for part II of this tutorial.
DOWNLOAD THE COMPLETE SOURCE FILE
Fade Control Final

CLICK HERE FOR A COMPLETE ACTIONSCRIPT 3.0 CARTOON SMART TUTORIAL

HERE IS THE SOURCE CODE!

//The ActionScript 3.0 Fade in and Fade Out
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE

// Let’s import Tweening Libraries
// This enables Tweeing Capabilities
import fl.transitions.Tween;
import fl.transitions.easing.* // This will import all
//easing capabilities

// Variables to hold the tween
var inTween:Tween;
var outTween:Tween;

//Now we will set the compiler
//to wait the buttons to be clicked
in_btn.addEventListener(MouseEvent.CLICK, fadeIn);
out_btn.addEventListener(MouseEvent.CLICK, fadeOut);
// Note the instance names have to be identical
// to the names we gave on stage

//Functions
//if any event listener has a function that is not declared
// a error message shows, even if the button is not clicked

function fadeIn(event:MouseEvent):void{

inTween = new Tween (sun_mc,”alpha”,None.easeNone,0,1,3,true);
// sun_mc is the instance name we gave on stage
// alpha is a string HAS to be in between quotes
// The opacitiy starts at 0 increasing all the way to 3, steady
// during 3 seconds
// the true is to state we are using seconds and not milliseconds
}

function fadeOut(event:MouseEvent):void{

inTween = new Tween (sun_mc,”alpha”,None.easeNone,1,0,3,true);
}

// Don’t forget to subscribe
//thanks for watching

Related Articles:

, , , , , , , , , , , , , , , , , , ,

90 Responses to “ActionScript 3.0 Tween and Fade Control Part II”


Trackbacks/Pingbacks

  1. … [Trackback]…

    [...]I am no longer certain the place you’re getting your information, but great topic.[...]…

  2. buy list says:

    Yahoo results…

    While browsing Yahoo I found this page in the results and I didn’t think it fit…

  3. ab346368@gmail.com

    I agree with many of the points made in this article. They are made in a thoughtful and interesting manner. This is really interesting reading….

  4. …Take a look for more Information on that topic…

    [...]I am not positive where you are getting your info, however good topic.[...]…

  5. trackback…

    learn more here…

  6. ab346368@gmail.com

    I would be interested in other articles you have written. Your views in this content has sparked my curiosity and I think a lot like you. I will keep coming back for more great information….

  7. ab346368@gmail.com

    This article confirms that there are prize worthy-writers out there willing and able to take the time to research their articles and share them with others. Thank you for sharing….

  8. ab346368@gmail.com

    I enjoy reading well-written quality articles like this. There’s no mistaking your unique ideas because you have made them so very clear to the reader. I hope I can read more from you very soon….

  9. …Awesome website…

    [...]Nice blog here! Also your website lots up fast![...]…

  10. Look there for more:…

    [...]Nice blog here! Also your website lots up fast![...]…

  11. yummyoxbrain says:

    ab346368@gmail.com

    This article validates that there are conscientious writers who do their homework before writing. You have great insight in this subject matter. I respect that….

  12. click here says:

    click here…

    watch here…

  13. ab346368@gmail.com

    I am very interested in this article you have written. I would like to know if you have more information on this subject like this one. You have shown here that you have vast knowledge….

  14. coupon says:

    ab346368@gmail.com

    Content like this is a good example of properly written informational material It’s easy to read and the points are stated in an intelligent way….

  15. Look there for more:…

    [...]Wow, amazing blog layout! How long have you been blogging for?[...]…

  16. Websites worth visiting…

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……

  17. This Site says:

    great info…

    look at here now…

  18. yahoodsl says:

    …For further Information click here…

    [...]Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely useful for me.[...]…

  19. ActionScript 3.0 Tween and Fade Control Part II…

    [...] What host are you using? Can I am getting your associate link on your host? I want site loaded up as fast as yours lol[...]…

  20. ActionScript 3.0 Tween and Fade Control Part II…

    [...] What host are you the use of? Can I am getting your associate link for your host? I desire my website loaded up as fast as yours lol[...]…

  21. ab346368@gmail.com

    I agree with many of the points made in this article. They are made in a thoughtful and interesting manner. This is really interesting reading….

  22. ab346368@gmail.com

    Good writers are very difficult to find. You have done a great job in finding such an asset and given the freedom to express different views on this interesting subject….

  23. Hellboy XX says:

    ab346368@gmail.com

    Not too many writers could make this material interesting, but you managed it. I enjoyed reading your thoughts and ideas. I agree with much of what you have written here….

  24. ab346368@gmail.com

    It’s about time someone submitted an article on this topic that makes sense. Most articles I’ve read on this subject have been boring and confusing at best. You did well….

  25. ab346368@gmail.com

    You must have a lot of patience to research, plan and write this kind of solid information. Your article has several good observations with which I can relate. Thank you….

  26. ab346368@gmail.com

    Your article contains valid and informative views with which I can relate. You have certainly done your homework which is proven by reading your content….

  27. error 1606 says:

    ab346368@gmail.com

    It’s a change of pace for me to find refreshing content. You captured my attention with this content. You’ve written an informative and interesting article with really good original content….

  28. ab346368@gmail.com

    I have found your article very informative and interesting. I appreciate your points of view and I agree with so many. You’ve done a great job with making this clear enough for anyone to understand….

  29. fizyka says:

    ab346368@gmail.com

    Anytime I see great content I just have to say something. You have written an informational article with unique views and interesting content. It doesn’t get any better than this….

  30. Installation says:

    ab346368@gmail.com

    You’ve gone to a lot of effort doing your homework with this article and it shows. More writers should take the time to get their point across in a clear and concise way. Thank you….

  31. ab346368@gmail.com

    This article is an appealing wealth of informative data that is interesting and well-written. I commend your hard work on this and thank you for this information. You’ve got what it takes to get attention….

  32. ab346368@gmail.com

    Good to be visiting your websiteblog again, it has been weeks for me. Well this is the article that i’ve been waiting for so long. I can use this article to end my assignment in the college, and it has same topic like your post. Regards, excellent sha…

  33. ab346368@gmail.com

    This article is a great example of good quality content. It’s a well-written, interesting article that…

  34. medexsupply says:

    ab346368@gmail.com

    You are a very persuasive writer. I can see this in your article. You have a way of writing compelling information that sparks much interest….

  35. ab346368@gmail.com

    This article is loaded with useful information. You’ve really provoked my interest on many points written here. I concur with nearly all points and am thinking on the rest. Thank you for a great article….

  36. ab346368@gmail.com

    Your article is the most impressive I have read on this subject in many years. It’s a refreshing twist. I like your point of view….

  37. tatuaggi says:

    Title…

    Man that was odd. I just wrote an extremely detailed comment but after I clicked send my comment didn’t show up. Hmmm… well I’m not writing all that again. Anyways, just wanted to say fantastic blog!…

  38. audacity says:

    xs free download…

    [...]frostwire, ares, Sites of interest we have a link to[...]……

  39. …Visitor recommendations…

    [...]The overall look of your website is excellent, let neatly as the content material![...]…

  40. SEO Company says:

    Title…

    Wow, I’m so happy that I clicked on this page, great info here! Better than http://facebook.com!…

Leave a Reply

You must be logged in to post a comment.

My name is Avraham Saltoun, and I live in Jerusalem, Middle East. I am currently on my mid  40's and I am a computer programming technician. Here you will find over one hundred quality video tutorials on Actionscript, and yes, I give online support for aspiring programmers, and pros as well, sharing screen on skype and delivering source code by email, click the button for live flash actionscript support now!

 
oDesk Certified Action Script Programmer
oDesk Certified Adobe Flash CS3 Designer
oDesk Certified Adobe Photoshop 6.0 Designer
Skype Me™!

$7.49 .Com! Score Savings Cartoon Smart Tutorials


839
Unique Visitors
Previous 30 Days
Powered By Google Analytics