[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).

isnt it just to scale the external movie clip then?
or if the external movie has its contents in a mc just _x an _y scale it to 800x600

-Dahle

Dahle : Hi, thank you for your reply. Kindly refer to the changes in my problem. Thanks very much. Cheers

i meant to edit the external .swf
in that movie make all of the content to an movieclip.
and in the external .swf on frame one to scale it to what you like
Cheers

-Dahle

i cant try out my theory cause im at work…
but i think it should work…
you can always try not to load it to an targetMc

like this "loadMovie(“whatever.swf”,[the level you want it])

we can chat @ msn if you have that…
makes things go faster :slight_smile:

my msn account is : pixel_artist@hotmail.com

cheers!

-Dahle

Do I smell homework? :smiley:

hehe :slight_smile:
i dont claim to be accurate… but i give options…
and as i said i am at work so i cant test my theories

-Dahle

well, I’ll give you some tips. try checkingout the getBounds function. I think you’ll find what you need here.
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary523.html