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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load movie 1

Status
Not open for further replies.

anyoneforabrew

Programmer
May 8, 2003
6
GB
hello, i'm having a problem loading a movie into another.

i have a movie with two frames in one frame is a mp which you can drag (which is a movie clip) on this are buttons which when clicked are supposed to load other movies into a frame on the main stage, but its not working

if i put the button on the main stage it loads fine

it must be a problem with having a button inside a dragable movie clip under a mask ??

any sugestions ?

tar

joey
 
That shouldn't cause a problem unless there is another button on the clip obscuring the one that does the loading (maybe an invisible one that you're using to trigger the dragging?)

It's more likely to be something wrong in the path you're using within the code on the button, maybe something like this will do the trick:

on(release){//if you're loading into a movieclip on the main stage
_root.mc.loadMovie('otherMovie.swf');
}

or

on(release){//if you're loading into a new level
loadMovieNum('otherMovie.swf',1);
}
 
That shouldn't cause a problem unless there is another button on the clip obscuring the one that does the loading (maybe an invisible one that you're using to trigger the dragging?)


yes, i think thats the problem

i have a button witch is invisible, which triggers the draging. this is probably my problem, because it is over laying is there any way round this?

this is unusuall cos i thought that wouldnt affect it and the button rollover states work fine ??

tried your code but they didnt work either
 
Can you post a .fla up somewhere, this sounds like one of those things where you need to see the thing to track down the problem?
 
and that doesnt work, strange


but if you copy and paste the link into your browser it downloads then
 
Put this code on the button and it works:

on (release) {
loadMovie("pleasure.swf", _root.frame);
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top