PDA

View Full Version : need help asap



Audrius
January 20th, 2003, 05:11 AM
hey guys

I have situation:
I have couple externel SWF's for my web site; 1st - home.swf, which has some text , 2nd- swf is contact and the 3rd one is portfolio.swf

the problem i have is when i load externel swf (i.e contact info) into my home page it actually apears on the top of my home text
how i should program actionscript to avoid this problem.


ps I have F MX
the script i am using for mu buttons is as follow:

on (release) {
_root.contents.loadMovie("contact.swf");
}

thank you in advance


Andy

andr.in
January 20th, 2003, 08:21 AM
I think you're looking for swapDepths!
There's a tutorial on this site for this action! Just use the swapDepths() action after the movie is loaded!:ub:

senocular
January 20th, 2003, 08:55 AM
or you just need to arrange your contents clip to be below your text when you have it there in flash

Dave
January 20th, 2003, 09:40 AM
OR instead of loading into a movie clip, load into levels, that way next time u click on another button, it will automatically unload that movie and load the other one!!

on (release) {
loadMovieNum("ur_external_movie_here.swf", 1);
}


=)

senocular
January 20th, 2003, 10:17 AM
Originally posted by Dave
OR instead of loading into a movie clip, load into levels, that way next time u click on another button, it will automatically unload that movie and load the other one!!

on (release) {
loadMovieNum("ur_external_movie_here.swf", 1);
}


=)

that of course will mean it'll DEFINITELY be above your text ;)

Dave
January 20th, 2003, 10:33 AM
Homepage can be external too =)