Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : LoadMovieNum Problems!!!


Tom Unger
2/14/2004 7:36:04 PM
Helen;

--loadMovieNum("url",level[, variables]) is used to load a movie into a
level
(not into a target movie clip).
loadMovie("url",level/target[, variables]) is used to load content into a
target movie clip...
-Tom Unger

Helen_Hackwell
2/14/2004 10:51:30 PM
Hi, yet another problem I cannot solve

I have a movie clip that randomly loads one of ten different movies into it,
using this code

loadMovieNum("quote"+Math.ceil(10*Math.random())+".swf",0);

This movie is then loaded into another, opening into an empty movie clip,
however it ends up filling the entire scree and cover up everything else on
that page

There was no problem opening any other files into the empty movie clip, so it
has to ahve something to do with the random movie loading

any ideas

Thank

Helen
abeall
2/14/2004 11:00:59 PM
Helen_Hackwell
2/14/2004 11:06:21 PM
in the 'quote' movies there are 3 text boxes

the movie the 'quote' movies are loaded in is called intro, and this has the
code

intro.swf is then loaded into a third movie called menu.swf, it is loaded into
an empty movie clip which is on the top left of the screen

if you look at www.feltkitten.com you will see it working by just loading one
movie, and not randomly selecting one, the blue bar round the edge and the
buttons are what is contained in 'menu.swf', and the text in 'intro.swf

thank
Helen_Hackwell
2/15/2004 11:19:13 AM
If this isn't going to work does anyone have any code for loading random text into a textbox, I tried a tutorial at flashkit - but it didn't work.

Chinese Boy
2/15/2004 12:41:32 PM
If you load the movie into the _level0, then of course the things that are
loaded into the main movie will replace the entire screen. Try to change the
level something other than 0, such as

loadMovieNum("quote"+Math.ceil(10*Math.random())+".swf",1)

Because your main movie is treated as _level0 movie as default, you need to
set a different level for loaded movies so that they don't overwrite the
default movie

author: Chinese Bo
AddThis Social Bookmark Button