def add_flash_application(swfspec, params = {})
            options =
            {
                windowed: false,
                transparent: false,
                navigation_pane: false,
                toolbar: false,
                pass_context_click: false,
                activation: Annotation::RichMedia::Activation::PAGE_OPEN,
                deactivation: Annotation::RichMedia::Deactivation::PAGE_CLOSE,
                flash_vars: nil
            }
            options.update(params)

            annot = create_richmedia(:Flash, swfspec, options)
            add_annotation(annot)

            annot
        end
def add_flash_application(swfspec, params = {})
            options =
            {
                windowed: false,
                transparent: false,
                navigation_pane: false,
                toolbar: false,
                pass_context_click: false,
                activation: Annotation::RichMedia::Activation::PAGE_OPEN,
                deactivation: Annotation::RichMedia::Deactivation::PAGE_CLOSE,
                flash_vars: nil
            }
            options.update(params)

            annot = create_richmedia(:Flash, swfspec, options)
            add_annotation(annot)

            annot
        end
Embed a SWF Flash application in the page.