PDA

View Full Version : Clearing Previous Scene


sillysammy
04-07-2007, 01:08 AM
I am pretty new to flash 8 and I am making a completely animated version of the Fresh Prince of Bel Air Theme/Intro: http://www.youtube.com/watch?v=yntAFecYr2A
In The first scene, i am making an intro with a custom cursor and floating background which follows the cursor. Can someone give me a script for resetting the cursor and background when i am in scene 2.? Thanks..also if anyone has any suggestions for my flash version of Fresh Prince of Bel Air, feel free to give me some tips.

-Thanks
SIIIIILLYYSAMMY

evride
04-07-2007, 03:38 AM
try the removeMovieClip command
it goes like this
movieclip.removeMovieClip();
or
removeMovieClip("movieclip");

sillysammy
04-07-2007, 04:53 PM
Where should i put this code...at the begginning of the new actions or at the end of the scene 1 actions??

evride
04-08-2007, 01:57 AM
I'm not sure if i understand you. When you make a new scene it doesn't transfer the movieclips over. So you shouldn't have a problem at all. It sounds like your working with frames and not scenes. If you upload your file i could have a look at it. Megaupload is a good option.

sillysammy
04-08-2007, 03:07 AM
http://www.megaupload.com/?d=TBEQ1R9W

I want the second scene to not have the floating background and the cursor that can draw..
PLZ help.. thanks..

-silly sammy:confused:

evride
04-08-2007, 03:32 AM
in scene 1 on the "script" layer create a new keyframe
go to the actions and add this code.

cursor_mc.removeMovieClip();
bgHolder.removeMovieClip();

that's it
BTW its pretty interesting and nice Actionscript.

sillysammy
04-09-2007, 01:17 AM
if you can.. can you help me with another part of the script...i need to have the cursor back to normal where it doesn't draw and i need for anything that has been drawn in scene 1 to be permanetly erased in scene 2... thnks again..
-sillysammy

evride
04-09-2007, 01:42 AM
sorry didn't notice that extra stuff.
the code to add to the same frame where the other stuff is, is this:

terrain.removeMovieClip();
Mouse.show();

sillysammy
04-09-2007, 01:58 AM
everythings perfect now.. your a lifesaver man... well if you have anymore tips on how to do the flash tell me..
thanks again