View Full Version : reset button
hippo0
September 18th, 2005, 10:23 PM
i need a reset button to unload the pic i unloaded. i use this:
on(release){
this._parent.text1.text= "";
this._parent.unloadMovie("container_");
}
}
but den it unload everthing and became a blank stage.
rhamej
September 18th, 2005, 11:18 PM
on(release){
this._parent.text1.text= "";
this._parent.container_.unloadMovie();
}
}
hippo0
September 18th, 2005, 11:23 PM
it wont work,
this is the code layer.
counter = 0;
function loadImages(location,image){
counter++;
var loadArea = location.createEmptyMovieClip("container_"+counter,counter);
loadArea.loadMovie(image);
loadArea._x=500;
this.onMouseDown = function () {
startDrag (loadArea) ;
}
this.onMouseUp = function () {
stopDrag () ;
}
}
rhamej
September 18th, 2005, 11:25 PM
Post a fla. I have no idea how you have it set up.
hippo0
September 18th, 2005, 11:34 PM
the file is too big..
hippo0
September 18th, 2005, 11:38 PM
jus briefly tell u here
i have a code layer which makes mc dynamically. :
counter = 0;
function loadImages(location,image){
counter++;
var loadArea = location.createEmptyMovieClip("container_"+counter,counter);
loadArea.loadMovie(image);
loadArea._x=500;
this.onMouseDown = function () {
startDrag (loadArea) ;
}
this.onMouseUp = function () {
stopDrag () ;
}
}
den i have a button call reset :
on(release){
this._parent.text1.text= "";
this._parent.loadArea.unloadMovie();
}
hippo0
September 18th, 2005, 11:40 PM
it doesnt remove my mc. it only clear the text field when press
rhamej
September 18th, 2005, 11:46 PM
Host the file on your host if the file is to big. I dont want to recreate everything.
Or play around with the paths and the name of the movieClip that actually loads the image.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.