PDA

View Full Version : unload drag and drop movie won't work after dragging


tdi-guy
01-26-2007, 06:57 PM
Ok i'll try and explain this as best I can.

I have movie 1
then add this.

__________________________
education_btn.onRelease = function(){
_root.createEmptyMovieClip("educ_mc",1);
_root.educ_mc.loadMovie("education.swf");
_root.educ_mc._y = 80;

________________________________

so far so good.
the "education_swf" has a drag and drop but as soon as i drag it and try to unload it, it won't.

If i don't drag it, then it's fine.

If someone can have a look at this it would be greatly appreciated.

thank you.

cytomatrix
01-27-2007, 09:33 AM
When you click the close button, it is not really unloading the movieclip. Try this to unload the movieclip.

_root.educ_mc.unloadMovie(1);

If you drag the education movieclip and click close, it is not fading out for some reason.

Good luck.

tdi-guy
01-29-2007, 03:31 PM
When you click the close button, it is not really unloading the movieclip. Try this to unload the movieclip.

_root.educ_mc.unloadMovie(1);

If you drag the education movieclip and click close, it is not fading out for some reason.

Good luck.

thanks for the info, it now unloads but like you said, it does not fade out.

can anyone have a look and please tell me why the movie does not fade out once you have draged it.

thank you very much.

much appreciated.

tdi-guy
01-29-2007, 08:35 PM
thanks for the info, it now unloads but like you said, it does not fade out.

can anyone have a look and please tell me why the movie does not fade out once you have draged it.

thank you very much.

much appreciated.

ok i've been working on it all day and i only have two things left.

first: after i drag my menu and click the minimize button, if no longer fades.
WHY??

second. when i click the X to close it. i have to folowing code on the last frame on the movie clip symbole that is on the scene.

it says to go to the frame label "eteint" on the timeline and play. nothing happens.

_root.gotoAndPlay ("eteint");
once it gets to the end of the timeline it's suppose to unload itself from the main.swf.
educ_mc.unloadMovie(1);

i'm so close i can taste it!!!

Hibba
02-04-2007, 03:04 AM
I looked at it, but couldn't figure it out quick enough. Have you tried using trace commands throughout the code, just checking to see if the _root.gotoAndPlay ("eteint") is actually getting used?

I would probably start there. You really have a lot more bugs than you think. For instance, what if it is already minimized, and I click on minimize again... same thing with closing it if its already minimized.

Good luck!

Hibba
02-04-2007, 03:10 AM
I looked at it, but couldn't figure it out quick enough. Have you tried using trace commands throughout the code, just checking to see if the _root.gotoAndPlay ("eteint") is actually getting used?

I would probably start there. You really have a lot more bugs than you think. For instance, what if it is already minimized, and I click on minimize again... same thing with closing it if its already minimized.

Good luck!

Duh! You need to use _parent, not _root. It just occured to me because the _root of education is education's root, but you want what's holding education, which is the _parent!

give it a try and that should solve one problem.