Comunidad de diseño web y desarrollo en internet online

Imágenes locales no pueden ser embedidas con ActionScript 3?

Citar            
MensajeEscrito el 24 Oct 2008 10:20 am
Hola!

Este trozo de código no me compila (no encuentra el icono)

Sé que hay más opciones para hacer esto (dentro del <button> o con la ruta relativa del icono.gif)
pero yo necesito hacerlo con AS3...

Alguien sabe cómo poner correctamente la dirección absoluta en AS3?

Gracias ^_^


Código :

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

   <mx:Script>
      <![CDATA[
         
         [Embed("file:///C|/Documents and Settings/usuario/Escritorio/icono.gif")]
           private const icono:Class;

      ]]>
   </mx:Script>

   <mx:Button label="botón" icon="icono"/>
   
</mx:WindowedApplication>

Por Gema84

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 Oct 2008 10:23 am
Y así tampoco...

[Embed("file:///C|/Documents and Settings/usuario/Escritorio/icono.gif")]
private var icono:Class;

Por Gema84

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 Oct 2008 12:52 pm
Nadie me puede ayudar?

:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:

Por Gema84

1 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.