[FMX] Challenge question

  1. Here is the situation I was trapped into since yesterday:

At _level0, external movies are loaded through a movieclip using loadMovie(“externalmovie.swf”,“targetmc”);

  1. Obtain the external movies’ resolution/dimension (e.g. 800x600 px) using actionscript.

  2. Assume the movies have different dimensions and are smaller than or equal to _level0’s dimensions. If they are smaller, you have to scale up the movie until it reaches the largest size possible, to fit into _level0’s dimensions. Again, the external movies are loaded using a target mc and not using levels

[COLOR=red]3. Note: Remember that when movies are loaded through target MC, they inherit the properties of that mc, so if the size of the mc is 600x600, the external movie would be so too, even if it were 800x600px . This means that you may not do a direct [AS]MC._xscale = 200;[/AS] to it.[/COLOR]

  • The _level0 movie will serve as a master swf where the different external movies will load into, and consecutively play (one at a time), automatically (ergo, without having to manually open and quit and open and quit the movies).