Hola Buenas tardes... tengo un problema que no entiendo como resolverlo. Tengo un proyecto que si lo depuro adentro de Flash cs4 no me arroja ningun error, pero cuando intento abrir el swf y cuando presiono un boton que tengo en la aplicacion me arroja un error:
VerifyError: Error #1014: No se encontró la clase flash.filesystem::File.
at cubo_fla::MainTimeline/btnFrontClick()
Este es el codigo que tengo en el boton:
var archivo:File=File.applicationDirectory; | ||
var target=new File(archivo.nativePath + "\\TempImagesZoom"); | ||
archivo=archivo.resolvePath("image1.jpg"); | ||
var targetParent:File=target.parent; | ||
targetParent.createDirectory(); | ||
target=target.resolvePath("small.jpg"); | ||
archivo.copyTo(target,true); | ||
archivo=File.applicationDirectory; | ||
target=new File(archivo.nativePath + "\\TempImagesZoom\\big.jpg"); | ||
archivo=archivo.resolvePath("image1Big.jpg"); | ||
archivo.copyTo(target,true); | ||
cube.visible=false; | ||
btnFront.visible=false; | ||
btnLeft.visible=false; | ||
btnRight.visible=false; | ||
btnBack.visible=false; | ||
btnUp.visible=false; | ||
btnDown.visible=false; | ||
var i=new Loader(); | ||
this.addChild(i); | ||
i.load(new URLRequest("lupa.swf")); |
Espero y me puedan ayudar. Gracias.