In this tutorial we’ll look at the bevel filter in Actionscript 3.0. In the example below we have the Flash Essential logo on the stage, the logo has been converted to a Movie-Clip and been exported for Actionscript. Let’s take a look at the code below;
Download File
Step 1 – Create the Effect
First we create a new instance of our logo that we created inside the Flash library, we’ll call it “logo”. We then create a new BevelFilter object called bevel, this will give us access to all the properties, methods and events of the BevelFilter class. Finally we assign the bevel filter to our logo making sure that all the properties are added to the logo.
var logo:FlashEssential = new FlashEssential();
var bevel:BevelFilter = new BevelFilter();
logo.filters = [bevel];
bevel.angle = 10;
bevel.distance = 3;
addChild(logo);
Step 2 – Adding Some Effects
Next we’ll give some angle and distance properties to the bevel, these will create the bevel. Finally we the logo to the stage by using the addChild() method
var logo:FlashEssential = new FlashEssential();
var bevel:BevelFilter = new BevelFilter();
logo.filters = [bevel];
bevel.angle = 10;
bevel.distance = 3;
addChild(logo);
This post is tagged Actionscript Filters, Bevel, Flash CS3
Share This Post
Jobs


























No Comments
Leave a Reply