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!
// 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




February 5th, 2012 at 11:59 am
http://www.socializr.com/event/101075944
February 5th, 2012 at 12:43 pm
Hi there! Do you use Twitter? I’d like to follow you if that would be ok. I’m definitely enjoying your blog and look forward to new updates. kredit mit sofortzusage
February 5th, 2012 at 12:56 pm
http://www.dailystrength.org/people/1332254/journal
February 5th, 2012 at 2:23 pm
Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and all. Nevertheless just imagine if you added some great visuals or video clips to give your posts more, “pop”! Your content is excellent but with images and video clips, this site could definitely be one of the very best in its field. Superb blog! sofortkredit ohne schufa
February 5th, 2012 at 2:40 pm
We are a group of volunteers and opening a brand new scheme in our community. Your site provided us with helpful info to paintings on. You’ve done an impressive activity and our entire group can be thankful to you.
February 5th, 2012 at 2:43 pm
My brother recommended I might like this web site. He was once entirely right. This put up actually made my day. You can not imagine simply how a lot time I had spent for this information! Thanks!
February 5th, 2012 at 2:51 pm
It’s an awesome paragraph in favor of all the internet visitors; they will take benefit from it I am sure.
February 5th, 2012 at 4:50 pm
I’m really enjoying the theme/design of your website. Do you ever run into any browser compatibility problems? A couple of my blog readers have complained about my blog not operating correctly in Explorer but looks great in Chrome. Do you have any solutions to help fix this issue? zinsrechnung formel
February 5th, 2012 at 5:48 pm
Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say fantastic blog! haus finanzieren
February 5th, 2012 at 6:10 pm
http://enriquekline49.insanejournal.com/450.html
February 5th, 2012 at 6:25 pm
i really hav no idea..
February 5th, 2012 at 8:10 pm
Hi would you mind sharing which blog platform you’re working with? I’m going to start my own blog soon but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique. P.S Sorry for being off-topic but I had to ask! privatkredit vergleich
February 5th, 2012 at 8:15 pm
comment3, Cialis buy, 22967,
February 5th, 2012 at 8:51 pm
Have you ever considered creating an e-book or guest authoring on other websites? I have a blog centered on the same ideas you discuss and would love to have you share some stories/information. I know my audience would appreciate your work. If you’re even remotely interested, feel free to send me an e-mail. hypnose abnehmen
February 5th, 2012 at 9:41 pm
are valued, it creates
February 5th, 2012 at 9:51 pm
I don’t know whether it’s just me or if perhaps everyone else experiencing issues with your blog. It appears like some of the text within your content are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well? This may be a problem with my web browser because I’ve had this happen before. Kudos haftpflichtversicherung preisvergelich
February 5th, 2012 at 10:37 pm
http://www.quechup.com/blog/entry/view/id/912864
February 5th, 2012 at 10:41 pm
I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100% positive. Any suggestions or advice would be greatly appreciated. Cheers immobilienkreditrechner
February 5th, 2012 at 11:13 pm
http://pikavippi222.wordpress.com/2012/02/03/diskursseissa-nayttaytya-esille-toimenpiteet/
February 5th, 2012 at 11:30 pm
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three e-mails with the same comment. Is there any way you can remove me from that service? Thank you! rechtsschutzversicherung ohne wartezeit
February 6th, 2012 at 12:12 am
I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this from. kudos rezepte ohne kohlenhydrate
February 6th, 2012 at 12:15 am
http://stephenwest614.posterous.com/are-you-currently-a-potential-customer-lookin
February 6th, 2012 at 12:57 am
We absolutely love your blog and find many of your post’s to be just what I’m looking for. Does one offer guest writers to write content for you? I wouldn’t mind composing a post or elaborating on most of the subjects you write in relation to here. Again, awesome web log! stoffwechsel anregen
February 6th, 2012 at 1:47 am
I was curious if you ever thought of changing the layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 pictures. Maybe you could space it out better? zinsrechner online
February 6th, 2012 at 2:50 am
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your website? My website is in the exact same niche as yours and my users would certainly benefit from a lot of the information you provide here. Please let me know if this okay with you. Thanks a lot! hauskreditrechner
February 6th, 2012 at 3:28 am
Woah! I’m really enjoying the template/theme of this blog. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between user friendliness and visual appeal. I must say you’ve done a superb job with this. Also, the blog loads very fast for me on Safari. Exceptional Blog! verzugszinsen berechnen
February 6th, 2012 at 4:27 am
I’ve said that least 928131 times. SCK was here
February 6th, 2012 at 4:32 am
Hello! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no backup. Do you have any solutions to stop hackers? fettarme rezepte
February 6th, 2012 at 5:29 am
My spouse and I stumbled over here from a different web page and thought I should check things out. I like what I see so now i am following you. Look forward to looking at your web page again. eiweissdiaet
February 6th, 2012 at 6:14 am
Hi there! Do you know if they make any plugins to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions? fettverbrennung anregen
February 6th, 2012 at 7:23 am
Wow! This blog looks exactly like my old one! It’s on a entirely different subject but it has pretty much the same page layout and design. Outstanding choice of colors! guenstige haftpflichtversicherung
February 6th, 2012 at 7:45 am
I’ve said that least 2039484 times. SCK was here
February 6th, 2012 at 9:08 am
Awesome blog! Do you have any hints for aspiring writers? I’m hoping to start my own website soon but I’m a little lost on everything. Would you suggest starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I’m totally overwhelmed .. Any ideas? Many thanks! kreditrechner immoibilien
February 6th, 2012 at 10:08 am
hey there and thank you for your information – I’ve definitely picked up anything new from right here. I did however expertise some technical issues using this web site, since I experienced to reload the site many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and can damage your high quality score if advertising and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for a lot more of your respective intriguing content. Make sure you update this again soon..
February 6th, 2012 at 11:38 am
Hi would you mind letting me know which hosting company you’re utilizing? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot quicker then most. Can you recommend a good hosting provider at a honest price? Thanks, I appreciate it! baufinanzierungs rechner online
February 6th, 2012 at 12:44 pm
Good day! I could have sworn I’ve been to this website before but after checking through some of the post I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be bookmarking and checking back frequently! Gruener tee wirkung
February 7th, 2012 at 7:55 am
http://www.how2improvethememory.com
How to Improve the Memory
February 7th, 2012 at 2:05 pm
Hi there, just became aware of your weblog via Google, and located that it’s really informative. I am gonna be careful for brussels. I?ll appreciate in the event you proceed this in future. Numerous people will probably be benefited from your writing. Cheers!
February 7th, 2012 at 3:16 pm
Terrific post however , I was wanting to know if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little bit further. Thank you! guenstige hausratversicherung
February 7th, 2012 at 4:12 pm
Thanks for your personal marvelous posting! I genuinely enjoyed reading it, you can be a great author.I will make certain to bookmark your blog and may come back in the foreseeable future. I want to encourage you continue your great job, have a nice morning! hausratversicherung vergleich
February 7th, 2012 at 5:14 pm
Hola! I’ve been following your site for a long time now and finally got the courage to go ahead and give you a shout out from Atascocita Tx! Just wanted to mention keep up the excellent job! kohlenhydrate tabelle
February 7th, 2012 at 6:29 pm
Hey! This post could not be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this write-up to him. Fairly certain he will have a good read. Thanks for sharing! rechtsschutzversicherung preisvergleich
February 7th, 2012 at 7:14 pm
Hi there! I know this is kind of off-topic however I had to ask. Does building a well-established website such as yours require a massive amount work? I am completely new to operating a blog but I do write in my diary everyday. I’d like to start a blog so I can share my personal experience and thoughts online. Please let me know if you have any recommendations or tips for brand new aspiring bloggers. Appreciate it! stoffwechsel ankurbeln