hey!
tak wiec temat jest podobny jak kiedys , ale teraz mam dosc fajne menu zrobione w duzej czesci w action skrytpach, no i problem jest wlasnie tego typu : jak przeskoczyc za pomaca przycisku do danej klatki.
TYle ze tu mam sterujacy skrypt moim menu wyglodajacy tak:
// ------------------ Constants : means this type of variables that will not be changed during the read of the script but will used by the script.
// ------------------ A part of constants is loaded from an external ".txt" file. It's all the part about number/labels of rubs & sub rubs. So, it allows you to modify them in the txt file directly WITHOUT open the .FLA file...
HeightRub = getProperty("Rub", _height);
HSousRub = getProperty("SubRub", _height);
setProperty ("Rub", _visible, 0);
setProperty ("SubRub", _visible, 0);
setProperty ("Bottom", _visible, 0);
setProperty ("Border", _visible, 0);
// ------------------------------
// Modify your parameters here
// ------------------------------
ClosingSpeed = 10;
OpeningSpeed = 10;
TotalRubs = 8;
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub1 = "Sprzęt";
URLrub1 = "sprzet.html";
Frame_TargetRub1 = "main";
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub2 = "Oprogramowanie";
TotalSousRub_Rub2 = "3";
LabelRub2_subrub1 = "np.programy";
URLrub2_subrub1 = "programy.html";
LabelRub2_subrub2 = "np.gry";
URLrub2_subrub2 = "gry.html";
LabelRub2_subrub3 = "inne";
URLrub2_subrub3 = "inne.html";
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub3 = "Flash Art";
URLrub2 = "http://www.montfort-sa.fr";
TotalSousRub_Rub3 = "3";
LabelRub3_subrub1 = "Scripting";
URLrub3_subrub1 = "http://www.montfort-sa.fr";
LabelRub3_subrub2 = "Movies";
URLrub3_subrub2 = "http://www.montfort-sa.fr";
LabelRub3_subrub3 = "Games";
URLrub3_subrub3 = "http://www.montfort-sa.fr";
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub4 = "Download";
URLrub3 = "http://www.montfort-sa.fr";
TotalSousRub_Rub4 = "4";
LabelRub4_subrub1 = "Tools";
URLrub4_subrub1 = "http://www.arnet.fr";
LabelRub4_subrub2 = "Pictures";
URLrub4_subrub2 = "http://www.arnet.fr";
LabelRub4_subrub3 = "Sounds";
URLrub4_subrub3 = "http://www.arnet.fr";
LabelRub4_subrub4 = "Skins";
URLrub4_subrub4 = "http://www.arnet.fr";
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub5 = "Links";
URLrub5 = "http://www.arnet.fr";
TotalSousRub_Rub5 = "5";
LabelRub5_subrub1 = "Web Design";
URLrub5_subrub1 = "http://www.arnet.fr";
LabelRub5_subrub2 = "Tutorials";
URLrub5_subrub2 = "http://www.arnet.fr";
LabelRub5_subrub3 = "Sounds";
URLrub5_subrub3 = "http://www.arnet.fr";
LabelRub5_subrub4 = "Games";
URLrub5_subrub4 = "http://www.arnet.fr";
LabelRub5_subrub5 = "Scripting";
URLrub5_subrub5 = "http://www.arnet.fr";
// ::::::::::::::::::::::::::::::::::::::::::::::::
LabelRub6 = "Forum";
LabelRub7 = "Forum";
LabelRub8 = "Forum";
// etc......
// ------------------------------
moim pytaniem jest , jak zrobic by w miejscu
np. URLrub5_subrub5 = "http://www.arnet.fr"; wstawic konretna klatke?
czy moze mam kolejne klatki zapisywac jako obiekty typu html, lub fla i je wywolywac? jesli tak to jak zrobic by otwieraly sie w tym samym okienku co storna glowna???
pozdroo
ps. wybaczcie moze to banalny problem ,ale ja zaczynam przygode z flashem ;]
[Problem]Przycisk przechodzący do konkretnej klatki-ponownie
Re: [Problem]Przycisk przechodzący do konkretnej klatki-ponownie
URLrub5_subrub5 jest zmienną przechowującą adres WWW, który jest wykorzystywany w jakimż przycisku w ten sposób:
musisz odnaleźć tę linie kodu i zmienić na:
Kod: Zaznacz cały
getURL(URLrub5_subrub5);Kod: Zaznacz cały
gotoAndPlay("numer lub nazwa klatki");
// lub
gotoAndStop("numer lub nazwa klatki");Re: [Problem]Przycisk przechodzący do konkretnej klatki-ponownie
Adres nie jest w ten sposób wywoływany to jest przypisanie stringa do zmiennej musisz mieć akcje getURL, szukaj.
Re: [Problem]Przycisk przechodzący do konkretnej klatki-ponownie
wyslalem CI pliki na mejla, moze uda CI sie cos z tym zrobic ;]
zamiescilem plik
na stronce znajomego zamiescilem plik "home1_menu.fla "
tak wiec mozna sciagac w celu naprawy, mam nadzieje ze komuś sie uda;]
tak wiec mozna sciagac w celu naprawy, mam nadzieje ze komuś sie uda;]
hehe
no zapomanilem podac adres hehe wiec teraz podaje :
http://www.kpopowski.w.tkb.pl/download.html pliczek tak jak wyzej ;]
i co nikt nie ma pomyslow?
czy to jest tak trudne czy moze nie wykonalne ?::P
http://www.kpopowski.w.tkb.pl/download.html pliczek tak jak wyzej ;]
i co nikt nie ma pomyslow?
czy to jest tak trudne czy moze nie wykonalne ?::P