예제 #1
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="uri"></param>
    /// <param name="index"></param>
    public MovieClip AddMovieClip(string uri, int index)
    {
        SwfURI    furi      = new SwfURI(uri);
        MovieClip movieClip = new MovieClip(furi);

        movieClip.looping        = loop;
        movieClip.colorTransform = colorTransform;
        movieClip.alpha          = colorTransform.a;
        movieClip.scaleX         = drawScale.x;
        if (flipY)
        {
            movieClip.scaleY = drawScale.y;
        }
        else
        {
            movieClip.scaleY = -drawScale.y;
        }
        stage.addChildAt(movieClip, index);
        return(movieClip);
    }