Using Flash
Using Flash in Mura is not much different than using Flash in a static site. You can embed it in your templates, or add it to a page or component.
The only real difference is that any references to your Flash movies or external assets from within your flash movie need to be root relative. For, example:
<embed src="/tasks/sites/{sideid}/assets/Flash/welcome.swf" play="true" loop="true" menu="true"</embed>
or
<embed src="/{sideid}/assets/Flash/welcome.swf" play="true" loop="true" menu="true"</embed>
Note: Any external assets referenced by your Flash movie must also use a root relative path.
Adding Flash to content
To add a Flash movie to content, create or edit the page (portal, component, etc.) and use the "Insert/Edit Flash" button in the editor to select your Flash movie and set display parameters.
Embedding in Templates
To add a Flash movie to a Mura template, you simply open your template in your favorite text editor and paste in the necessary code snippet. Again, the path must be root relative but you can use the following variables to make your path "site agnostic", allow re-use of the template in any site or theme:
- #$.siteConfig('themeAssetPath')#/flash/your-flash-movie.swf
This outputs a root relative path to the root of your theme directory. - #$.siteConfig('assetPath')#/flash/your-flash-movie.swf
This outputs a root relative path to the root of your specific site (siteid) directory.