Frame 1
movWidth = int("115");
movHeight = int("85");
Set("/preLoader:kb", "32" add "Kb");
setProperty("/preLoader", _x , "1");
setProperty("/preLoader", _y , "1");
Frame 10
ifFrameLoaded (25) {
gotoAndPlay (21);
}
Frame 20
gotoAndPlay (10);
Frame 21
preview = "0";
if (preview == "1") {
color = int("color");
movWidth = "300";
movHeight = "200";
logoOn = "false";
setProperty("/borderX", _xscale , movWidth);
setProperty("/borderY", _yscale , movHeight);
totalBut = "7";
text1 = "Your Text+kjaskjakjs+kajskjaskj";
text2 = "Here !!!";
text3 = "Jkldttggspp";
text4 = "coucoucou";
text5 = "jkksppLLag";
text6 = "Real text dtat";
url1 = "http://www.freebuttons.com/toolbargen.html";
url2 = "coucoucouc";
url3 = "Jkldttggspp";
target1 = "Allo1";
target2 = "target2";
target3 = "Allo3";
} else {
setProperty("/borderX", _visible , "0");
setProperty("/borderY", _visible , "0");
color = int("7");
movWidth = int("115");
movHeight = int("85");
logoOn = "";
if (logoOn ne "false") {
logoOn = "true";
}
totalBut = int("4");
url1 = "index.html";
url2 = "story.html";
url3 = "gallery.html";
url4 = "contact.html";
url5 = "";
url6 = "";
url7 = "";
url8 = "";
url9 = "";
url10 = "";
url11 = "";
url12 = "";
url13 = "";
url14 = "";
url15 = "";
url16 = "";
url17 = "";
url18 = "";
url19 = "";
url20 = "";
url21 = "";
url22 = "";
url23 = "";
url24 = "";
url25 = "";
url26 = "";
url27 = "";
url28 = "";
url29 = "";
url30 = "";
text1 = "Home";
text2 = "The Story";
text3 = "Gallery";
text4 = "Contact";
text5 = "";
text6 = "";
text7 = "";
text8 = "";
text9 = "";
text10 = "";
text11 = "";
text12 = "";
text13 = "";
text14 = "";
text15 = "";
text16 = "";
text17 = "";
text18 = "";
text19 = "";
text20 = "";
text21 = "";
text22 = "";
text23 = "";
text24 = "";
text25 = "";
text26 = "";
text27 = "";
text28 = "";
text29 = "";
text30 = "";
target1 = "_self";
target2 = "_self";
target3 = "_self";
target4 = "_self";
target5 = "";
target6 = "";
target7 = "";
target8 = "";
target9 = "";
target10 = "";
target11 = "";
target12 = "";
target13 = "";
target14 = "";
target15 = "";
target16 = "";
target17 = "";
target18 = "";
target19 = "";
target20 = "";
target21 = "";
target22 = "";
target23 = "";
target24 = "";
target25 = "";
target26 = "";
target27 = "";
target28 = "";
target29 = "";
target30 = "";
}
Frame 25
if (movHeight < movWidth) {
style = "Horizontal";
} else {
style = "Vertical";
}
butWidth = int(getProperty("/Button", _width));
butHeight = int(getProperty("/Button", _height));
butPerLines = int(movWidth / (butWidth + hSpacing));
if (butPerLines < "1") {
butPerLines = "1";
}
i = "1";
pos = "1";
line = "1";
while (totalBut >= i) {
if ((butPerLines * line) < i) {
line = line + "1";
pos = "1";
}
duplicateMovieClip ("/Button", "Button" add i, i);
setProperty("/Button" add i, _x , ((butWidth * (pos - "1")) + (hSpacing * (pos - "1"))) + xStart);
setProperty("/Button" add i, _y , ((butHeight * (line - "1")) + (vSpacing * (line - "1"))) + yStart);
Set(("/Button" add i) add ":ButText", eval ("_level0/:text" add i));
Set(("/Button" add i) add ":Address", eval ("_level0/:URL" add i));
Set(("/Button" add i) add ":ButTarget", eval ("_level0/:target" add i));
Set(("/Button" add i) add ":Id", i);
i = i + "1";
pos = pos + "1";
}
if (logoOn eq "true") {
duplicateMovieClip ("/Logo1", "Logo", i);
logoHeight = getProperty("/Logo", _height);
logoWidth = "95";
logoVSpacing = "2";
lastButY = ((butHeight * (line - "1")) + (vSpacing * (line - "1"))) + yStart;
if (style eq "Vertical") {
setProperty("/Logo", _x , int((movWidth - logoWidth) / "2") + "1");
setProperty("/Logo", _y , (lastButY + butHeight) + logoVSpacing);
} else if (pos == (butPerLines + "1")) {
setProperty("/Logo", _x , int((movWidth - logoWidth) / "2"));
setProperty("/Logo", _y , (lastButY + butHeight) + logoVSpacing);
} else {
nextButX = ((butWidth * (pos - "1")) + (hSpacing * (pos - "1"))) + xStart;
prevLineY = ((butHeight * (line - "2")) + (vSpacing * (line - "2"))) + yStart;
setProperty("/Logo", _x , int((nextButX + ((movWidth - nextButX) / "2")) - (logoWidth / "2")));
setProperty("/Logo", _y , (prevLineY + butHeight) + logoVSpacing);
}
}
stop();
Symbol 21 MovieClip Frame 1
gotoAndStop(/:color);
Symbol 14 MovieClip Frame 1
gotoAndStop(/:color);
Symbol 24 Button
on (release) {
getURL (Address, ButTarget);
}
on (rollOut) {
gotoAndPlay (10);
}
Symbol 26 MovieClip Frame 1
Set("/:xStart", "1");
Set("/:yStart", "1");
Set("/:vSpacing", -"1");
Set("/:hSpacing", "0");
if (/:color == "0") {
Set("/:color", "60");
}
stop();
Symbol 35 Button
on (release) {
getURL ("http://www.flashbuttons.com", "_top");
}
Symbol 39 Button
on (releaseOutside) {
duplicateMovieClip ("/debugArea1", "debugArea", "30");
setProperty("/debugArea", _x , "1");
setProperty("/debugArea", _y , "1");
Set("/debugArea:debug", ((((("Width: " add /:movWidth) add chr("13")) add "Height: ") add /:movHeight) add chr("13")) add chr("13"));
i = "1";
while (totalBut >= i) {
Set("/debugArea:debug", (/debugArea:debug add eval ("_level0/:text" add i)) add chr("13"));
i = i + "1";
}
Set("/debugArea:debug", /debugArea:debug add chr("13"));
i = "1";
while (totalBut >= i) {
Set("/debugArea:debug", (/debugArea:debug add eval ("_level0/:URL" add i)) add chr("13"));
i = i + "1";
}
Set("/debugArea:debug", /debugArea:debug add chr("13"));
i = "1";
while (totalBut >= i) {
Set("/debugArea:debug", (/debugArea:debug add eval ("_level0/:target" add i)) add chr("13"));
i = i + "1";
}
Set("/debugArea:debug", (((((((/debugArea:debug add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13"));
}
on (release) {
duplicateMovieClip ("/debugArea1", "debugArea", "30");
setProperty("/debugArea", _x , "1");
setProperty("/debugArea", _y , "1");
Set("/debugArea:debug", ((((("Width: " add /:movWidth) add chr("13")) add "Height: ") add /:movHeight) add chr("13")) add chr("13"));
i = "1";
while (totalBut >= i) {
Set("/debugArea:debug", ((((((((((/debugArea:debug add "----Button ") add i) add "----") add chr("13")) add eval ("_level0/:text" add i)) add chr("13")) add eval ("_level0/:URL" add i)) add chr("13")) add eval ("_level0/:target" add i)) add chr("13")) add chr("13"));
i = i + "1";
}
Set("/debugArea:debug", (((((((/debugArea:debug add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13")) add chr("13"));
}
Symbol 41 MovieClip Frame 1
stop();