Foros del Web » Creando para Internet » Flash y Actionscript »

Ayuda con Texto en botón

Estas en el tema de Ayuda con Texto en botón en el foro de Flash y Actionscript en Foros del Web. Hola, no sé que pasa con mis textos en los botones que no logro hacer que salgan al centro. Agradezco la ayuda, uso el Flash ...
  #1 (permalink)  
Antiguo 27/01/2011, 15:52
Avatar de el_tigre  
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 2 meses
Puntos: 8
De acuerdo Ayuda con Texto en botón

Hola, no sé que pasa con mis textos en los botones que no logro hacer que salgan al centro. Agradezco la ayuda, uso el Flash 8 y AS 2.0, sólo el NOSOTROS sale bien, incluso el botón de la izquierda - abajo sale muy abajo casi escondido...

Ver Web/

Esta es la parte del código que llama en el AS
Código PHP:
function onFinish(success_booleangallery_objxml)
{
    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(objitemNamesectionName)
{
    for (
0obj[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(objitemNameitemType)
{
    
sectionNum getXmlSection(obj"section""settings");
    for (
0obj.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(textObjsystemOptionName)
{
    
textObj.htmlText getSettingsValue(mainObjsystemOptionName"item");
    
textSelectable(textObj);
// End of the function
function getMenuLink(textObjlinkNum)
{
    
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(textObjtextNumber)
{
    
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)
{
    
0;
    for (
systemOrder getMenuSystemOrder(k); systemOrdersystemOrder getMenuSystemOrder(k))
    {
        if (
systemOrder == linkNum)
        {
            
orderResult 1;
            break;
        } 
// end if
        
++k;
    } 
// end of for
    
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(linkTextTypelinkNumber)
{
    
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].linkTypelinkTypeCkecklinkTypeCkeck 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)
    {
        
_root.link 1;
        
_root.link_prev 1;
        
_root.main.gotoAndPlay("s4");
    } 
// 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.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;
        }
        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;
        }
        else
        {
            
_root.readMoreFrameType "readmore";
            
sectionNum getXmlSection(mainObj"section""pages");
            
linkCount checkLinkType("readMoreLink"number);
            
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;
        } 
// end else if
        
_root.link num;
        
_root.play();
    } 
// end if
// End of the function
function getContactFormText(textObjtextNumber)
{
    
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
....... 

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:29.