View Full Version : loadMovie, loadMovieNum, attatchMovie
Geoff
July 9th, 2003, 04:01 AM
hello
My site successfully uses 'attachMovie' to grab some pages from the library. I use this method so that these key pages are preloaded as they are (loaded before frame 1)
I have now added a page that uses 'loadMovie'. It's a big one (119kB) and it has its own preloader. Eerything worked well when I tested it, but the buttons that used attachMovie no longer worked.
Any ideas please ?
Oh, and what is the difference between loadMovie and loadMovieNum ?
Many thanks
geoff
claudio
July 9th, 2003, 05:58 AM
loadMovie = load into target
loadMovieNum = load into level
kode
July 9th, 2003, 06:30 AM
hey Geoff,
probably an addressing issue... could you post your code or attach your FLA? :)
and claudio,
you can use loadMovie to load into target (MovieClip) and level. ;)
claudio
July 9th, 2003, 07:00 AM
Only on expert mode, otherwise flash automatically replace loadMovie for loadMovieNum.
Right?
:)
kode
July 9th, 2003, 07:04 AM
i have no idea. :P
i've never used the actions panel on normal mode. :crazy:
claudio
July 9th, 2003, 07:05 AM
Hmmm, i think i am right, ive read that somewhere....:-\
:)
kode
July 9th, 2003, 07:31 AM
yup... that's right, i just checked it out. :P
but that doesn't mean you can't use loadMovie to load into a level. ;) :P
claudio
July 9th, 2003, 07:34 AM
Yeah, i didnt want to get Geoff confused :P
Oh well, you are right once again (-:
kode
July 9th, 2003, 07:39 AM
nah... maybe i'm just stubborn. :P :beam:
Geoff
July 9th, 2003, 11:37 AM
Thanks for the info
i have solved it, I wasn't using 'unloadMovie'. I dodn't think I had to. I thought that attachMovie and loadMovie were effectively the same in as much as they would load on top of the target host movie.
// my cut down code is:
on (press) {
_root.content.unloadMovie("test.swf");
// this movie (test) would have been loaded into content by a loadMovie action
}
on (release) {
_root.content.attachMovie("about", "content", 0);
// this movie (about) is the new movie to replace test.swf.
}
The code works but because I am not very confident and experienced in this, I can't help feel that there is a "correct" way
What do you think please
Geoff
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.