public function render($return = false)
    {
        // Build the string
        $html = '<object type="application/x-shockwave-flash"';
        $html .= ' width="'.$this->getWidth().'"';
        $html .= ' height="'.$this->getHeight().'"';
        $html .= ' data="'.$this->getEmbedURL().'"';
        if ($this->isInvisible()) {
            $html .= ' style="visibility:hidden;display:inline;"';
        }
        $html .= '>';
        $html .= '<param name="movie" value="'.$this->getEmbedURL().'" />';
        $html .= '<param name="wmode" value="transparent" />';
        $html .= '</object>';

        if ($return) {
            return $html;
        }
        echo $html;

        return true;
    }