Flash and Rich Media Embedding
Digest
Embedding Adobe Flash® or other rich media that use the <embed> or <object> tags can be accomplished in Cascade server in two ways:
- The correct <embed> or <object> tags can be copied and pasted into the WYSIWYG's HTML Source View. Often the embed code can be directly copied and pasted from a site like YouTube or Vimeo.
- A Data Definition can be created that allows a business user to enter a "video ID" for a particular media site or server or choose a Flash (SWF) File Asset stored in Cascade Server. Cascade Server then uses a Format to automatically generate the appropriate <embed> or <object> tags.
Concept
Copying Embed Code into the WYSIWYG
- Copy or create the appropriate HTML code to embed the Flash movie. For this example, we'll use a video from YouTube.

- Edit any Page in Cascade Server that contains a WYSIWYG editor. Your Group settings and the WYSIWYG's settings must allow you to see the Edit HTML Source button. If you can't see the
button, contact your Cascade Server administrator.

- Paste the HTML code into the HTML Source Editor window. In many cases, the page layout will look best if the <embed> or <object> tag is pasted inside of an existing <p> (paragraph) tag. Click Update when you are satisfied with the HTML code.

- In Cascade Server 6.0 and later, the WYSIWYG editor will show a placeholder graphic where your embedded movie will be.

Technical
Creating an Embed Data Definition
Flash and other rich media plugins can also be embedded in a page by using a combination of a Structured Data Definition and Format. This method can be more tightly controlled than simply pasting HTML code into the WYSIWYG editor. It allows the developer to prescribe how the flash movie should look or even where the content should be loaded from. The example Data Definition and Format below give the user fields for selecting a location to load the movie from, specify the video ID, and control the size and quality of the movie.
Screenshot of User Interface

Data Definition
XSLT Format

