SITE MOVING

NEW WEBSITE, I've moved everything to a new site. Its not just a blog anymore, its a full blown website.

REPEATE!: its not over just moving!

THE WEBSITE IS:
www.bxstudios.weebly.com

CHECK IT OUT FOR LOTS MORE TUTORIALS!

Welcome To Max's Flash Tutorials!

Here I will eventually post everything I know about flash. That ALOT! I am currently working on one of the best and far most interactive games I've ever made. Its called, "The Burbz RPG" and it will release some time in the summer of 08. That takes up a lot of my time but after I release the game on to the internet I will have a lot more time to write up tutorials.

Sections

Tuesday, February 26, 2008

How to use Alpha

Alpha is a function that turns an image in your flash file transparent or invisible. You may set it by turning your object into a movie clip, graphic or button. Click on it and bring up the "Properties" menu. On there, there will be a place to manually adjust the alpha or that movie clip, graphic, or button. But thats just the easy way, In this tutorial I am also going to teach you how to change it in action scripting so that it will change during the game.

The (AS) Script you will need is:
  • _root.object._alpha = 50;

Now the things you need to adjust to customize it to your personal needs is to change "object" to the Instance Name of your object. If you place the script on the object you want to use, make sure its a movie clip or button, and use "this" instead of "object". Then you change "50" to what ever transparence you want it to have. "0" is invisible, and "100" is solid.

If you want to put it on a button you will use this (AS) Script:

  • on (release) {
  • _root.object._alpha = 50;
  • }

You will need to change the same things in this one, plus where it says "release". You can change this to make it occure on "rollOver" or many other interactions of the button.

You can apply this into absolutly any different kind of script and once the program reads it, the alpha action will take place.

No comments: