- MC Classic
- Welcome Screen
Create a Welcome Message for the MC Media Player
This page shows how to create a simple welcome message for your MC Media Player. The message will appear when the player loads and disappear when the first clip is selected.
The message itself is a simple image file — you will need to create this with your favourite graphics application. You can also use other types of file (swf, flv, mp3) but for this example we will keep it simple and use a GIF file.
The example below is a GIF file made with Photoshop. It is 480x288 pixels which is the optimum size for the 720x360 MC Media Player. If you like, right-click and save this image to practice with. Once you get it working, create your own file the same size and use that instead.

To make the file appear in the player you need to define the dfile variable. This variable determines a default file to load at startup.
If you are using the JavaScript implementation:
In the JavaScript file (mcmp720x360.js), look for the dfile variable and define it as follows, changing the file name and path as necessary:
dfile = "welcome_480x288.gif";
If you are using the HTML-only implementation:
Enter the dfile variable like so:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="720" height="360">
<param name="movie" value="../../flashfiles/player/mcmp720x360_player.swf">
<param name="quality" value="high">
<param name="FlashVars" value="dfile=welcome_480x288.gif">
<embed src="../../flashfiles/player/mcmp720x360_player.swf" width="720" height="360" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" FlashVars="dfile=welcome_480x288.gif"></embed>
</object>
<div align="center" style="font-size: 11px;"><a href="http://www.mediacollege.com/flash/media-player" target=_blank">MC Media Player © mediacollege.com</a></div>
Notes
- Unless the welcome file is included somewhere in the playlist, it will not be accessible after the user selects a new clip to play.
- As mentioned, you can use Flash swf and flv files for your welcome, opening up possibilities for an interesting and interactive introduction. You could also use an mp3 file for an audio-only intro.