Previous Tip  |  Next Tip  |  Design Tips   | [Bill's Home]

Flash Movies for a Pocket PC

Now that we have a graphic for the Pocket PC, it is simple to screen a Flash movie which can be used to display other movies. The movie on the right-hand side is an example of this. For this the graphic is placed on the upper most layer, and a blank movie is placed on a lower layer (it is indentified with a small circle in the graphic below):

The code added to the button on the movie is then:

on (release)
{

mov._visible=false;
// mov.unloadMovie;

movie_number = movie_number+1;
if (movie_number>max_movie_number-1) movie_number=0;

loadMovie (str[movie_number], "mov");
mov._visible=true;

}

at the start of the movie the str[] is initialized with the names of the movies to display:

var str = new Array();
var scl = new Array();
var mov = new Object();

movie_number=0;
max_movie_number=6;

str[0]="xmas02.swf";
str[1]="top_videos.swf";
str[2]="top_research.swf";
str[3]="top_nos.swf";
str[4]="top_favs.swf";
str[5]="top_cnds.swf";

 

Figure 1: Pocket PC viewer of Flash movies