public void act() 
    {
        setImage(flashScreen);
        if (style)
        {
            if (transparency > 0)
            {
                getImage().setTransparency(transparency--);
            }
            else
            {
                getWorld().removeObject(this);
            }
        }
        else
        {
            transparency++;
            if (transparency < 255)
            {
                getImage().setTransparency(transparency);
            }
            else if (transparency == 300)
            {
                getWorld().removeObject(this);
            }
        }
    }