Napisano 13 Marzec 200916 l Witam Jak widac na Stronie, chcialbym zeby mi sie ladowala podstronka o nazwie home.swf zaraz przy starcie stronki. Wszystkie podstronki ladowane sa poprzez movieClipLoader. Mozna to tez zauwazyc w gallerii gdy sie przegladnie fotke i zaraz wroci, znikaja buttony gallerii. Czy zna ktos moze strony polskie na temat flash, najlepiej fora? Tutaj kod strony: //loader_mc.contentPath = "home.swf"; extLoader_mc._visible = false; var mcLoader:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); mcLoader.addListener(myListener); myListener.onLoadProgress = function (target_mc,bytesLoaded,bytesTotal) { extLoader_mc._visible = true; var pctLoaded = Math.round(bytesLoaded/bytesTotal*100); extLoader_mc.extLoaderBar_mc._xscale = pctLoaded; if (bytesLoaded >= bytesTotal) { extLoader_mc._visible = false; } } //---------------- Loader components home_mc.onRelease = function () { //loader_mc.loadMovie("about.swf"); mcLoader.loadClip("home.swf",loader_mc); } gallery_mc.onRelease = function () { //loader_mc.loadMovie("gallery.swf"); mcLoader.loadClip("gallery.swf",loader_mc); } about_mc.onRelease = function () { //loader_mc.loadMovie("about.swf"); mcLoader.loadClip("about.swf",loader_mc); } contact_mc.onRelease = function () { //loader_mc.loadMovie("about.swf"); mcLoader.loadClip("contact.swf",loader_mc); } //---------------------- home home_mc.onRollOver = function () { home_mc.gotoAndPlay("_over"); } home_mc.onRollOut = function () { home_mc.gotoAndPlay("_out"); } //---------------------- gallery gallery_mc.onRollOver = function () { gallery_mc.gotoAndPlay("_over"); } gallery_mc.onRollOut = function () { gallery_mc.gotoAndPlay("_out"); } //--------------------- about about_mc.onRollOver = function () { about_mc.gotoAndPlay("_over"); } about_mc.onRollOut = function () { about_mc.gotoAndPlay("_out"); } //---------------------- contact contact_mc.onRollOver = function () { contact_mc.gotoAndPlay("_over"); } contact_mc.onRollOut = function () { contact_mc.gotoAndPlay("_out"); }
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto