|
|
|
#1 |
|
Junior Member
Join Date: May 2003
Location: greece
Posts: 8
|
i need help
i ve got problem with the action script i used. when i load an mc from my menu the levels doesn't work and it open into a new window....
heare is the action i used // Action script... // [onClipEvent of sprite 5 in frame 1] onClipEvent (load) { _root.gotoAndStop(1); if (_root.getBytesTotal() < 1000) { filesize = Math.floor(_root.getBytesTotal()) + "bytes"; } else if (_root.getBytesTotal() > 1000000) { filesize = math.floor(_root.getBytesTotal() / 1000000) + "mb"; } else { filesize = math.floor(_root.getBytesTotal() / 1000) + "kb"; } // end if } onClipEvent (enterFrame) { setProperty("bar2", _yscale, Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100)); output = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100); output2 = 100 - output; if (output == "100") { _root.gotoAndPlay(2); } // end if } // [onClipEvent of sprite 7 in frame 127] onClipEvent (load) { colore = new Color(this); trasforma = new Object(); trasforma = {rb: 0, gb: 57, bb: 61}; colore.setTransform(trasforma); col_ar = new Array(); count = 0; } onClipEvent (enterFrame) { if (cambia && count < 20) { trasforma.ra = 100; trasforma.rb = trasforma.rb + diff_ar[0] / 20; trasforma.ga = 100; trasforma.gb = trasforma.gb + diff_ar[1] / 20; trasforma.ba = 100; trasforma.bb = trasforma.bb + diff_ar[2] / 20; colore.setTransform(trasforma); count++; } // end if } // [Action in Frame 1] fscommand("allowscale", "false"); fscommand("fullscreen", "true"); stop(); // [Action in Frame 2] play(); // [Action in Frame 127] function getColor(clip) { myColor = new Color(clip); col = myColor.getTransform(); return([col.rb, col.gb, col.bb]); } // End of the function play(); // [Action in Frame 131] tellTarget("follow") { gotoAndStop("light"); } // End of TellTarget _root.mc.col_ar = getColor(_root.mc); _root.mc.rb = 0; _root.mc.gb = 57; _root.mc.bb = 61; _root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb); _root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]); _root.mc.cambia = true; _root.mc.count = 0; _root.mc.trasforma.rb = _root.mc.col_ar[0]; _root.mc.trasforma.gb = _root.mc.col_ar[1]; _root.mc.trasforma.bb = _root.mc.col_ar[2]; stop(); // [Action in Frame 136] tellTarget("follow") { gotoAndStop("dark"); } // End of TellTarget loadMovie("02_aboutme.swf", "LOADED1"); _root.mc.col_ar = getColor(_root.mc); _root.mc.rb = 222; _root.mc.gb = 255; _root.mc.bb = 255; _root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb); _root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]); _root.mc.cambia = true; _root.mc.count = 0; _root.mc.trasforma.rb = _root.mc.col_ar[0]; _root.mc.trasforma.gb = _root.mc.col_ar[1]; _root.mc.trasforma.bb = _root.mc.col_ar[2]; stop(); // [Action in Frame 141] tellTarget("follow") { gotoAndStop("dark"); } // End of TellTarget loadMovie("03_portfolio.swf", "LOADED1"); _root.mc.col_ar = getColor(_root.mc); _root.mc.rb = 255; _root.mc.gb = 245; _root.mc.bb = 204; _root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb); _root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]); _root.mc.cambia = true; _root.mc.count = 0; _root.mc.trasforma.rb = _root.mc.col_ar[0]; _root.mc.trasforma.gb = _root.mc.col_ar[1]; _root.mc.trasforma.bb = _root.mc.col_ar[2]; stop(); the action for the aboutme mc // Action script... // [onClipEvent of sprite 1 in frame 1] onClipEvent (load) { _root.LOADED1.gotoAndStop(1); if (_root.LOADED1.getBytesTotal() < 1000) { filesize = Math.floor(_root.LOADED1.getBytesTotal()) + "bytes"; } else if (_root.LOADED1.getBytesTotal() > 1000000) { filesize = math.floor(_root.LOADED1.getBytesTotal() / 1000000) + "mb"; } else { filesize = math.floor(_root.LOADED1.getBytesTotal() / 1000) + "kb"; } // end if } onClipEvent (enterFrame) { setProperty("bar2", _yscale, Math.floor(_root.LOADED1.getBytesLoaded() / _root.LOADED1.getBytesTotal() * 100)); output = Math.floor(_root.LOADED1.getBytesLoaded() / _root.LOADED1.getBytesTotal() * 100); output2 = 100 - output; if (output == "100") { _root.LOADED1.gotoAndPlay(2); } // end if } // [onClipEvent of sprite 16 in frame 131] onClipEvent (load) { var a = 15; var d = 1.200000; var myXspeedpro = 0; var myXspeedskil = 0; var myXspeedsoft = 0; var myXspeededu = 0; var myXspeedemp = 0; var myXspeedserv = 0; } onClipEvent (enterFrame) { myXspeedpro = ((_root.LOADED1.pro._x - prox) / a + myXspeedpro) / d; myXspeedskil = ((_root.LOADED1.skil._x - skilx) / a + myXspeedskil) / d; myXspeedsoft = ((_root.LOADED1.soft._x - softx) / a + myXspeedsoft) / d; myXspeededu = ((_root.LOADED1.edu._x - edux) / a + myXspeededu) / d; myXspeedemp = ((_root.LOADED1.emp._x - empx) / a + myXspeedemp) / d; myXspeedserv = ((_root.LOADED1.serv._x - servx) / a + myXspeedserv) / d; _root.LOADED1.pro._x = _root.LOADED1.pro._x - myXspeedpro; _root.LOADED1.skil._x = _root.LOADED1.skil._x - myXspeedskil; _root.LOADED1.soft._x = _root.LOADED1.soft._x - myXspeedsoft; _root.LOADED1.edu._x = _root.LOADED1.edu._x - myXspeededu; _root.LOADED1.emp._x = _root.LOADED1.emp._x - myXspeedemp; _root.LOADED1.serv._x = _root.LOADED1.serv._x - myXspeedserv; } // [Action in Frame 1] stop(); // [Action in Frame 2] tellTarget("_level0/loader") { gotoAndStop("off"); } // End of TellTarget play(); // [Action in Frame 131] _root.LOADED1.actions.prox = 120; _root.LOADED1.actions.skilx = 120; _root.LOADED1.actions.softx = 120; _root.LOADED1.actions.edux = 120; _root.LOADED1.actions.empx = 120; _root.LOADED1.actions.servx = 120; play(); // [Action in Frame 134] stop(); // [Action in Frame 135] loadMovieNum("02_about_pro.swf", 0/LOADED1/LOADED2); stop(); heare i ve got the problem with this links // Action script... // [onClipEvent of sprite 1 in frame 1] onClipEvent (load) { _root.gotoAndStop(1); if (_root.getBytesTotal() < 1000) { filesize = Math.floor(_root.getBytesTotal()) + "bytes"; } else if (_root.getBytesTotal() > 1000000) { filesize = math.floor(_root.getBytesTotal() / 1000000) + "mb"; } else { filesize = math.floor(_root.getBytesTotal() / 1000) + "kb"; } // end if } onClipEvent (enterFrame) { setProperty("bar2", _yscale, Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100)); output = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100); output2 = 100 - output; if (output == "100") { _root.gotoAndPlay(2); } // end if } // [onClipEvent of sprite 10 in frame 21] onClipEvent (load) { var a = 15; var d = 1.300000; var myXspeedb01 = 0; var myXspeedb02 = 0; var myXspeedb03 = 0; var myXspeedb04 = 0; var myXspeedb05 = 0; } onClipEvent (enterFrame) { myXspeedb01 = ((_root.b01._x - b01x) / a + myXspeedb01) / d; myXspeedb02 = ((_root.b02._x - b02x) / a + myXspeedb02) / d; myXspeedb03 = ((_root.b03._x - b03x) / a + myXspeedb03) / d; myXspeedb04 = ((_root.b04._x - b04x) / a + myXspeedb04) / d; myXspeedb05 = ((_root.b05._x - b05x) / a + myXspeedb05) / d; _root.b01._x = _root.b01._x - myXspeedb01; _root.b02._x = _root.b02._x - myXspeedb02; _root.b03._x = _root.b03._x - myXspeedb03; _root.b04._x = _root.b04._x - myXspeedb04; _root.b05._x = _root.b05._x - myXspeedb05; } // [Action in Frame 1] stop(); // [Action in Frame 2] tellTarget("_level0/LOADED1/loader") { gotoAndStop("off"); } // End of TellTarget play(); // [Action in Frame 21] _root..actions.b01x = 324; _root..actions.b02x = 348; _root..actions.b03x = 372; _root..actions.b04x = 396; _root..actions.b05x = 0; play(); // [Action in Frame 25] stop(); |
|
|
|
|
|
#3 |
|
XRave
Join Date: Apr 2005
Location: Somewhere near Here
Posts: 868
|
Agrees here, it nearly exploded my head mind.
__________________
When you actually know what "OMG I have so much homework!" means, you won't want to be me. Xrave |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|