timeline
![](http://www.wellness-spa.me/flash/1.jpg)
library
![](http://www.wellness-spa.me/flash/2.jpg)
code za flagRU
import flash.display.BitmapData;
import flash.filters.DisplacementMapFilter;
import flash.filters.DropShadowFilter;
import flash.filters.ColorMatrixFilter;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.geom.ColorTransform;
import de.popforge.wm2006.effect.Flag;
_quality = "LOW";
Stage.scaleMode = 'noScale';
var lib:BitmapData = BitmapData.loadBitmap('flagRU');
var outputClip: MovieClip = createEmptyMovieClip( 'outputClip', 0 );
var output: BitmapData = new BitmapData( 128, 96, true, 0 );
outputClip.attachBitmap(output,0);
outputClip.filters = [ new DropShadowFilter( 6, 60, 0, 1, 2, 2, .5, 3 ) ];
outputClip._x = ( 256 - 128 ) / 2;
outputClip._y = ( 92 - 96 ) / 2;
var flag: Flag = new Flag( lib, output );
flag.appearMoreFabric();
onEnterFrame = function(): Void
{
flag.enterFrame();
}
code za flagEN
import flash.display.BitmapData;
import flash.filters.DisplacementMapFilter;
import flash.filters.DropShadowFilter;
import flash.filters.ColorMatrixFilter;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.geom.ColorTransform;
import de.popforge.wm2006.effect.Flag;
_quality = "LOW";
Stage.scaleMode = 'noScale';
var lib:BitmapData = BitmapData.loadBitmap('flagEN');
var outputClip: MovieClip = createEmptyMovieClip( 'outputClip', 0 );
var output: BitmapData = new BitmapData( 128, 96, true, 0 );
outputClip.attachBitmap(output,0);
outputClip.filters = [ new DropShadowFilter( 6, 60, 0, 1, 2, 2, .5, 3 ) ];
outputClip._x = ( 256 - 128 ) / 2;
outputClip._y = ( 292 - 96 ) / 2;
var flag: Flag = new Flag( lib, output );
flag.appearMoreFabric();
onEnterFrame = function(): Void
{
flag.enterFrame();
}
E sad, u ova dva koda ja sam napravio izmjenu samo u ovoj liniji tj. ovo flagEN i flagRU,
var lib:BitmapData = BitmapData.loadBitmap('flagEN');
ali opet swf mi izbacuje samo jednu zastavicu, zastavicu ENGLESKE
kad obrisem lajer sa zastavicom engleske, i exporujem swf sa istim kodom radi mi ruska zastavica
evo SWF gdje radi samo animacija engleske zastavice
LINK SWF
sad me zanima, sta u ovom kodu smeta rad obje zastavice u jednom SWF fajlu, sta jos treba da promijenim u AS da bi se obije viorile? :-)