Tema: attachMovie
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2009, 12:36
rhp07
 
Fecha de Ingreso: agosto-2009
Mensajes: 13
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: attachMovie

Funciona! Muchas gracias!
Código:
function iconsOut()
{
 
    var icoNum = 0;
    checkPhoneType();
    if (isWalkman)
    {
        removeMovieClip(_root.walkman);
    }
    else if (isCybershot)
    {
        removeMovieClip(_root.cybershot);
    } // end else if
	removeMovieClip(_root.deselectedIcons);
	removeMovieClip(_root.selectedIcons);
    for (row = 1; row <= 4; row++)
    {
        for (col = 1; col <= 3; col++)
        {
            ++icoNum;
            newClip = "clip" + icoNum;
            removeMovieClip(_root.newClip);
            var iconName = _root["_IconName"];
            with (_root[newClip])
            {
                _x = col * 70 - 20;
                _y = row * 58 + 19;
                if (iconName == "MEDIAPLAYER_DESKTOP_ICN" && isWalkman)
                {
                    removeMovieClip("des" + icoNum);
                    removeMovieClip("sel" + icoNum);
                }
                else
                {
                    removeMovieClip("des");
                    removeMovieClip("sel");
                } // end else if
                if (deselectedIcons["des" + icoNum] == undefined || selectedIcons["sel" + icoNum] == undefined)
                {
                    removeMovieClip("des" + icoNum);
                    removeMovieClip("sel" + icoNum);
                } // end if
                icoNum = icoNum;
            } // End of with
            iconName = null;
        } // end of for
    } // end of for
    icoNum = null;
};