|
-
Run for your life!
loadMovie problem
When i try to use my loadMovie function, to load a separate game, my hitTest functions and my inventory/stats buttons arent working at all :S any ideas what i should do?
im using...
Code:
on(release){
if(_root.password == "go"){
loadMovie("game", showGame);
}
}
-
Innovation = Cool
if showgame is a movieclip that you are trying to load it into
you forgot the "" "showgame" which will have to be the name
of the target movie instance
otherwise it is probably just loading it into level0
-
Run for your life!
hmmm... it doesnt change anything...
when i run my game.swf externally, all the buttons and item pick ups work, but then when they get run within the movie clip, they just stop working... you cant open the inventories or anything
-
Innovation = Cool
ok another problem
loading externally
if you use loadmovieNum and the external movie works
then the problem is with loadmovie
if you are loading an external movie which is larger in
filesize than the target movieclip it will choke or load up
to the target clips size
but this problem doesn't occur with load movie num
a way around this is to add fake library items to the first clip so
that it is larger than the second or use loadmovienum...but that is no good if you want the second clip to be in a certain area of the screen
does that make sense
-
Run for your life!
kind of...
how do i use loadMovieNum? because my game file is pretty big, i dont want to fill up my webspace
-
Innovation = Cool
ok the first moveie loads on layer 0
so loadmovienum("my.swf",1) say would load on the
top of the first layer if its screensize is smaller
the first layer will show behind it
you would use unloadmovie(1) to remove the second movie
leaving the first intact
if you load "my.swf",0 it would load on the same layer
as the first movie thus replacing it
-
Run for your life!
-
Innovation = Cool
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|