Porfavor una ayuda a este tema.
Yo importo las imagenes de esta forma:
Código:
Atte. var val1:String = ""; var val2:String = ""; var imgm1:MovieClip = new MovieClip(); var imgm2:MovieClip = new MovieClip(); var loaderurl1:Loader = new Loader(); var loaderurl2:Loader = new Loader(); var nail = new mcNail(); var pick = new mcPick(); var soundChannel:SoundChannel = new SoundChannel(); var sound:Sound = new Sound(new URLRequest("../../flash/instantaneas/scraping.mp3")); var maskbg:Shape = new Shape(); var dim:int = 14; var c:int = 0; var flagP:Boolean = true; var flagS:Boolean = true; var particles:Array = new Array(); var spareParticles:Dictionary = new Dictionary(); var particle:Object; var sparkSprite = new Sprite(); function charge() { stage.scaleMode = StageScaleMode.NO_SCALE; var vals:Array = val.split("-"); val1 = fontNumber(parseInt(vals[0])); val2 = fontNumber(parseInt(vals[1])); imgm1.x = 285.0; imgm1.y = 130.0; imgm2.x = 355.0; imgm2.y = 130.0; foo.addChild(imgm1); foo.addChild(imgm2); imgm1.addChild(loaderurl1); imgm2.addChild(loaderurl2); loaderurl1.load(new URLRequest("../../img/instantaneas/fonts/S"+val1+".png")); loaderurl2.load(new URLRequest("../../img/instantaneas/fonts/S"+val2+".png"));