O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SWF file playback

This allows you to see a video playing on your webpage. The code could be very simple with Alloy UI.

<div class="demo" id="demo">
Please download the Flash player to view this content.
</div>
// ignore details
AUI().ready('aui-swf', function(A) {
var advancedSWF = new A.SWF(
{
boundingBox: '#demo',
url: '/snippet-portlet/jsp/snippet/views/assets/video_landing.swf',
version: 9.115
});
});

The A.SWF constructor takes a configuration object as its argument. This configuration object has three attributes. The boundingBox gives the ID of the container for the video to be played. The url gives the location to find the video file. The configuration object can still take fixedAttributes and flashVars to be passed to the A.SWF instance. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required