caro1966
%Europe/Berlin %459 %2006, 12:01
Hallo allemaal, dit is waarschijnlijk iets simpels, maar ik kom er niet uit.
Ik heb een button op MC (btn staat op de hoofdtijdlijn, niet in MC). De MC heeft een onRelease functie. Als ik op MC klik is de button weg.
AS staat in het 1e frame op de hoofdtijdlijn.
Ik hoop dat er iemand kan helpen. Alvast bedankt.
Gr. Caroline
Hierbij de link naar het swf bestand:
http://www.caroscopyright.nl/colums.swf
Hieronder de code van de mc en button:
stop();
button1.onRelease = function() {
getURL("http://www.caroscopyright.nl/francien/index.html", _blank);
}
myMC1_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);
} // end if
} // End of the function
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
} // End of the function
gotoAndStop(20);
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides3.xml");
slides_xml.ignoreWhite = true;
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
} else {
++currentIndex;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
} // end if
};
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
if (previousSlideNode == null) {
} else {
--currentIndex;
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
} // end if
};
};
myMC2_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
}
myMC3_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
}
Ik heb een button op MC (btn staat op de hoofdtijdlijn, niet in MC). De MC heeft een onRelease functie. Als ik op MC klik is de button weg.
AS staat in het 1e frame op de hoofdtijdlijn.
Ik hoop dat er iemand kan helpen. Alvast bedankt.
Gr. Caroline
Hierbij de link naar het swf bestand:
http://www.caroscopyright.nl/colums.swf
Hieronder de code van de mc en button:
stop();
button1.onRelease = function() {
getURL("http://www.caroscopyright.nl/francien/index.html", _blank);
}
myMC1_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);
} // end if
} // End of the function
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
} // End of the function
gotoAndStop(20);
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides3.xml");
slides_xml.ignoreWhite = true;
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
} else {
++currentIndex;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
} // end if
};
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
if (previousSlideNode == null) {
} else {
--currentIndex;
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
} // end if
};
};
myMC2_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
}
myMC3_mc.onRelease = function() {
this.swapDepths(getNextHighestDepth());
}