daniel2909
%Europe/Berlin %593 %2005, 15:14
hoi experts,
is er iemand die mij kan helpen deze functies goed te krijgen, dank ik je alvast hiervoor:
de chowcontent() functie doet wel goed die laat de gegevens uit db zien en de eerste gedeelte van showcamera doet ook goed want die laat de afbeelding(mycam) uit db zien als je op (cam) drukt, maar het probleem begint bij de 2de gedeelte want ik wil de afbeelding slepen ergens...
hoe kan ik dit anders doen?
function showcamera(camString) {
var mycam = camString.split();
screen_leftIn.loadMovie(mycam);
// drag en dan drop mijn camera volgens de if conditie
mycam.onPress = function(){
startDrag(mycam);
if (mycam._droptarget == "/screen_main")
stopDrag();
}
// dit is mijn ook niet gelukt ik krijg foutmelding...
//-- hierzo
// this["picFile"+tel].onPress = function(){startDrag();}
}
function showContent() {
var tel;
content.htmlText = "";
for (tel=0; tel < this.n; tel++) {
if (this["picFile"+tel] != "") {
content.htmlText += "<b>" + this["name"+tel] + "</b>" + "<a href='asfunction:showcamera," + this["picFile"+tel] + "'> (<font color='#0000cc'>cam</font>)</a><br>";
} else {
content.htmlText += "<b>" + this["name"+tel] + "</b><br>";
}
content.htmlText += " " + this["details"+tel] + "<br>";
}
}
is er iemand die mij kan helpen deze functies goed te krijgen, dank ik je alvast hiervoor:
de chowcontent() functie doet wel goed die laat de gegevens uit db zien en de eerste gedeelte van showcamera doet ook goed want die laat de afbeelding(mycam) uit db zien als je op (cam) drukt, maar het probleem begint bij de 2de gedeelte want ik wil de afbeelding slepen ergens...
hoe kan ik dit anders doen?
function showcamera(camString) {
var mycam = camString.split();
screen_leftIn.loadMovie(mycam);
// drag en dan drop mijn camera volgens de if conditie
mycam.onPress = function(){
startDrag(mycam);
if (mycam._droptarget == "/screen_main")
stopDrag();
}
// dit is mijn ook niet gelukt ik krijg foutmelding...
//-- hierzo
// this["picFile"+tel].onPress = function(){startDrag();}
}
function showContent() {
var tel;
content.htmlText = "";
for (tel=0; tel < this.n; tel++) {
if (this["picFile"+tel] != "") {
content.htmlText += "<b>" + this["name"+tel] + "</b>" + "<a href='asfunction:showcamera," + this["picFile"+tel] + "'> (<font color='#0000cc'>cam</font>)</a><br>";
} else {
content.htmlText += "<b>" + this["name"+tel] + "</b><br>";
}
content.htmlText += " " + this["details"+tel] + "<br>";
}
}