Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the level of a movie instance!?

Status
Not open for further replies.

Bimmel

Programmer
Feb 15, 2002
19
DE
I use a custom mouse cursor in my "shooting-game".
I hide the win mouse cursor and drag a crosshair
movie instance to the mouse cursor.
My prob:
When I load a movie (I must, sorry! ;P) with loadmovienum() this movie is placed over the "old" movie.
This means that my "mouse cursor" is behind the "new" movie when I cross it.
My question:
Is it possible to change the level of a movie instance?
Alternatively, is it possible to load a movie behind an existing movie? (level -1 does not work :-[ )
 
Alternatively, Yes!

Regards,
new.gif
 
And how do I load a movie behind?
How I mentioned before "level -1" does not seem to work,
the "new" movie is still over the "old" movie. :/
 
Try making your main movie only a background movie! Load the other 2 "content" movies on the levels that suit you.
Levels are like layers. If you load a movie on level 5, it will be on top of all levels under it, so just load your crosshair on a higher level than the other movie.

Mind you, it would be easier to just integrate your crosshair in the loaded movie itself!

Regards,
And may I be blessed by your vote!
You missed out on the first one!

new.gif
 
So far, so good:

the idea of including the crosshair in a level above is pretty cool.
BUT how can I edit the actions of a "content" movie which I load into the main movie?
It must be done because of the startDrag() function f.e.
Is it possible to define the action just in the library of a movie ?
 
You can address the movie you load in by its level just as you would using _root.

example to gotoAndPlay a movie clip called "bimmel_in" in a movie loaded at level22 you would address it as:

Code:
level22.bimmel_in.gotoAndPlay;


Is that what you were asking? Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Actually...even!

_
level22.bimmel_in.gotoAndPlay(1);

Regards,
new.gif
 
got in a hurry...Old is absolutely correct! (his last post anyway);-) Ya' Gotta Love It!
sleepyangelsBW.jpg
 
thx for your interesting notes
BUT ( sorry I really have to say BUT ;) )

I want the included move that it drags at my hidden my cursor -> so that it is actually the mouse cursor.
So I put like that:

onClipEvent (load) {
Mouse.hide();
startDrag ("_root.fadenkreuz", true);
}

^^ Unfortunately, I cannot assign this action-script code to the movie because it does only exist in my library.
There is no pretty "Actions" menu item when I click with my right mouse button on the movie file in my library.

thx again especially to oldnewbie the non-stop poster ;P

btw: I just marked you as a helpful master or something like that for my very first thread =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top