0% found this document useful (0 votes)
37 views7 pages

Lampiran Listing Program

The document contains code snippets from various Flash files related to an educational software project. The code loads configuration files, checks registration, plays sounds and movies, handles button clicks and drag-and-drop, and more. Overall it shows the technical implementation of interactive elements, media, and navigation in the educational software.

Uploaded by

Heri Nurdianto
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views7 pages

Lampiran Listing Program

The document contains code snippets from various Flash files related to an educational software project. The code loads configuration files, checks registration, plays sounds and movies, handles button clicks and drag-and-drop, and more. Overall it shows the technical implementation of interactive elements, media, and navigation in the educational software.

Uploaded by

Heri Nurdianto
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

1. Project.

fla scene 1 layer 1 frame 1


stop(); fscommand("fullscreen","true"); fscommand("showmenu","false"); var status = 0; var mytitle = new LoadVars(); mytitle.onLoad = function(ok) { if (ok) { txttitle = mytitle.title; } else { alert = "file not found"; } }; mytitle.load("ket/config.txt"); var myvalid = new LoadVars(); myvalid.onLoad = function(ok) { if (ok) { valid = myvalid.sn; alert = "Klik pada komputer untuk masuk sistem"; } else { alert = "System not register"; } }; myvalid.load("ket/serial.txt"); _root.mc_komp.onRelease = function() { reg = "L1S4-2006-FLA0-EBC9"; if (valid != null and valid == reg) { status = 1; mysound1.stop(); nextScene(); } else { alert = "System not register"; } }; mysound1 = new Sound("_root.mc_presnd"); mysound1.attachSound("awal"); mysound1.start(0, 9999); mysound1.setVolume(60);

2. Project.fla scene 2 layer 1 frame 1

stop(); mysound1 = new Sound("_root.mc_presnd"); mysound1.attachSound("soundmain"); mysound1.start(0, 9999); mysound1.setVolume(50); if (status == 1) { loadMovie("home.swf", "_root.mc_view"); _root.mc_navi.btnhome.onRelease = function() { _root.mc_navi.mc_arm.play(); _root.mc_main.play(); loadMovie("home.swf", "_root.mc_view");

}; _root.mc_navi.btnteori.onRelease = function() { _root.mc_navi.mc_arm.play(); _root.mc_main.play(); loadMovie("teori.swf", "_root.mc_view"); }; _root.mc_navi.btnpanduan.onRelease = function() { _root.mc_navi.mc_arm.play(); _root.mc_main.play(); loadMovie("prosedur.swf", "_root.mc_view"); }; _root.mc_navi.btnabout.onRelease = function() { _root.mc_navi.mc_arm.play(); _root.mc_main.play(); loadMovie("about.swf", "_root.mc_view"); }; _root.btnexit.onRelease = function() { fscommand("quit", ""); }; } else { prevScene(); }

3. Home.fla scene 1 layer 1 frame 1


System.useCodepage = true; stop(); sdhome.stop(); sdhome = new Sound("_root.mc_view.mc_presnd"); sdhome.attachSound("home"); sdhome.start();

4. Home.fla scene 1layer 2 objek movieclip txtStyle2-2


onClipEvent(load){ this.loadVariables("ket/preface.txt"); } onClipEvent(data){ textStyle2=pre; }

5. Teori.fla scene 1 layer 1 frame 1


System.useCodepage = true; stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/hmteori.mp3",true); thome.start(); thome.setVolume(100); this.btncairan.onRelease = function() { gotoAndStop(2); }; this.btnvena.onRelease = function() { gotoAndStop(3); }

6. Teori.fla scene 1 layer 1 frame 2


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/tcairan.mp3", true); thome.start(); _root.ket.html = true; loadVariables("ket/ket_cairan.txt", "_root.ket"); loadMovie("distribusicairan.swf", "mc_view");

7. Teori.fla scene 1 layer 1 frame 3


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/tintravena.mp3", true); thome.start(); this.ket.html = true; loadMovie("", "mc_view"); loadVariables("ket/ket_intravena.txt", "_root.ket");

8. Teori.fla scene 1 layer 3 frame 2 objek txtStyle2-2


onClipEvent (load) { this.loadVariables("ket/ket_cairan.txt"); } onClipEvent (data) { textStyle2 = ket; }

9. Teori.fla scene 1 layer 3 frame 3 objek txtStyle2-2


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/tintravena.mp3", true); thome.start(); this.ket.html = true; loadMovie("", "mc_view"); loadVariables("ket/ket_intravena.txt", "_root.ket");

10. Prosedur.fla scene 1 layer 1 frame 1


System.useCodepage = true; stop(); _root.mc_view.txtpre.setStyle("borderStyle", "none"); _root.mc_view.txtpre.editable = false; this.btntahap.onRelease = function() { _root.mysound1.stop(); _root.mysound1.start(0, 9999); gotoAndStop(2); }; this.btnvideo.onRelease = function() { _root.mysound1.stop(); gotoAndStop(3); }; this.btnperaga.onRelease = function() { _root.mysound1.stop();

_root.mysound1.start(0, 9999); gotoAndStop(4); }; thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/hmprosedur.mp3", true); thome.start(); thome.setVolume(100);

