RadEditor for ASP.NET

RadEditor Send comments on this topic.
FlashPaths Property
See Also  Example
Telerik.WebControls Namespace > RadEditor Class : FlashPaths Property


Gets or sets the paths where the RadEditor will look for flash animations.   

 

Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)

Syntax

Visual Basic (Declaration) 
Public Property FlashPaths As String()
Visual Basic (Usage)Copy Code
Dim instance As RadEditor
Dim value() As String
 
instance.FlashPaths = value
 
value = instance.FlashPaths
C# 
public string[] FlashPaths {get; set;}

Return Value

A string array which contains the paths where the RadEditor will look for flash animations. The default value is empty string array.

Example

This example demonstrates how to set the FlashPaths, UploadFlashPaths and DeleteFlashPaths properties in the ASPX or in the code-behind:

<rade:radeditor
runat="server"
id="RadEditor1"
flashpaths="~/UploadFlash,/Flash/Temp,/Flash/Default"
uploadflashpaths="~/UploadFlash,/Flash/Temp"
deleteflashpaths="/Flash/Temp">
</rade:radeditor>

In this specific example the users of the application will see three folders in the Flash Manager dialog: UploadFlash, Default and Temp.

When browsing the UploadFlash and Temp folders, the Upload Flash tab will be enabled; otherwise it will be disabled.

When browsing the Temp folder, the Delete button in the Browse Files tab will be enabled; otherwise it will be disabled.

The Flash folder will not be browsable. If you want to allow the users to browse it you should add "/Flash" to the FlashPaths list.

Visual BasicCopy Code
RadEditor1.FlashPaths = New String(3) {"~/UploadFlash", "/Flash/Temp", "/Flash/Default"}
RadEditor1.UploadFlashPaths = New String(2) {"~/UploadFlash", "/Flash/Temp"}
RadEditor1.DeleteFlashPaths = New String(1) {"/Flash/Temp"}
C#Copy Code
RadEditor1.FlashPaths = new string[3] {"~/UploadFlash", "/Flash/Temp", "/Flash/Default"};
RadEditor1.UploadFlashPaths =
new string[2] {"~/UploadFlash", "/Flash/Temp"};
RadEditor1.DeleteFlashPaths =
new string[1] {"/Flash/Temp"};
    

Remarks

If a folder is present in UploadFlashPaths or DeleteFlashPaths, but is missing from FlashPaths it will not be visible in the Flash Manager dialog.

Use "~/" (tilde) as a substitution of the web-application's root directory.

Note: in the ASPX declaration the folders are comma separated string; in the code behind they are string array.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also