ASPxClientCommandConsts.INSERTFLASH_COMMAND Property

Identifies a command that inserts a new flash element.

Declaration

static INSERTFLASH_COMMAND: string

Property Value

Type Description
string

Value: "insertflash"

Remarks

The INSERTFLASH_COMMAND property can be used in the followng ways.

  • In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the INSERTFLASH_COMMAND property value, this means that an end-user has clicked the OK button within the Insert Flash dialog.
  • In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.

    In this case, the method requires an additional parameter, which is an object of the ASPxClientHtmlEditorInsertFlashCommandArguments type.

    
    // Inserting a new flash element instead of the "myDiv" div
    var myDiv = htmlEditor.GetDesignViewDocument().getElementById("myDiv");
    var args = new ASPxClientHtmlEditorInsertFlashCommandArguments(htmlEditor, myDiv);
    args.allowFullscreen = false;
    args.autoPlay = true;
    args.enableFlashMenu = false;
    args.loop = false;
    args.quality = "best";
    args.src = "/Content/SampleFlash.swf";
    htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTFLASH_COMMAND, args);
    
Note

This command is available only in the Design View.

See Also