View Full Version : animated flags
eggnogg
02-02-2006, 03:32 AM
does anybody know where i can get a couple of flash animated flags? for free preferably =)
EDIT: not flash but pretty good gifs ->
www.atlasgeo.net (http://www.atlasgeo.net/flags/Eindex.htm)
You can create animated flags using DisplacementMap in Flash 8
veggie1232
02-04-2006, 07:47 PM
hey are there any tutorials on that because where is it?
heres a rough idea
http://www.langwij.co.uk/tink/flag.html
import flash.display.BitmapData
import flash.filters.DisplacementMapFilter
import flash.geom.Point;
var map:BitmapData = new BitmapData( this.flag._width + 10 , this.flag._height + 50);
var displacement:DisplacementMapFilter = new DisplacementMapFilter( this.map , new Point() , null , 1 , 0 , 40 , "COLOR" );
var gradientMap:MovieClip = this.createEmptyMovieClip("gradientMap", this.getNextHighestDepth());
this.gradientMap._x = 10;
this.gradientMap._y = 10;
this.gradientMap._visible = false;
var gradient0:MovieClip = this.gradientMap.attachMovie("gradient", "gradient0", this.gradientMap.getNextHighestDepth());
var gradient1:MovieClip = this.gradientMap.attachMovie("gradient", "gradient1", this.gradientMap.getNextHighestDepth());
this.gradient1._x = gradient0._width;
var speed:Number = 10;
this.onEnterFrame = function()
{
this.gradient0._x = ((this.gradient0._x - speed) < -this.gradient0._width) ? this.gradient0._x = gradient1._x + gradient1._width - 2 : this.gradient0._x - speed;
this.gradient1._x = ((this.gradient1._x - speed) < -this.gradient1._width) ? this.gradient1._x = gradient0._x + gradient0._width : this.gradient1._x - speed;
map.draw(gradientMap);
//trace(map);
flag.filters = [ displacement ];
}
www.langwij.co.uk/tink/flag.zip
oldnewbie
02-04-2006, 11:33 PM
Your link is dead!
Your link is dead!bugger
sorted it now
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.