«

»

Jul 07

Swishmax 4 Vector Scripted Iceland National Flag

Preview:

 

Open swishmax 4 on scene_1 add the following code.

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
onFrame (1) {
    /*/// Do Not Remove ///
    Iceland National flag
    by Craig Lowe
    www.loweonline.co.uk
    script © 2011 Craig Lowe
    please give credit
    */// Do Not Remove ///
    myShadow = new flash.filters.DropShadowFilter(0, 0, 0x333333, 0.50, 2, 2, 2, 15, false, false, false);
   _root.createEmptyMovieClip("rectangle_mc", 1);
   _root.createEmptyMovieClip("col1", 5);
   _root.createEmptyMovieClip("col2", 4);
   _root.createEmptyMovieClip("col3", 2);
   _root.createEmptyMovieClip("col4", 3);
rectangle_mc.beginFill(0x0000CC, 100); // background colour
rectangle_mc.lineStyle(1, 0x000000, 100);
col1.beginFill(0xFF0000, 100);
col1.lineStyle(1, 0xFF0000, 100);
col2.beginFill(0xFF0000, 100);
col2.lineStyle(1, 0xFF0000, 100);
col3.beginFill(0xFFFFFF, 100);
col3.lineStyle(1, 0xFFFFFF, 100);
col4.beginFill(0xFFFFFF, 100);
col4.lineStyle(1, 0xFFFFFF, 100);
rectangle_mc._x=50;
rectangle_mc._y=50;
rectangle_mc.filters = [myShadow];
col1._x=92;
col1._y=51;
col2._x=51;
col2._y=88;
col3._x=86;
col3._y=51;
col4._x=51;
col4._y=82;
   rectangle_mc.lineTo(150,  0);
   rectangle_mc.lineTo(150, 100);
   rectangle_mc.lineTo(  0, 100);
   rectangle_mc.lineTo(  0,  0);
   col1.lineTo(18,  0);
   col1.lineTo(18, 98);
   col1.lineTo(  0, 98);
   col1.lineTo(  0,  0);
   //
   col2.lineTo(148,  0);
   col2.lineTo(148, 18);
   col2.lineTo(  0, 18);
   col2.lineTo(  0,  0);
   //
   col3.lineTo(30,  0);
   col3.lineTo(30, 98);
   col3.lineTo(  0, 98);
   col3.lineTo(  0,  0);
   //
   col4.lineTo(148,  0);
   col4.lineTo(148, 30);
   col4.lineTo(  0, 30);
   col4.lineTo(  0,  0);
   createEmptyMovieClip("Text", 6);
Text.createTextField("myText", getNextHighestDepth(), 100/*_y*/, 160/*_y*/, 0/*width*/, 20/*height*/); 
Text.myText.border = false; 
Text.myText.html = false; 
Text.myText.autoSize = true;
Text.myText.selectable = false; 
Text.myText.text="Iceland";
}


VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Swishmax 4 Vector Scripted Iceland National Flag, 5.0 out of 5 based on 1 rating

Leave a Reply

6 visitors online now
1 guests, 5 bots, 0 members
Max visitors today: 10 at 02:47 am UTC
This month: 27 at 05-17-2013 01:24 pm UTC
This year: 39 at 01-01-2013 12:46 pm UTC
All time: 109 at 12-07-2012 11:00 pm UTC