Vraag & Antwoord

Webdesign (HTML, CSS, Flash)

foutmelding in flash

3 antwoorden
  • Ik krijg foutmelding "type mismatch in assignment statement found number where string is required" (regel 37 = _loc5 = count = 0;) , weet iemand de fout? function init(Void) { myMO = {}; myKO = {}; Mouse.addListener(myMO); Key.addListener(myKO); for (var _loc5 in infostruc) { loader.clear(); loader.gradient_mc.removeMovieClip(); loader.attachMovie("default", "art", 1); loader._width = frontCDWidth; loader._height = frontCDHeight; this["_bmd" + _loc5] = new flash.display.BitmapData(loader._width, loader._height); this["_ref" + _loc5] = new flash.display.BitmapData(loader._width, loader._height); this["_bmd" + _loc5].draw(loader); var _loc3 = loader.createEmptyMovieClip("gradient_mc", loader.getNextHighestDepth()); matrix = new flash.geom.Matrix(); matrix.createGradientBox(loader._width, loader._height, reflectionRotation / 180 * 3.141593E+000, 0, 0); _loc3.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio); _loc3.moveTo(0, 0); _loc3.lineTo(0, loader._height); _loc3.lineTo(loader._width, loader._height); _loc3.lineTo(loader._width, 0); _loc3.lineTo(0, 0); _loc3.endFill(); loader.art._alpha = reflectionAlpha; loader.beginFill(reflectionBackgroundColour); loader.moveTo(0, 0); loader.lineTo(0, loader._height); loader.lineTo(loader._width, loader._height); loader.lineTo(loader._width, 0); loader.lineTo(0, 0); loader.endFill(); this["_ref" + _loc5].draw(loader); } // end of for...in _loc5 = count = 0; while (count < Stage.width - centerDistance * 2) { var _loc4 = this.createEmptyMovieClip("art" + this.getNextHighestDepth(), this.getNextHighestDepth()); var _loc2 = this.createEmptyMovieClip("reflection" + (this.getNextHighestDepth() - 1), this.getNextHighestDepth()); _loc2.id = _loc4.id = _loc2.cid = _loc4.cid = Number(_loc5) + 1; _loc4.DistortImage(this["_bmd" + _loc4.id]); controlTheObject(_loc4); _loc2.DistortImage(this["_ref" + _loc4.id]); controlTheObject(_loc2); var _loc6 = new flash.filters.BlurFilter(reflectionBlurX, reflectionBlurY, reflectionQuality); _loc2.filterArray = []; _loc2.filterArray.push(_loc6); _loc2.filters = _loc2.filterArray; (count = count + shelveCDSpacing); _loc5++; } // end while myMO.onMouseWheel = function (delta) { if (delta > 0) { next(); } else if (delta <= 0) { previous(); } // end else if }; myKO.onKeyDown = function () { if (Selection.getFocus() != "_level0.goto") { if (Key.isDown(39)) { next(); } else if (Key.isDown(37)) { previous(); } // end if } // end else if }; scrollBar.scroller.onPress = function () { dist = this._parent._xmouse - this._x; this.onMouseMove = function () { tmp = 1 + Math.ceil((this._parent._xmouse - dist - scrollBarStart) / (scrollBar._width - scrollBarStop) * (infostruc.length - 1)); if (tmp > infostruc.length) { tmp = infostruc.length; } // end if if (tmp < 1) { tmp = 1; } // end if current = tmp; updateInfo(); }; }; scrollBar.scroller.onRelease = scrollBar.scroller.onReleaseOutside = function () { stopDrag (); delete this.onMouseMove; }; scrollBar.left.onPress = function () { previous(); shifter = setInterval(previous, scrollerDelay); }; scrollBar.right.onPress = function () { next(); shifter = setInterval(next, scrollerDelay); }; scrollBar.onMouseUp = function () { clearInterval(shifter); }; scrollBar.onMouseDown = function () { if (this.hitTest(_xmouse, _ymouse, true) && !this.left.hitTest(_xmouse, _ymouse, true) && !this.right.hitTest(_xmouse, _ymouse, true)) { if (this._xmouse < this.scroller._x) { previous(); shifter = setInterval(previous, clickDelay); } // end if if (this._xmouse > this.scroller._x + this.scroller._width) { next(); shifter = setInterval(next, clickDelay); } // end if } // end if }; goto.onChanged = function () { if (!isNaN(Number(this.text) + 1)) { this.text = Math.round(Number(this.text)); if (this.text > infostruc.length) { this.text = infostruc.length; } // end if if (this.text < 1) { this.text = 1; } // end if current = this.text; } else { this.text = current; } // end else if updateInfo(); }; distance = Number(_loc5); mask.removeMovieClip(); loader.removeMovieClip(); scrollBar.swapDepths(1101); loadNext(); updateInfo(); } // End of the function function concat(m1, m2) { var _loc2 = {}; _loc2.a = m1.c * m2.b; _loc2.b = m1.d * m2.b; _loc2.c = m1.a * m2.c; _loc2.d = m1.b * m2.c; _loc2.tx = m1.a * m2.tx + m1.c * m2.ty + m1.tx; _loc2.ty = m1.b * m2.tx + m1.d * m2.ty + m1.ty; return (_loc2); } // End of the function function updateInfo() { goto.text = current; img_info.author = infostruc[current - 1].auth; img_info.album = infostruc[current - 1].album; img_info.artistLink.enabled = true; if (infostruc[current - 1].authLink == undefined) { img_info.authLink.enabled = false; } else if (infostruc[current - 1].authLink == "undefined") { img_info.authLink.enabled = false; } else { img_info.artistLink.onPress = function () { getURL(infostruc[current - 1].authLink, "_blank"); }; } // end else if img_info.albumLink.enabled = true; if (infostruc[current - 1].albumLink == undefined) { img_info.albumLink.enabled = false; } else if (infostruc[current - 1].albumLink == "undefined") { img_info.albumLink.enabled = false; } else { img_info.albumLink.onPress = function () { getURL(infostruc[current - 1].albumLink, "_blank"); }; } // end else if scrollBar.scroller._x = scrollBarStart + (current - 1) / (infostruc.length - 1) * (scrollBar._width - scrollBarStop); } // End of the function function validateOk(target) { return (Math.abs(Math.min(Math.max((target._x - target.x) / albumEase, -maxSlide), maxSlide)) == maxSlide); } // End of the function function controlTheObject(mc) { if (mc._name.indexOf("reflection") == -1) { mc.onPress = function () { if (getTimer() - this.pressTime <= doubleClickRegister && this.pressTime) { } // end if this.pressTime = getTimer(); current = this.cid + 1; updateInfo(); }; } // end if mc.onEnterFrame = function () { if (Math.abs(this._x - this.x) > 1) { if (this._name.indexOf("reflection") == -1) { this._y = centerY; if (this._x >= centerX + centerDistance) { this.swapDepths(Stage.width - this._x); this.setSides(-shelveCDWidth / 2, -shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2 + shelveCDWidth, -shelveCDHeight / 2, -shelveCDWidth / 2 + shelveCDWidth, shelveCDHeight / 2, -shelveCDWidth / 2, shelveCDHeight / 2 - Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth); } else if (this._x <= centerX - centerDistance) { this.swapDepths(this._x); this.setSides(-shelveCDWidth / 2, -shelveCDHeight / 2, -shelveCDWidth / 2 + shelveCDWidth, -shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2 + shelveCDWidth, shelveCDHeight / 2 - Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2, shelveCDHeight / 2); } else if (this._x > centerX - centerDistance && Math.floor(this._x) < centerX && !validateOk(this) && angle - (this._x - (centerX - centerDistance)) / centerDistance * angle > autoJump) { this.swapDepths(1002); var _loc2 = shelveCDWidth + (this._x - (centerX - centerDistance)) / centerDistance * (frontCDWidth - shelveCDWidth); var _loc4 = angle - (this._x - (centerX - centerDistance)) / centerDistance * angle; var _loc3 = shelveCDHeight + (this._x - (centerX - centerDistance)) / centerDistance * (frontCDHeight - shelveCDHeight); this.setSides(-_loc2 / 2, -_loc3 / 2, -_loc2 / 2 + _loc2, -_loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2 + _loc2, _loc3 / 2 - Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2, _loc3 / 2); } else if (this._x < centerX + centerDistance && Math.ceil(this._x) > centerX && !validateOk(this) && angle - (centerX + centerDistance - this._x) / centerDistance * angle > autoJump) { this.swapDepths(1003); _loc2 = shelveCDWidth + (centerX + centerDistance - this._x) / centerDistance * (frontCDWidth - shelveCDWidth); _loc4 = angle - (centerX + centerDistance - this._x) / centerDistance * angle; _loc3 = shelveCDHeight + (centerX + centerDistance - this._x) / centerDistance * (frontCDHeight - shelveCDHeight); this.setSides(-_loc2 / 2, -_loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2 + _loc2, -_loc3 / 2, -_loc2 / 2 + _loc2, _loc3 / 2, -_loc2 / 2, _loc3 / 2 - Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth); } else if (!validateOk(this)) { this.swapDepths(1004); this.setSides(-frontCDWidth / 2, -frontCDHeight / 2, -frontCDWidth / 2 + frontCDWidth, -frontCDHeight / 2, -frontCDWidth / 2 + frontCDWidth, frontCDHeight / 2, -frontCDWidth / 2, frontCDHeight / 2); } // end else if } else { this._yscale = -100; if (this._x >= centerX + centerDistance) { this._y = centerY + shelveCDHeight + reflectionSpace; this.swapDepths(Stage.width - this._x - 333); this.setSides(-shelveCDWidth / 2, -shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2 + shelveCDWidth, -shelveCDHeight / 2, -shelveCDWidth / 2 + shelveCDWidth, shelveCDHeight / 2, -shelveCDWidth / 2, shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth); } else if (this._x <= centerX - centerDistance) { this._y = centerY + shelveCDHeight + reflectionSpace; this.swapDepths(this._x - 333); this.setSides(-shelveCDWidth / 2, -shelveCDHeight / 2, -shelveCDWidth / 2 + shelveCDWidth, -shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2 + shelveCDWidth, shelveCDHeight / 2 + Math.sin(angle * 3.141593E+000 / 180) * frontCDWidth, -shelveCDWidth / 2, shelveCDHeight / 2); } else if (this._x > centerX - centerDistance && this._x < centerX && !validateOk(this)) { this.swapDepths(999); _loc2 = shelveCDWidth + (this._x - (centerX - centerDistance)) / centerDistance * (frontCDWidth - shelveCDWidth); _loc4 = angle - (this._x - (centerX - centerDistance)) / centerDistance * angle; _loc3 = shelveCDHeight + (this._x - (centerX - centerDistance)) / centerDistance * (frontCDHeight - shelveCDHeight); this._y = centerY + _loc3 + reflectionSpace; this.setSides(-_loc2 / 2, -_loc3 / 2, -_loc2 / 2 + _loc2, -_loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2 + _loc2, _loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2, _loc3 / 2); } else if (this._x < centerX + centerDistance && this._x > centerX && !validateOk(this)) { this.swapDepths(998); _loc2 = shelveCDWidth + (centerX + centerDistance - this._x) / centerDistance * (frontCDWidth - shelveCDWidth); _loc4 = angle - (centerX + centerDistance - this._x) / centerDistance * angle; _loc3 = shelveCDHeight + (centerX + centerDistance - this._x) / centerDistance * (frontCDHeight - shelveCDHeight); this.setSides(-_loc2 / 2, -_loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth, -_loc2 / 2 + _loc2, -_loc3 / 2, -_loc2 / 2 + _loc2, _loc3 / 2, -_loc2 / 2, _loc3 / 2 + Math.sin(_loc4 * 3.141593E+000 / 180) * frontCDWidth); this._y = centerY + _loc3 + reflectionSpace; } else if (!validateOk(this)) { this.swapDepths(995); this._y = centerY + frontCDHeight + reflectionSpace; this.setSides(-frontCDWidth / 2, -frontCDHeight / 2, -frontCDWidth / 2 + frontCDWidth, -frontCDHeight / 2, -frontCDWidth / 2 + frontCDWidth, frontCDHeight / 2, -frontCDWidth / 2, frontCDHeight / 2); } // end else if } // end else if } // end else if if (infostruc[this.cid].loaded && !this.loadedImage) { this.DistortImage(this._name.indexOf("reflection") > -1 ? (this._parent["_ref" + this.cid]) : (this._parent["_bmd" + this.cid])); this.loadedImage = true; } // end if if (this._x < deleteMinDistance && this._parent["_ref" + (this.cid + distance)]) { this.cid = this.cid + distance; this._x = deleteMaxDistance; controlTheObject(this); this.loadedImage = infostruc[this.cid].loaded; this.DistortImage(this._name.indexOf("reflection") > -1 ? (this._parent["_ref" + this.cid]) : (this._parent["_bmd" + this.cid])); } // end if if (this._x > deleteMaxDistance && this._parent["_ref" + (this.cid - distance)]) { this.cid = this.cid - distance; this._x = deleteMinDistance; controlTheObject(this); this.loadedImage = infostruc[this.cid].loaded; this.DistortImage(this._name.indexOf("reflection") > -1 ? (this._parent["_ref" + this.cid]) : (this._parent["_bmd" + this.cid])); } // end if if (this.cid + 1 > current) { this.x = centerX + (this.cid + 1 - current) * shelveCDSpacing + centerDistance; } else if (this.cid + 1 < current) { this.x = centerX + (this.cid + 1 - current) * shelveCDSpacing - centerDistance; } else { this.x = centerX + (this.cid + 1 - current) * shelveCDSpacing; } // end else if this._x = this._x - Math.min(Math.max((this._x - this.x) / albumEase, -maxSlide), maxSlide); if (this._x < fadeDist) { this._alpha = this._x / fadeDist * 100; } else if (this._x > fadePoint - fadeDist) { this._alpha = (fadePoint - this._x) / fadeDist * 100; } else { this._alpha = 100; } // end else if this.setTransform(this.px1, this.py1, this.px2, this.py2, this.px3, this.py3, this.px4, this.py4); }; } // End of the function function next() { if (current < infostruc.length) { current = current + 1; } // end if updateInfo(); } // End of the function function previous() { if (current > 1) { current = current - 1; } // end if updateInfo(); } // End of the function function displayAlternArt(art, width, height) { artDisplay.attachBitmap(art, 1); artDisplay._width = width; artDisplay._height = height; } // End of the function function loadNext() { if (!loadedAll) { var _loc2 = current - 1; if (infostruc[current - 1].loaded) { for (var _loc2 = current - Math.floor(distance / 2) - 1 >= 0 ? (current - Math.floor(distance / 2) - 1) : (0); infostruc[_loc2].loaded && _loc2 < infostruc.length; ++_loc2) { } // end of for if (_loc2 >= infostruc.length) { for (var _loc2 = current - 1; infostruc[_loc2].loaded && _loc2 > 0; --_loc2) { } // end of for if (_loc2 <= 0) { loadedAll = true; } // end if } // end if } // end if var _loc4 = this.createEmptyMovieClip("artLoad" + _loc2, this.getNextHighestDepth()); _loc4.createEmptyMovieClip("art", _loc4.getNextHighestDepth()); _loc4._alpha = 0; var _loc3 = {}; _loc3.number = _loc2; var _loc5 = new MovieClipLoader(); _loc5.addListener(_loc3); _loc5.loadClip("./" + infostruc[_loc2].art, _loc4.art); _loc3.onLoadError = function () { infostruc[this.number].loaded = true; loadNext(); }; _loc3.onLoadInit = function (target) { target._parent._width = frontCDWidth; target._parent._height = frontCDHeight; root["_bmd" + this.number] = new flash.display.BitmapData(target._width, target._height); root["_ref" + this.number] = new flash.display.BitmapData(target._width, target._height); root["_bmd" + this.number].draw(target); var _loc3 = target._parent.createEmptyMovieClip("gradient_mc", target._parent.getNextHighestDepth()); matrix = new flash.geom.Matrix(); matrix.createGradientBox(target._width, target._height, reflectionRotation / 180 * 3.141593E+000, 0, 0); _loc3.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio); _loc3.moveTo(0, 0); _loc3.lineTo(0, target._height); _loc3.lineTo(target._width, target._height); _loc3.lineTo(target._width, 0); _loc3.lineTo(0, 0); _loc3.endFill(); target._alpha = 50; target._parent.beginFill(reflectionBackgroundColour); target._parent.moveTo(0, 0); target._parent.lineTo(0, target._height); target._parent.lineTo(target._width, target._height); target._parent.lineTo(target._width, 0); target._parent.lineTo(0, 0); target._parent.endFill(); root["_ref" + this.number].draw(target._parent); infostruc[this.number].loaded = true; target._parent.removeMovieClip(); updateInfo(); loadNext(); }; } // end if } // End of the function var root = this; var myMO; var myKO; var loadedAll; var distance; var autoJump = 1.500000E-001; var maxSlide = 100; var deleteMinDistance = 0; var deleteMaxDistance = 750; var doubleClickRegister = 500; var frontCDWidth = 400; var frontCDHeight = 300; var shelveCDHeight = 150; var shelveCDWidth = 100; var shelveCDSpacing = 50; var centerDistance = 150; var albumEase = 4; var angle = 8; var fadePoint = Stage.width; var fadeDist = 200; var current = 1; var centerX = Stage.width / 2; var centerY = 150; var clickDelay = 750; var scrollBarStart = 0; var scrollerDelay = 150; var scrollBarStop = scrollBar.scroller._width + 49; var reflectionBackgroundColour = 0; var reflectionBlurX = 0; var reflectionBlurY = 0; var reflectionQuality = 3; var reflectionSpace = 0; var reflectionAlpha = 100; var reflectionRotation = 90; var reflectionFocalPointRatio = 3.000000E-001; var reflectionFillType = "linear"; var reflectionSpreadMethod = "pad"; var reflectionInterpolationMethod = "RGB"; var unknownArtist = " "; var unknownAlbum = " "; var infostruc = []; var reflectionColors = [0, 0]; var reflectionAlphas = [100, 10]; var reflectionRatios = [0, 255]; var xmlData = new XML(); MovieClip.prototype.setSides = function (x1, y1, x2, y2, x3, y3, x4, y4) { this.px1 = x1; this.py1 = y1; this.px2 = x2; this.py2 = y2; this.px3 = x3; this.py3 = y3; this.px4 = x4; this.py4 = y4; }; MovieClip.prototype.DistortImage = function (ptexture, vseg, hseg) { if (ptexture instanceof flash.display.BitmapData) { this.texture = ptexture; } else if (ptexture instanceof MovieClip) { this.texture = new flash.display.BitmapData(ptexture._width, ptexture._height); this.texture.draw(ptexture); } // end else if this._w = this.texture.width; this._h = this.texture.height; this._aMcs = []; this._p = []; this._tri = []; this.init(); }; MovieClip.prototype.setTransform = function (x0, y0, x1, y1, x2, y2, x3, y3) { this.dx30 = x3 - x0; this.dy30 = y3 - y0; this.dx21 = x2 - x1; this.dy21 = y2 - y1; for (var _loc10 in this._p) { this.point = this._p[_loc10]; var _loc3 = (this.point.x - this._xMin) / this._w; var _loc2 = (this.point.y - this._yMin) / this._h; var _loc5 = x0 + _loc2 * this.dx30; var _loc4 = y0 + _loc2 * this.dy30; this.point.sx = _loc5 + _loc3 * (x1 + _loc2 * this.dx21 - _loc5); this.point.sy = _loc4 + _loc3 * (y1 + _loc2 * this.dy21 - _loc4); } // end of for...in this.render(); }; MovieClip.prototype.init = function (Void) { this._p = []; this._tri = []; this.w2 = this._w / 2; this.h2 = this._h / 2; this._xMin = this._yMin = 0; this._xMax = this._w; this._yMax = this._h; this._hsLen = this._w / 2; this._vsLen = this._h / 2; for (ix = 0; ix < 3; ix++) { for (iy = 0; iy < 3; iy++) { x = ix * this._hsLen; y = iy * this._vsLen; this._p.push({x: x, y: y, sx: x, sy: y}); } // end of for } // end of for for (ix = 0; ix < 2; ix++) { for (iy = 0; iy < 2; iy++) { this.p0 = this._p[iy + ix * 3]; this.p1 = this._p[iy + ix * 3 + 1]; this.p2 = this._p[iy + (ix + 1) * 3]; this.addTriangle(this.p0, this.p1, this.p2); this.p0 = this._p[iy + (ix + 1) * 3 + 1]; this.p1 = this._p[iy + (ix + 1) * 3]; this.p2 = this._p[iy + ix * 3 + 1]; this.addTriangle(this.p0, this.p1, this.p2); } // end of for } // end of for this.render(); }; MovieClip.prototype.addTriangle = function (p0, p1, p2) { this.tMat = {}; this.u0 = p0.x; this.v0 = p0.y; this.u1 = p1.x; this.v1 = p1.y; this.u2 = p2.x; this.v2 = p2.y; this.tMat.tx = -this.v0 * (this._w / (this.v1 - this.v0)); this.tMat.ty = -this.u0 * (this._h / (this.u2 - this.u0)); this.tMat.a = this.tMat.d = 0; this.tMat.b = this._h / (this.u2 - this.u0); this.tMat.c = this._w / (this.v1 - this.v0); this._tri.push([p0, p1, p2, this.tMat]); }; MovieClip.prototype.render = function (Void) { this.clear(); this.ih = 1 / this._h; this.iw = 1 / this._w; this.tM = this.sM = {}; for (var _loc2 in this._tri) { a = this._tri[_loc2]; this.p0 = a[0]; this.p1 = a[1]; this.p2 = a[2]; this.tM = a[3]; this.sM.a = (this.p1.sx - (this.x0 = this.p0.sx)) * this.iw; this.sM.b = (this.p1.sy - (this.y0 = this.p0.sy)) * this.iw; this.sM.c = (this.p2.sx - this.x0) * this.ih; this.sM.d = (this.p2.sy - this.y0) * this.ih; this.sM.tx = this.x0; this.sM.ty = this.y0; this.sM = concat(this.sM, this.tM); this.beginBitmapFill(this.texture, this.sM, false, false); this.moveTo(this.x0, this.y0); this.lineTo(this.p1.sx, this.p1.sy); this.lineTo(this.p2.sx, this.p2.sy); this.endFill(); } // end of for...in }; xmlData.onLoad = function (success) { if (success) { var _loc3 = -1; while (this.childNodes[0].childNodes[++_loc3]) { var _loc2 = this.childNodes[0].childNodes[_loc3].childNodes; var _loc7 = _loc2[1].childNodes[0].nodeValue ? (unescape(_loc2[1].childNodes[0].nodeValue)) : (unknownArtist); var _loc6 = _loc2[2].childNodes[0].nodeValue ? (unescape(_loc2[2].childNodes[0].nodeValue)) : (unknownAlbum); var _loc5 = _loc2[3].childNodes[0].nodeValue ? (unescape(_loc2[3].childNodes[0].nodeValue)) : (noLink); var _loc4 = _loc2[4].childNodes[0].nodeValue ? (unescape(_loc2[4].childNodes[0].nodeValue)) : (noLink); infostruc.push({art: _loc2[0].childNodes[0].nodeValue, info: val1, auth: _loc7, album: _loc6, authLink: _loc5, albumLink: _loc4, loaded: false}); } // end while loadStat = ""; init(); } else { loadStat = "Unable to load XML Data"; } // end else if }; xmlData.ignoreWhite = true; xmlData.load("./albuminfo1.xml"); this.createEmptyMovieClip("loader", this.getNextHighestDepth()); loader._visible = false; mask._alpha = 0; scrollBar.scroller._y = 0; img_info.swapDepths(2000);
  • De foutmelding spreekt toch voor zich? Ofwel _loc5 ofwel count is van type string (of zelfs allebei). 0 is van type integer. Dat klopt niet. ;) Overigens heb ik niet je hele lap code erop nagelezen. - Bas
  • ja, ok, maar hoe moet ik het oplossen, mijn enige programmeer-kennis is 1 uurtje VisualBasic in de week op school...

Beantwoord deze vraag

Weet jij het antwoord op deze vraag? Registreer of meld je aan met je account

Dit is een gearchiveerde pagina. Antwoorden is niet meer mogelijk.