Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
problem z dodaniem buttona do templatu
#1
witam,
mam problem z dodaniem przycisku do templatu, otoz defaultowo ma on 4... zlokoalizowalem w zrodle miejsce z buttonami, skopiowalem movie clipy i wkleilem jako nastepny button, nastepnie zmienilem nazwe (na wzor poprzednich) z item4 na item5 - dane do przyciskow wczytywane sa z pliku xml'a, ktorego kod zamieszczam w zrodle. problem w tym, ze pomimo dodania 5-tej sekcji [z numerem 5 w systemOrder] strona nie wyswietla sie poprawnie, czasami przyjmujac wartosc poprzedniego buttonu, a czasami pokazuje glowna ramke, a miast elementow i tekstow z xml'a wyswietla Undefined. sorry za takie ilosci kodu, ale mysle, ze moze to pomoc albo byc wrecz wymagane. na topie typowo action layer, pod nim label layer [to te s0 s3 itd.] oraz event source, a pod nimi wszystkie pozostale.

code xml'a
Kod:
<?xml version="1.0" encoding="iso-8859-1"?>
<content>
    <!-- general vars -->
    <section name="settings">
        <item name="textSelectable">true</item>
        <item name="copyright"><![CDATA[
WebShot © 2009 • <a href="asfunction:_root.more_click_func, privacyPolicy"> Privacy Policy</a> •
        ]]></item>
        <item name="companyName"><![CDATA[<font color="#b83287">IP Phone</font>Solutions
        ]]></item>
        <item name="slogan"><![CDATA[keeping telecom's simple]]></item>
        <item name="close_txt"><![CDATA[CLOSE WINDOW [ <font color="#b83287">X</font> ]]]></item>
        <image imageUrl="_logo.png" link="asfunction:link"/>
    </section>
    
    <!-- menu -->
<section name="menu">
<link systemOrder="1"><![CDATA[
          VOICE
]]></link>

<link systemOrder="2"><![CDATA[
       BROADBAND
]]></link>

<link systemOrder="3"><![CDATA[
       MOBILE
]]></link>

<link systemOrder="4">
<![CDATA[
     PHONE SYSTEMS
]]></link>

<link systemOrder="5">
<![CDATA[
     CONTACT US
]]></link>


</section>
    
    <!-- pages -->
    <section name="pages">
                
<page name="home">
<image imageUrl="_pic1.png" />
<image imageUrl="_pic2.png" />
<image imageUrl="_pic3.png" />

<texts>

<pageText><![CDATA[
<font color="#9c1f6e">latest</font> projects
]]></pageText>

<pageText><![CDATA[
* HIGH
]]></pageText>

<pageText><![CDATA[
* QUALITY
]]></pageText>

<pageText><![CDATA[
* SERVICES
]]></pageText>

<pageText><![CDATA[
<a href="asfunction:_root.more_click_func,3">*  <u>VIEW MORE WORKS</u></a>
]]></pageText>

<pageText><![CDATA[
<font color="#9c1f6e">Need New</font> Telephone Services?
]]></pageText>


<pageText><![CDATA[
Are you looking to get new telephone lines installed? Are you having trouble with your current provider? Does BT want a large deposit because you want to order a large amount of telephone lines?  Then look no further, IP Phone Solutions can provide these services for you.
Here at IP Phone Solutions, we can provide and provision the installation of telephone lines and we work with the key wholesale network providers to maintain them for you.
]]></pageText>


<pageText><![CDATA[
Already Have<font color="#9c1f6e"> Telephone Services?</font>
]]></pageText>

<pageText><![CDATA[
If you?re currently looking to better the telecoms deal you have or maybe your looking simply just to change your telecoms supplier, then we can help.
We provide cheaper calls and cheaper line rental solutions to suit your needs as we understand that everyone has different needs in business and everyone has a different and unique call profile. Some people make short calls, some people make long calls, some people call lots of local and national numbers and some people call lots of mobile telephones, but whatever the profile and requirements that you have, we will build a bespoke tariff ensure that you get the best service and value for money.
If you want to discuss or place a telephone services order, please call us on 0844 2570179 or click here to email us.
]]></pageText>

</texts>





</page>
        
<page name="about">
<image imageUrl="_pic4.png" link="asfunction:link"/>
<image imageUrl="_pic5.png" link="asfunction:link"/>

<texts>

<pageText><![CDATA[
<font color="#9c1f6e">Broadband & Data</font>
]]></pageText>

<pageText><![CDATA[
dddd
]]></pageText>

<pageText><![CDATA[
Why use  <font color="#9c1f6e">Connect Broadband?</font>
]]></pageText>


<pageText><![CDATA[
adsdsd
]]></pageText>



<pageText><![CDATA[
<font color="#9c1f6e">Data</font>
]]></pageText>

<pageText><![CDATA[
If you need a data connection such as a leased line, SDSL connection , MPLS network or simply just are not sure what type of connection you need, then let IP Phone Solutions help you find the connection that you need.
Working with many of the top UK suppliers for data and voice, we are able to always find the perfect solution for you and will place your business up to tender to ensure that you get the best deal.
Contact IP Phone Solutions to by clicking here or call 0844 2570179 to speak with one of our agents today!

]]></pageText>


</texts>

</page>
        
<page name="portfolio">




<texts>

<pageText><![CDATA[
<font color="#9c1f6e">Mobile</font>
]]></pageText>

<pageText><![CDATA[
IP Phone Solutions is a leading independent provider of Commercial Telecommunication solutions from Orange, T Mobile, Vodafone and 02, exclusively for businesses. Our Team has over 20 years of experience within the telecommunication industry, we hope that you will find this site a valuable source of information which illustrates the unique service that we can provide for your business today and prepare you a foundation for the digital era.
If your looking for a single user connection to a large corporate deal, we can ensure that we find the best deal for you at the best price.
We take care of all the administration and set up and provide ongoing support so you can be sure your business mobiles will never let you down.
From single to multi user, IP Phone Solutions can find the best network and handset solution whatever the size of your business.
Save up to 50% on your business mobiles, without compromising on quality or service with IP Phone Solutions.
Contact IP Phone Solutions to by clicking here or call 0844 2570179 to speak with one of our agents today!

]]></pageText>

<pageText><![CDATA[
<font color="#9c1f6e">our</font> portfolio
]]></pageText>

<pageText><![CDATA[
<u>VIEW MORE WORKS</u>
]]></pageText>


</texts>


</page>

<page name="oldolio">




<texts>

<pageText><![CDATA[
<font color="#9c1f6e">Mobile</font>
]]></pageText>

<pageText><![CDATA[
dsadasdasd

]]></pageText>

<pageText><![CDATA[
<font color="#9c1f6e">our</font> portfolio
]]></pageText>

<pageText><![CDATA[
<u>VIEW MORE WORKS</u>
]]></pageText>


</texts>


</page>
        
<page name="contacts">
<image imageUrl="_pic6.png" link="asfunction:link"/>

<texts>

<pageText><![CDATA[
<font color="#9c1f6e">Contact</font> form
]]></pageText>

<pageText><![CDATA[
*  <u>CLEAR</u>       *  <u>SEND</u>
]]></pageText>

<pageText><![CDATA[
<font color="#9c1f6e">contact</font> Information
]]></pageText>


<pageText><![CDATA[
KERTSDE DELERTAS VERDERTKERTASENA MIAST QUASI ARCHITECTO  BEATAE VITDICSUNEX KERTYA MOREDERATIS KASUAS LAERA
AS LERODE FERTASE DELERFAS MIARTAS FEROSAERSA CAB NIMSAM VOLUM LEROAS DELERTASE NEROAJAS LSDUKEROASE
QUIAS MAGNI DOLORE VOLUPSEQUI NESCIUNT LERATSEN.
]]></pageText>

<pageText><![CDATA[
<font color="#5f2d4d">THE COMPANY NAME INC.<br>
8901 MARMRA, GLASGOW, D08947 GR.<br></font>
FREEPHONE:                        +1 800 559 6580<br>
TELEPHONE:                        +1 959 603 6035<br>
FAX:                                 +1 504 889 9898<br>
<font color="#5f2d4d">E-MAIL: <a href="asfunction:link"><u>MAIL@COMPANYNAME.COM</u></a></font>
]]></pageText>


<pageText><![CDATA[
NEQUE PORRO QUISQUAM EST, QUI DOLOREM IPSUM, QUIA DOLOR SIT, AMET, CONSECTETUR, ADIPISCI VELIT, SED QUIA NON NUMQUA
M EIUS MODI TEMPORA INCIDUNT, UT LABORE ET DOLORE MAGNAM ALIQUAM QUAERAT VOLUPTATEM. UT ENIM AD MINIMA.
<br><br>
VENIAM, QUIS NOSTRUM EXERCITATIONEM ULLAM CORPORIS SUSCIPIT LABORIOSAM, NISI UT ALIQUID EX EA COMMODI CONSEQUATUR?
QUIS AUTEM VEL EUM IURE REPREHENDERIT, QUI IN EA VOLUPTATE VELIT ESSE, QUAM NIHIL MOLESTIAE CONSEQUATU.
]]></pageText>
</texts>


</page>

</section>

<!-- privacy policy -->
<section name="privacyPolicy">
<item name="pageTitle"><![CDATA[
Privacy policy
]]></item>
<item name="pageText"><![CDATA[
sss
]]></item>

<item name="pageTitle2"><![CDATA[
Details
]]></item>
<item name="pageText2"><![CDATA[
blabla
]]></item>


</section>
<!-- privacy policy -->

</content>


as - 1 frame
Kod:
function onFinish(success_boolean, results_obj, xml)
{
    if (success_boolean)
    {
        play ();
    } // end if
} // End of the function
Stage.align = "MC";
Stage.scaleMode = "noScale";
url = "25903";
_root.cacheKiller = "true";
stop ();
var parsed_obj = {};
var unCash = new Date().getTime();
if (_root.cacheKiller == "true")
{
    fileToLoad = url + "_main.xml?cacheKiller=" + unCash;
    fileToLoad = url + "_main.xml";
}
else
{
    fileToLoad = url + "_main.xml";
} // end else if
gs.dataTransfer.XMLParser.load(fileToLoad, onFinish, parsed_obj);
_root.emp.useHandCursor = 0;
_root.mus = 1;
_root.n = 1;
_root.num = 1;

kodu z drugiej odnosie sie glownie do kreacji galerii [i tak chcialbym go usunac]
Kod:
function onFinish(success_boolean, gallery_obj, xml)
{
    if (success_boolean)
    {
        play ();
    } // end if
} // End of the function
function textSelectable(selectedObject)
{
    isTextSelected = getSettingsValue(mainObj, "textSelectable", "item");
    if (isTextSelected == "true")
    {
        selectedObject.selectable = true;
    } // end if
} // End of the function
function getXmlSection(obj, itemName, sectionName)
{
    for (i = 0; obj[itemName][i]; i++)
    {
        if (obj[itemName][i].name == sectionName)
        {
            returnedResult = true;
            return (i);
            break;
        } // end if
    } // end of for
} // End of the function
function getSettingsValue(obj, itemName, itemType)
{
    sectionNum = getXmlSection(obj, "section", "settings");
    for (k = 0; obj.section[sectionNum][itemType][k]; k++)
    {
        if (obj.section[sectionNum][itemType][k].name == itemName)
        {
            return (obj.section[sectionNum][itemType][k].value);
            break;
        } // end if
    } // end of for
} // End of the function
function getCopyright(textObj)
{
    textObj.htmlText = getSettingsValue(mainObj, "copyright", "item");
    textSelectable(textObj);
} // End of the function
function getCompanyName(textObj)
{
    textObj.htmlText = getSettingsValue(mainObj, "companyName", "item");
    textSelectable(textObj);
} // End of the function
function getSlogan(textObj)
{
    textObj.htmlText = getSettingsValue(mainObj, "slogan", "item");
    textSelectable(textObj);
} // End of the function
function getSystemValue(textObj, systemOptionName)
{
    textObj.htmlText = getSettingsValue(mainObj, systemOptionName, "item");
    textSelectable(textObj);
} // End of the function
function getMenuLink(textObj, linkNum)
{
    sectionNum = getXmlSection(mainObj, "section", "menu");
    textObj.htmlText = mainObj.section[sectionNum].link[linkNum].value;
    textSelectable(textObj);
} // End of the function
function getMenuSystemOrder(linkNum)
{
    sectionNum = getXmlSection(mainObj, "section", "menu");
    return (mainObj.section[sectionNum].link[linkNum].systemOrder);
} // End of the function
function getCurrentText(textObj, textNumber)
{
    sectionNum = getXmlSection(mainObj, "section", "pages");
    currentPage = _root.link - _root.firstPageFrame;
    textObj.htmlText = mainObj.section[sectionNum].page[currentPage].texts[0].pageText[textNumber].value;
    textSelectable(textObj);
} // End of the function
function getMenuPreviousLink(linkNum)
{
    k = 0;
    for (systemOrder = getMenuSystemOrder(k); systemOrder; systemOrder = getMenuSystemOrder(k))
    {
        if (systemOrder == linkNum)
        {
            orderResult = k + 1;
            break;
        } // end if
        ++k;
    } // end of for
    if (_root.link_prev == 0)
    {
        orderResult = 0;
    } // end if
    return (orderResult);
} // End of the function
function getCurrentImageName(imageNumber)
{
    sectionNum = getXmlSection(mainObj, "section", "pages");
    currentPage = _root.link - _root.firstPageFrame;
    imageParams = new Array();
    imageParams.name = mainObj.section[sectionNum].page[currentPage].image[imageNumber].imageUrl;
    imageParams.linkToOpen = mainObj.section[sectionNum].page[currentPage].image[imageNumber].link;
    imageParams.target = mainObj.section[sectionNum].page[currentPage].image[imageNumber].target;
    return (imageParams);
} // End of the function
function getCurrentImageName_splash(imageNumber)
{
    sectionNum = getXmlSection(mainObj, "section", "settings");
    imageParams = new Array();
    imageParams.name = mainObj.section[sectionNum].image[imageNumber].imageUrl;
    imageParams.linkToOpen = mainObj.section[sectionNum].image[imageNumber].link;
    return (imageParams);
} // End of the function
function checkLinkType(linkTextType, linkNumber)
{
    k = 0;
    typeCount = 0;
    finalLinkNumber = parseInt(linkNumber) + 1;
    currentPage = _root.link - _root.firstPageFrame;
    sectionNum = getXmlSection(mainObj, "section", "pages");
    for (linkTypeCkeck = mainObj.section[sectionNum].page[currentPage].link[k].linkType; linkTypeCkeck; linkTypeCkeck = mainObj.section[sectionNum].page[currentPage].link[k].linkType)
    {
        if (linkTypeCkeck == linkTextType)
        {
            ++typeCount;
        } // end if
        if (typeCount == finalLinkNumber)
        {
            return (k);
            break;
        } // end if
        ++k;
    } // end of for
} // End of the function
function more_click_func(number)
{
    if (_root.my_flag == 1)
    {
    } // end if
    tempNumber = number.split(" ");
    number = tempNumber.join("");
    number = number.toLowerCase();
    num = _root.pagesReadMoreFrame;
    currentPage = _root.link - _root.firstPageFrame;
    if (isNaN(Number(number)))
    {
        readMoreType = number;
    }
    else
    {
        readMoreType = "readmore";
    } // end else if
    if ((_root.link != num || _root.readMoreFrameType != readMoreType) && _root.animation == 1)
    {
        _root.animation = 0;
        _root.link_prev = _root.link;
        if (_root.link != 6 && _root.my_flag != 1)
        {
            _root.menu["item" + getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
            _root.menu2["item" + getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
        } // end if
        _root.plane_movs(_root.base_koord[0]);
        if (number == "privacypolicy")
        {
            _root.readMoreFrameType = "privacypolicy";
            sectionNum = getXmlSection(mainObj, "section", "privacyPolicy");
            titleNum = getXmlSection(mainObj.section[sectionNum], "item", "pageTitle");
            textNum = getXmlSection(mainObj.section[sectionNum], "item", "pageText");
            _root.readMoreTitle = mainObj.section[sectionNum].item[titleNum].value;
            _root.readMoreText = mainObj.section[sectionNum].item[textNum].value;
            titleNum2 = getXmlSection(mainObj.section[sectionNum], "item", "pageTitle2");
            textNum2 = getXmlSection(mainObj.section[sectionNum], "item", "pageText2");
            _root.readMoreTitle2 = mainObj.section[sectionNum].item[titleNum2].value;
            _root.readMoreText2 = mainObj.section[sectionNum].item[textNum2].value;
        }
        else if (number == "termsofuse")
        {
            _root.readMoreFrameType = "termsofuse";
            sectionNum = getXmlSection(mainObj, "section", "termsOfUse");
            titleNum = getXmlSection(mainObj.section[sectionNum], "item", "pageTitle");
            textNum = getXmlSection(mainObj.section[sectionNum], "item", "pageText");
            _root.readMoreTitle = mainObj.section[sectionNum].item[titleNum].value;
            _root.readMoreText = mainObj.section[sectionNum].item[textNum].value;
            titleNum2 = getXmlSection(mainObj.section[sectionNum], "item", "pageTitle2");
            textNum2 = getXmlSection(mainObj.section[sectionNum], "item", "pageText2");
            _root.readMoreTitle2 = mainObj.section[sectionNum].item[titleNum2].value;
            _root.readMoreText2 = mainObj.section[sectionNum].item[textNum2].value;
        }
        else
        {
            _root.readMoreFrameType = "readmore";
            sectionNum = getXmlSection(mainObj, "section", "pages");
            linkCount = checkLinkType("readMoreLink", number);
            i = 0;
            linkTitleNum = getXmlSection(mainObj.section[sectionNum].page[currentPage].link[linkCount], "item", "title");
            linkTextNum = getXmlSection(mainObj.section[sectionNum].page[currentPage].link[linkCount], "item", "linkText");
            _root.readMoreTitle = mainObj.section[sectionNum].page[currentPage].link[linkCount].item[linkTitleNum].value;
            _root.readMoreText = mainObj.section[sectionNum].page[currentPage].link[linkCount].item[linkTextNum].value;
            linkTitleNum2 = getXmlSection(mainObj.section[sectionNum].page[currentPage].link[linkCount], "item", "title2");
            linkTextNum2 = getXmlSection(mainObj.section[sectionNum].page[currentPage].link[linkCount], "item", "linkText2");
            _root.readMoreTitle2 = mainObj.section[sectionNum].page[currentPage].link[linkCount].item[linkTitleNum2].value;
            _root.readMoreText2 = mainObj.section[sectionNum].page[currentPage].link[linkCount].item[linkTextNum2].value;
        } // end else if
        _root.link = num;
        _root.play();
    } // end if
} // End of the function
function getContactFormText(textObj, textNumber)
{
    sectionNum = getXmlSection(mainObj, "section", "contactForm");
    textObj.htmlText = mainObj.section[sectionNum].texts[0].pageText[textNumber].value;
    textSelectable(textObj);
} // End of the function
function getContactFormText_only(textNumber)
{
    sectionNum = getXmlSection(mainObj, "section", "contactForm");
    return (htmlText = mainObj.section[sectionNum].texts[0].pageText[textNumber].value);
} // End of the function
function getContactFormParams()
{
    sectionNum = getXmlSection(mainObj, "section", "contactForm");
    ContactFormParams = new Array();
    servNum = getXmlSection(mainObj.section[sectionNum], "item", "serverOption");
    recNum = getXmlSection(mainObj.section[sectionNum], "item", "recipient");
    ContactFormParams.rec = mainObj.section[sectionNum].item[recNum].value;
    ContactFormParams.serv = mainObj.section[sectionNum].item[servNum].value;
    return (ContactFormParams);
} // End of the function
function getGallerySystemProperty(propName)
{
    sectionNum = getXmlSection(galleryObj, "section", "systemOptions");
    propNum = getXmlSection(galleryObj.section[sectionNum], "option", propName);
    return (galleryObj.section[sectionNum].option[propNum].value);
} // End of the function
function getGallerySettings(propName)
{
    sectionNum = getXmlSection(galleryObj, "section", "settings");
    propNum = getXmlSection(galleryObj.section[sectionNum], "option", propName);
    return (galleryObj.section[sectionNum].option[propNum].value);
} // End of the function
function getGalleryImage(imageNum, categoryNum)
{
    sectionNum = getXmlSection(galleryObj, "section", "imagesData");
    imageParams = new Array();
    image = galleryObj.section[sectionNum].category[categoryNum].image[imageNum];
    nameNum = getXmlSection(image, "item", "imageUrl");
    commentNum = getXmlSection(image, "item", "imageComment");
    imageParams.name = image.item[nameNum].value;
    imageParams.comment = image.item[commentNum].value;
    return (imageParams);
} // End of the function
function getCurrentGalleryName(categoryNum)
{
    sectionNum = getXmlSection(galleryObj, "section", "imagesData");
    return (galleryObj.section[sectionNum].category[categoryNum].name);
} // End of the function
searchResultsFrame = 6;
pagesReadMoreFrame = 5;
firstPageFrame = 1;
var mainObj = _root.parsed_obj;
var galleryObj = _root.gallery_obj;
_root.readMoreFrameType = "readmore";


jezeli sie nie myle to ten z 5-tej odnosi sie do full screen'a
Kod:
function resizeSite(textObj, buttonObjSeand, buttonObjClear, closeObjSeand, closeObjClear)
{
    var _loc1 = {};
    closeObjSeand._visible = false;
    closeObjClear._visible = false;
    titleTextInfo = "Exit full-screen mode (Esc) to enter text";
    titleTextButton = "Exit full-screen mode (Esc) to send the form";
    _loc1.onFullScreen = function (isFullscreen)
    {
        if (isFullscreen)
        {
            textObj.htmlText = titleTextInfo;
            buttonObj.useHandCursor = false;
            closeObjSeand._visible = true;
            closeObjSeand._x = buttonObjSeand._x;
            closeObjSeand._y = buttonObjSeand._y;
            closeObjSeand._width = buttonObjSeand._width + 5;
            closeObjSeand._height = buttonObjSeand._height + 5;
            closeObjClear._visible = true;
            closeObjClear._x = buttonObjClear._x;
            closeObjClear._y = buttonObjClear._y;
            closeObjClear._width = buttonObjClear._width + 5;
            closeObjClear._height = buttonObjClear._height + 5;
            closeObjClear.onRelease = function ()
            {
                textObj.htmlText = titleTextButton;
            };
            closeObjSeand.onRelease = function ()
            {
                textObj.htmlText = titleTextButton;
            };
        }
        else
        {
            closeObjSeand.useHandCursor = true;
            textObj.htmlText = " ";
            closeObjSeand._visible = false;
            closeObjClear._visible = false;
        } // end else if
    };
    if (Stage.displayState == "fullScreen")
    {
        textObj.htmlText = titleTextButton;
        buttonObj.useHandCursor = false;
        closeObjSeand._visible = true;
        closeObjSeand._x = buttonObjSeand._x;
        closeObjSeand._y = buttonObjSeand._y;
        closeObjSeand._width = buttonObjSeand._width + 5;
        closeObjSeand._height = buttonObjSeand._height + 5;
        closeObjClear._visible = true;
        closeObjClear._x = buttonObjClear._x;
        closeObjClear._y = buttonObjClear._y;
        closeObjClear._width = buttonObjClear._width + 5;
        closeObjClear._height = buttonObjClear._height + 5;
        closeObjClear.onRelease = function ()
        {
            textObj.htmlText = titleTextButton;
        };
        closeObjSeand.onRelease = function ()
        {
            textObj.htmlText = titleTextButton;
        };
    } // end if
    Stage.addListener(_loc1);
} // End of the function

frame 90 to samo, full screen

Kod:
function myResizeFunc()
{
} // End of the function
_root.footer.fs.btn_mc.onRelease = function ()
{
    if (Stage.displayState == "normal")
    {
        Stage.displayState = "fullScreen";
    }
    else
    {
        Stage.displayState = "normal";
    } // end else if
};
var listener = {};
listener.onFullScreen = function (isFullscreen)
{
    if (isFullscreen)
    {
        trace ("entered full-screen mode");
    }
    else
    {
        trace ("exited full-screen mode");
    } // end else if
};
Stage.addListener(listener);
Stage.align = "MC";
Stage.scaleMode = "noScale";
sizeListener = new Object();
sizeListener.onResize = myResizeFunc;
Stage.addListener(sizeListener);

95 frame
Kod:
stop ();
_root.link = 0;
_root.animation = 1;
_root.my_flag = 1;

96
Kod:
_root.my_flag = 0;
_root.animation = 0;

115
Kod:
_root.ani.a = 1;
_root.ani.stop();
pages.gotoAndStop(_root.link);
pageOrder = _root.link - 1;

143
Kod:
_root.animation = 1;

144
Kod:
if (_root.link == 0)
{
    gotoAndPlay("s3");
} // end if

188
Kod:
if (pages._currentframe != _root.link)
{
    pages.gotoAndStop(_root.link);
}
else
{
    pages.reloadContent();
    pages.gotoAndPlay("s777");
} // end else if

217
Kod:
stop ();
_root.animation = 1;

218
Kod:
if (_root.link != 0)
{
    gotoAndPlay("s1");
} // end if

221
Kod:
_root.ani.a = 0;
_root.ani.play();

230
Kod:
gotoAndStop("s0");
Odpowiedz
#2
Kod:
onClipEvent (load)
{
    num = 5;
    this.hitArea = this.area;
    link_num = _root.getMenuSystemOrder(num - 1);
    this.title1.gotoAndStop(num);
    this.title2.gotoAndStop(num);
}
on (rollOver)
{
    if (_root.link != link_num)
    {
        this.gotoAndPlay("s1");
    } // end if
}
on (releaseOutside, rollOut)
{
    if (_root.link != link_num)
    {
        this.gotoAndPlay("s2");
    } // end if
}
on (release)
{
    if (_root.link != link_num && _root.animation == 1)
    {
        _root.animation = 0;
        _root.link_prev = _root.link;
        if (_root.link_prev < _root.pagesReadMoreFrame)
        {
            _parent["item" + _root.getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
        } // end if
        _root.menu2["item" + _root.getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
        _root.link = link_num;
        _root.play();
        _root.plane_movs(_root.base_koord[_root.link]);
    } // end if
}

a cus takiego? kazdy z buttonow ma ten kod, jezeli w fileu z xmlem zmienie indexy z kolejnosci 1-2-3-4-5 na 0-1-2-3-4 wtedy wyswietla poprawnie wszystkie oprocz 1szego buttonu [0] - w tym wypadku powoduje to reset animacji z menu... moze jakos by z tym zakombinowac?
Odpowiedz


Podobne wątki
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  obszar buttona jok 2 2,469 22-12-2009, 07:45
Ostatni post: jok

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl