How to properly install Caurina Tweener classes

One of the most problem that I hear is how to properly install Caurina? From 10 users 8 will ask me about this problem. I decide to show you here how we can install and what things can do this class.

What is caurina?

Tweener (caurina.transitions.Tweener) is a Class used to create tweenings and other transitions via ActionScript code for projects built on the Flash platform. In layman’s terms, Tweener helps you move things around on the screen using only code, instead of the timeline.
The general idea of a tweening Class is that dynamic animation and transitions (created by code) are easier to maintain and control, and more stable than animation based on the regular Flash timeline, since you can control it by time rather than by frames.

Where can I find this Class?

Caurina can be downloaded from this adress: http://code.google.com/p/tweener/, also in my every project I use this class, so you need to download before you start to work. I will present you 2 ways on how to install this.

First way to install Caurina

1. Unzip that archive and put the folder caurina near all your flash files.
2. Open Flash
3. Go to Edit > Preferences
4. From the left menu choose Actionscript

4. From the Actionscript panel choose ActionScript 3.0 Settings

5. From the ActionScript 3.0 panel add a new line from that “plus button” and input a simple dot “.” – you should now have something like:

6. Press Ok for 2 times and that’s it.

Second way to install Caurina(my favourite way)

The best way is to create a folder “Classes” and there a folder “as3” on your local drive (let’s say D:/) where all classes in as3 will be  – in this way you can use them anytime without moving folders or downloading.

1. Unzip that archive and put the folder caurina near all your flash files.
2. Open Flash
3. Go to Edit > Preferences
4. From the left menu choose Actionscript

4. From the Actionscript panel choose ActionScript 3.0 Settings

5. From the ActionScript 3.0 panel add a new line from that “plus button” and input the path to your as3 classes folder on local drive.You should have something like this:

6. Same press Ok for 2 times and we are good to go. Now, how do we know that it’s working or not? Let’s make a test:

Open a new as3 blank project, create a simple movieclip and give him an instance name, let’s say: “mc_name“. Open actions panel and copy these lines:
[as3]import caurina.transitions.Tweener;
Tweener.addTween(mc_name , { alpha:0, time:1 } );[/as3]
Save this file and test it (ctrl + enter). If your movieclip will became invisbile then you have Caurina installed right and you are good to go. If not, check again your class paths and make sure you do everything like here.

Thank you for your time, if you have time or this tutorial helps you, please leave me a reply.

Twitter Digg Delicious Stumbleupon Technorati Facebook

22 Responses to “How to properly install Caurina Tweener classes”

  1. Kevin Williams 11. Sep, 2010 at 7:24 am

    Thanks for the the quick tutorial..if you are doing anymore with caurina I will be sure to follow.

  2. You’re welcome Kevin, I will do some tutorials soon with Caurina.

  3. I have followed your directions to the letter and still am getting no recognition from Flash CS5 of the caurina class. The file I downloaded from the provided link contained one file, called tweener.swc

    Am I missing something still?

    Sorry to be a pain!

  4. Here it is Jamie, a swc is installed in a different way than it shows in my tutorial. Here it is the right link http://code.google.com/p/tweener/downloads/detail?name=tweener_1_33_74_as3.zip

  5. Thank you for a clear concise tut.

  6. Just because I’ve run into this problem… a lot: Creating a central repository on your machine is great if you’re the only one who will ever look at your code. If you have to share with the rest of a dev team you should keep a copy of all the classes you’re using in the same directory structure as the project. It’s pretty annoying to get someone’s code and it won’t compile, so you have to figure out what’s missing, find a copy somewhere, and install it, just to change one word. Just because you use a set of classes doesn’t mean everyone does.

    Also, if the third-party ever updates and removes/changes functionality, you might find yourself up the creek when you have to edit a project you did a year ago when the client wants an update.

    This concludes my early-morning coffee rant. Thanks for listening. 🙂

  7. Ben, you’re right, especially when you work on a project later and you want to work/keep that classes. Also, there is a problem when they launch new versions and some sintaxes are not same anymore and you have to research for them. Anyway, I agree that you have to move any classes that you use in a folder, along with your project.

  8. Very usefull article. thx

  9. Boom! took me 2 minutes to unzip, drop a copy in my flash program folder(as long as I got flash on my PC the file stays with it), update file path in my flash AS3 pref’s, Drew a Ghostie Movclip, pasted the test snippit, CTL+Enter and my ghostie evaporated into thin air! Good job man, add me to your tutorial mailing list if you got one for updates! Im just now starting with AS3 & only have basic php, c++, and VB skills. AS3 is a whole new monster for me!

  10. thanks a lot.. worth it.. saved so much of time and efforts.

  11. well done with Caurina. Could you please spicify the parameters for the class?

  12. thanq.

  13. That was a great lesson on caurina do more if you can

  14. Hey bud., i have followed all the steps u said still im getting this.. help me fix it ., this transitions is cool ., and im new to flash AS3 Scene 1, Layer ‘Layer 2’, Frame 1, Line 1 1172: Definition caurina.transitions could not be found.

  15. Hey, I think you did not set the path to classes right.

  16. Greetings sir, thanks for the tutorial! I’m totally new into AS3 so that maybe the reason for my trouble; still here it is: once I test the movie I receive an error message from Line 1 (package com.fladev.background) that states as follows [1180: Call to a possibly undefined addFrameScript method] or something like that (I have spanish version).

    Thanks

  17. Hi, you need to change from MainClass or Background extends MovieClip, not Sprite. Should be ok 😉