11. Prosedur.fla scene 1 layer 1 frame 2


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/tahapkerja.mp3", true); thome.start(); thome.setVolume(100);

12. Prosedur.fla scene 1 layer 1 frame 3


stop(); loadMovie("video/video.swf", "_root.mc_view.mc_view"); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/video.mp3", true); thome.start(); thome.setVolume(100);

13. Prosedur.fla scene 1 layer 1 frame 4

stop(); loadMovie("tangan.swf", "_root.mc_view.mc_view"); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/peraga.mp3", true); thome.start(); thome.setVolume(100);

14. Penampang.fla scene 1 layer 1 frame 1


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_view.mc_snd"); thome.loadSound("./sound/penampang1a.mp3",true); thome.start(); thome.setVolume(100);

15. Penampang.fla scene 1 layer 1 frame 2


stop(); thome.stop(); thome = new Sound("_root.mc_view.mc_view.mc_snd"); thome.loadSound("./sound/penampang2.mp3",true); thome.start(); thome.setVolume(100);

16. Tangan.fla scene 1 layer 2 frame 1 objek mc_suntik


on (press) { this.startDrag(true);

} on (release) { this.stopDrag(true); }

17. Tangan.fla scene 1 layer 2 frame 1 objek mc_ban


on (press) { this.startDrag(true); } on (release) { this.stopDrag(true); }

18. Tangan.fla scene 1 layer 2 frame 1 objek mc_ket1


on (rollOver) { this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); }

19. Tangan.fla scene 1 layer 2 frame 1 objek mc_ket2


on (rollOver) { this.gotoAndStop(3); } on (rollOut) { this.gotoAndStop(1); }

20. Tangan.fla scene 1 layer 2 frame 1 objek slide layer 1

onClipEvent (load) { top = this._y; left = this._x; right = this._x+250; bottom = this._y; _root.mc_view.mc_view.mc_tangan.mc_kulit._Alpha = 90; _root.mc_view.mc_view.mc_telapak.mc_kulit2._Alpha = 90; } onClipEvent (enterFrame) { if (dragging == true) { setProperty("_root.mc_view.mc_view.mc_tangan.mc_kulit", _alpha, (right-this._x)/2.5); setProperty("_root.mc_view.mc_view.mc_telapak.mc_kulit2", _alpha, (right-this._x)/2.5); } }

21. Video.fla scene 1 layer 1 frame 1 objek controller layer 1 frame 1


_parent.stop();

faderbackground._width = width; looping = false; playing = false; top = knob._y; bottom = knob._y; left = knob._x; faderWidth = faderbackground._width-knob._width; segmentWidth = faderWidth/_parent._totalframes; right = knob._x+faderWidth-segmentWidth+1; faderbackground._width -= (segmentWidth-1); with (backing) { _width = Math.abs(_x)+faderbackground._width+ ((_height-faderbackground._height)/2); shadow._width = _width; } _parent.onEnterFrame = function() { if (_parent._currentframe == _parent._totalframes && ! looping) { playing = false; _parent.stop(); } if (dragging) { playing = false; _parent.gotoAndStop(Math.ceil(knob._x/segmentWidth)); } else { knob._x = (_parent._currentframe*segmentWidth)segmentWidth; } playhilite._visible = playing; loophilite._visible = looping; }; // playback controls loop.onRelease = function() { loophilite._alpha = 100; }; loop.onPress = function() { looping = !looping; loophilite._alpha = 0; }; playButton.onPress = function() { playhilite._alpha = 0; }; playButton.onRelease = function() { playhilite._alpha = 100; playing = true; _parent.play(); }; playButton.onDragOut = function() { playhilite._alpha = 100; }; playButton.onDragOver = function() { playhilite._alpha = 0; }; stopButton.onRelease = function() { playing = false;

_parent.stop(); }; rewind.onRelease = function() { playing = false; _parent.gotoAndStop(1); }; stepBack.onRelease = function() { playing = false; _parent.prevFrame(); }; stepForward.onRelease = function() { playing = false; _parent.nextFrame(); }; goToEnd.onRelease = function() { playing = false; _parent.gotoAndStop(_parent._totalframes); };

22. About.fla scene 1 layer 1 frame 1


var myValid = new LoadVars(); //-----load var from serial.txt required myValid.onLoad = function(ok) { if (ok) { txtsn = myValid.id; txtowner = myValid.owner; txtdate = myValid.tgl; } }; myValid.load("ket/serial.txt"); thome.stop(); thome = new Sound("_root.mc_view.mc_snd"); thome.loadSound("./sound/about.mp3", true); thome.start(); thome.setVolume(100);

You might also like