[FLA CS3] Cargar sonido externo con actionscript 3.0

Hola, ¿alguien sabe como hacer un loadSound en
ActionScript 3.0?
Necesito cargar un *.mp3 externo y no se que codigo usar
Gracias

Me autorespondo:
var snd:Sound = new Sound(new URLRequest("audio.mp3"));
snd.play();
"Bitxo" <[email protected]> escribió
en el mensaje
news:feg6op$4ph$[email protected]..
> Hola, ¿alguien sabe como hacer un loadSound en
ActionScript 3.0?
> Necesito cargar un *.mp3 externo y no se que codigo usar
>
> Gracias
>

Similar Messages

  • Mi mac boock pro no arranca y aparece una pantalla gris y una rueda girando sin cargar cuando entro con command V aparece este error BootCacheControl: Unable to open BootCacheControl: Unable to open /var/db/BootCache.playlist: 2 No such file or directory

    Hola atodos/as. Necesito ayuda.
    Mi mac boock pro no arranca y aparece una pantalla gris y una rueda girando sin cargar cuando entro con command V aparece este error BootCacheControl: Unable to open BootCacheControl: Unable to open /var/db/BootCache.playlist: 2 No such file or directory

  • Hola buen dia como hago para cargar una pagina con tiempo, no es igual que en cs6. gracias

    hola buen dia como hago para cargar una pagina con tiempo, no es igual que en cs6, ahi lo hacia en el panel de insertar en head  y ya ano apare me pueden ayudar gracias.

    gracias te explico estoy haciendo un taller y me piden lo siguiente:
    tengo un archivo llamado index que debe cargar una imagen con texto alternativo que diga "inicio" y a los 30 segundos debe abrir la pagina contenido.html.

  • Loading an external image (from file system) to fla library as MovieClip symbol using ActionScript.

    Hi everyone,
    I am new to actionscript and Flash.
    I have been working on code updation project wherein initially we had an image and text as movieclips in fla library. The image and the text are read by the actionscript program which then creates an animation.
    For Example:
    // Picture
    // _imageMC: Name of the Movie Clip in the libary which
    // contains the picture.
    var _imageMC:String = "polaroid";
    This is later on used by another actionscript class as follows to finally create the animation.
    var _mcPolaroid:MovieClip = this._mcBg.attachMovie(this._polaroid, "polaroid_mc", this._mcBg.getNextHighestDepth());
    Now the problem here is when one needs to update the image or text, one needs to go and open the fla file andmanually change the image attached to the movieClip (polaroid).
    I want to ease the updation process by giving the url of the image in an XML file. Read the image url from the xml and load this image in the library of the fla as movieclip. This, i think, will result in less code change and improve the updation of the final animation image.
    The problem i am facing is not been able to figure out how can i change the image (after fetching its URL) to a movieclip and then load it in the library?
    Thank you kindly in advance,
    Varun

    The following was my attempt: (i created a new MovieClip)
    this.createEmptyMovieClip("polaroidTest", this.getNextHighestDepth());
    loadMovie("imagefile.jpg", polaroidTest)
    var _imageMC:String = "polaroidTest";
    This mentioned variable _imageMC is read by a MovieClip class(self created as follows)
    /////////////////////////////// CODE STARTS //////////////////////////////////////
    class as.MovieClip.MovieClipPolaroid {
    private var _mcTarget:MovieClip;
    private var _polaroid:String;
    private var _mcBg:MovieClip;
    private var _rmcBg:MovieClip;
    private var _w:Number;
    private var _h:Number;
    private var _xPosition:Number;
    private var _yPosition:Number;
    private var _border:Number;
    * Constructor
        function MovieClipPolaroid(mcTarget:MovieClip, polaroid:String) {
    this._mcTarget = mcTarget;
    this._polaroid = polaroid;
    init();
    * initialise the polaroid movieclip and reflecting it
        private function init():Void {
    this._border = 10;
    this.initSize();
    this.setPosition(48,35);
    this.createBackground();
    var _mcPolaroid:MovieClip = this._mcBg.attachMovie(this._polaroid, "polaroid_mc", this._mcBg.getNextHighestDepth());
    _mcPolaroid._x = _border;
    _mcPolaroid._y = _border;
    var _rmcPolaroid:MovieClip=this._rmcBg.attachMovie(this._polaroid,"rpolaroid_mc", this._rmcBg.getNextHighestDepth());
    _rmcPolaroid._yscale *=-1;
    _rmcPolaroid._y = _rmcPolaroid._y + _h + _border ;
    _rmcPolaroid._x =_border;
    * create the background for the polaroid
    private function createBackground():Void {
    this._mcBg = _mcTarget.createEmptyMovieClip("target_mc",_mcTarget.getNextHighestDepth());
    this._rmcBg = _mcTarget.createEmptyMovieClip("rTarget_mc", _mcTarget.getNextHighestDepth());
    fill(_mcBg,_w+2*_border,_h+2*_border,100);
    fill(_rmcBg,_w+2*_border,_h+2*_border,10);
    placeBg(_mcBg,_w+2*_border,_yPosition);
    placeBg(_rmcBg,_w+2*_border,_h+2*_border+_yPosition);
    * position the background
    private function placeBg(mc:MovieClip,w:Number,h:Number) : Void {  
        mc._x = Stage.width - w - _xPosition;
    mc._y = h;
    * paint the backgound
    private function fill(mc:MovieClip,w:Number,h:Number, a:Number): Void {
    mc.beginFill(0xFFFFFF);
    mc.moveTo(0, 0);
    mc.lineTo(w, 0);
    mc.lineTo(w, h);
    mc.lineTo(0, h);
    mc.lineTo(0, 0);
    mc.endFill();
    mc._alpha=a;
    * init the size of the polaroid
    private function initSize():Void {
    var mc:MovieClip =_mcTarget.createEmptyMovieClip("mc",_mcTarget.getNextHighestDepth());
    mc.attachMovie(this._polaroid,"polaroid_mc", _mcTarget.getNextHighestDepth());
    this._h = mc._height;
    this._w = mc._width;
    removeMovieClip(mc);
    mc = null;
    * sets the position of the polaroid
    public function setPosition(xPos:Number,yPos:Number):Void {
    this._xPosition = xPos;
    this._yPosition = yPos;
    * moving in
    public function moveIn():Tween {
    var mc:MovieClip = this._mcTarget;
    mc._visible=true;
    var tween:Tween = new Tween(mc, "_x", Strong.easeOut, 0, 0, 1, true);
    var tween:Tween = new Tween(mc, "_y", Strong.easeOut, 200, 0, 1, true);
    var tween:Tween = new Tween(mc, "_xscale", Strong.easeOut, 30, 100, 1, true);
    var tween:Tween = new Tween(mc, "_yscale", Strong.easeOut, 30, 100, 1, true);
    var tween:Tween = new Tween(mc, "_alpha", Strong.easeOut, 0, 100, 1, true);
    return tween;
    * moving in
    public function moveOut():Tween {
    var mc:MovieClip = this._mcTarget;
    var tween:Tween = new Tween(mc, "_alpha", Strong.easeIn, 99, 0, 1, true);
    var tween:Tween = new Tween(mc, "_x", Strong.easeIn,0, 1000, 1, true);
    var tween:Tween = new Tween(mc, "_y", Strong.easeIn, 0, -50, 1, true);
    var tween:Tween = new Tween(mc, "_xscale", Strong.easeIn, 100, 50, 1, true);
    var tween:Tween = new Tween(mc, "_yscale", Strong.easeIn, 100, 50, 1, true);
    return tween;
    /////////////////////////////// CODE ENDS ///////////////////////////////////////
    As in the current case, the name of the movieclip which has the image (originally polaroid) is being read through the variable _imageMC which we hadd given the value "polaroidTest".
    The animation shows no image even when i have inserted the correct url (i m sure this step isn't wrong).
    Any clues?

  • Se pueden analizar archivos de sonido .wav con labview 4.1?

    Tengo que realizar el simulador de un analizador de espectros, y una de mis dudas es si con labview 4.1 se pueden analizar archivos de sonido .wav, y si no se puede que version deberia de utilizar?
    Como he de empezar? que .VIs tengo que utilizar?
    Gracias

    Hola Juan Carlos:
    Gracias de nuevo por tu atenci�n.
    Me has renpondido a mi pregunta en cuanto al detector de envolvente, de tal forma que ya se como realizar ahora la deteccion de envolvente.
    Pero yo no quiero realizar exactamente una modulaci�n AM, es algo parecido.
    Te explico:
    El analizador de espectros Heterodino consta de diversos bloques.
    -Entra la se�al, esta se�al hemos de desplazar en frecuencia (la modulamos) multiplicandola por un oscilador (oscila entre dos frecuencias de manera continua dependiendo de un tiempo de barrido).
    - Asi ya tenemos la se�al desplazada; Ahora bien tenemos que localizar la frecuencia de la se�al mediante un filtro paso banda (filtro IF) Este filtro tiene una frecuencia intermedia del orden del oscilador local. Las frecuencias del oscilador local y del filtro son mucho mas altas que la frecuencia de la se�al
    - Con este filtro me dejara pasar la frecuencia de la se�al cuando la frecuencia intermedia del filtro sea igual a la frecuencia del oscilador(hemos de recordar que esta variando entre dos valores con un tiempo de barrido) menos la frecuencia de la se�al.
    ej: si frecuencia del fitro es 3,6 GHz, frecuencia del oscilador 3,6-3,7 GHz, y la frecuencia de la se�al 1 MHz; entonces cuando la se�al del oscilador suba a 3,601 GHz, el filtro la dejara pasar, y ahi es donde entra el siguiente bloque
    - El siguiente bloque detecta la envolvente(la amplitud) de la se�al que ha pasado por el filtro;
    - El siguiente bloque ya seria un filtro de video para suavizar, con deteccion peak positive o peak negative o muestreo.
    - Luego ya iria a la pantalla, a la cual esta conectada el barrido que lleva el oscilador.
    Asi pues es esto lo que tengo que hacer, previamente ya he tenido que hacer un generador de se�ales para introducirselas a este analizador. Y otra cosa que debo realizar (que es la primera duda que me resolvistes) es ver el espectro de un archivo WAV, es decir en vez de introducir a mi analizador una se�al cualquiera, introducirle un archivo wav para ver su espectro.
    De momento no tengo mas dudas, y ante todo agradecerte tu atenci�n.
    Un cordial saludo :
    Miguel
    Attachments:
    Bloques.jpg ‏5 KB

  • Mi iPad 2 no tiene sonido, solo con audífonos, que hago, Mi iPad 2 no tiene sonido, solo con audífonos, que hago

    Mi iPad 2 no tiene sonido, solo son audífonos, ya lo lleve hace 3 días a la tienda Apple, volvió a sonar pero otra vez no suena, que hago?

    Puede ser un tema de configuración del botón que hay al lado del volumen.
    Configurad ese botón para que sea el mute del sonido eso se hace en Configuración.
    Después modificando la posición de ese conmutador vuestro iPad volverá a sonar.
    Suerte!

  • Fijar dato a un combo con ActionScript

    Hola:
    Alguien me puede decir con qué instrucción puedo
    cambiar el valor actual de
    un combo para luego leerla con .getValue()??
    He buscado la instrucción pero no la encontré.
    Muchas gracias.
    Federico

    Hola:
    Alguien me puede decir con qué instrucción puedo
    cambiar el valor actual de
    un combo para luego leerla con .getValue()??
    He buscado la instrucción pero no la encontré.
    Muchas gracias.
    Federico

  • FLA CS3

    Hola, he estado buscando en las noticias de este foro que se
    ha descargado
    mi outlook y no encuentro algun topic (que me imagino que si
    que debe estar
    por ahi)
    que hable sobre las novedades y ventajas (escrita por
    usuarios) que
    obtendria sobre esta nueva version de flash.
    Alquien podria compartir aqui un link o comentarme sobre esta
    version?
    Saludos cordiales
    Paco

    Gracias tocayo :)
    echare un vistazo y espero tambien leer por aqui los
    comentarios de
    usuarios.
    saludos cordiales
    "Fco. Moreno" <[email protected]> escribió
    en el mensaje
    news:f751se$d4s$[email protected]..
    > Hola tocayo, antes de nada estaría bien que te
    eches un vistazo a la
    > presentación que hizo Alberto González de
    Mx-Riactive y que Edgar tiene
    > publicado en la web del grupo de usuarios.
    >
    http://riactive.com/2007/04/17/novedades-de-flash-cs3/
    > Luego Juan seguro que estará encantado de hacernos
    una restrocpectiva más
    > avanzada. Ya espero su habitual artículo de
    impresiones.
    >
    > Un saludo
    >
    > "YaC" <[email protected]> escribió en
    el mensaje
    > news:f74vra$arq$[email protected]..
    >> Sir Juan, preparados... listos.... YA! ;-)
    >>
    >>
    >> "Paco" <[email protected]> escribió
    en el mensaje
    >> news:f74u1h$8rk$[email protected]..
    >>> Hola, he estado buscando en las noticias de este
    foro que se ha
    >>> descargado mi outlook y no encuentro algun topic
    (que me imagino que si
    >>> que debe estar por ahi)
    >>> que hable sobre las novedades y ventajas
    (escrita por usuarios) que
    >>> obtendria sobre esta nueva version de flash.
    >>> Alquien podria compartir aqui un link o
    comentarme sobre esta version?
    >>>
    >>> Saludos cordiales
    >>> Paco
    >>>
    >>
    >>
    >
    >

  • [FLA MX] dibujar una linea con as teniendo dos puntos

    Saludos forer@s:
    Pues eso, quiero que el usuario cree su propia ruta sobre un
    mapa dado y
    quiero que vaya haciendo una l�nea a trav�s de
    puntos.
    saludos
    http://www.arousa-norte.es
    http://www.acquariumgalicia.com
    http://www.e-imaxina.com
    http://www.osalnes.com
    http://www.stsanxenxo.com
    http://www.hotelperegrina.com
    http://www.campingmoreiras.com
    http://www.escapateaogrove.com
    http://www.turismogrove.com
    http://www.atlantika.net

    Buenos días señor,
    la herramienta 'convertir punto de ancla' (V) con movimiento
    de la ráton (applicado a un rincón punto de ancla) hace dos
    manejadores de contraria dirección, que pueden mover sólo
    al mismo tiempo.
    Por separar los manejadores, emplear la herramienta 'V' otra
    vez al fin de un manejador, con movimiento de la ráton.
    No sé si he entendido el problema exacto (yo hablo sólo un
    poco de español).
    Cordiales saludos --Gernot Hoffmann
    The tool 'Convert anchor' (V) with mouse movement (applied
    to a corner point) creates two handles in opposite direction
    which can move only simultaneously.
    In order to separate the handles, apply the tool (V) once
    more at the end of one handle, moving the mouse.
    I'm not sure whether I understood your problem correctly
    (I'm talking only a litte Spanish).
    Best regards --Gernot Hoffmann

  • {Flash mx 2004} Ayuda con ActionScript, eventos y componentes

    Buenos días,
    Necesito ayuda, debido a que soy aprendiz y tengo
    problemillas, os cuento:
    Tengo 2 radioButton en un formulario que indican el sexo de
    una persona
    (masculino o femenino). Dichos radio Button los tengo
    asociados mediante la
    propiedad groupName.
    Por otro lado tengo 2 textInput no visibles, y dependiendo de
    si pinchan en
    un radiobutton u otro quiero poner visible un textInput u
    otro.
    No se si hay algún evento que detecte al instante cuando
    se pincha en un
    radiobutton o en otro.
    Se que esto es fácil, pero no se como hacerlo.
    ¿Me ayudas?
    Muchas gracias.

    Buenos días,
    Necesito ayuda, debido a que soy aprendiz y tengo
    problemillas, os cuento:
    Tengo 2 radioButton en un formulario que indican el sexo de
    una persona
    (masculino o femenino). Dichos radio Button los tengo
    asociados mediante la
    propiedad groupName.
    Por otro lado tengo 2 textInput no visibles, y dependiendo de
    si pinchan en
    un radiobutton u otro quiero poner visible un textInput u
    otro.
    No se si hay algún evento que detecte al instante cuando
    se pincha en un
    radiobutton o en otro.
    Se que esto es fácil, pero no se como hacerlo.
    ¿Me ayudas?
    Muchas gracias.

  • Ayuda con ACTIONSCRIPT 3

    Hola a todos, estoy instanciando los clips usando FOR pero al hacer clic sobre los botones no abre los vinculos xfavor espero q me puedan ayudar soy nuevo en AS3 les dejo el ejemplo www.peruhostingplus.com/duda2/
    Gracias x la respuesta q me pudieran dar......

    Yo hablo espanol un poco solamente.  Habla Ingles? If so...
    change line 12 to be...
        botones.addEventListener(MouseEvent.CLICK, vinculos);
    Do not nest your vinculos function inside the loop, move it outside, and change it as follows...
    for(var...etc){
         // botones code solamente
    function vinculos(evt:MouseEvent):void {
         switch(evt.currentTarget.nombres.text){
              case "Home":
                   navigateToURL(etc....;
                   break;
              case ""About us":
                   navigateToURL(etc...;
                   break;
              case "Client":
                   navigateToURL(etc....;
                   break;
              case ""Contact":
                   navigateToURL(etc...;
                   break;

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • FLA :: LoadMovieNum

    Tengo varias pel�culas cargadas con loadmovienum ahora
    lo que quiero hacer
    es que al pinchar sobre un bot�n no me cargue
    nuevamente la pel�cula ya
    cargada y s�lo cargue la pel�cula nueva. Por
    ejemplo si se esta ejecutando
    un sonido no lo corte si es el mismo y cargue el nuevo cuando
    corresponda.
    Se hace con listener ? que no entiendo... o con if ? Me
    podr�n ayudar con el
    escript
    Gracias
    Hugo

    Uff mil gracias, lo pruebo.
    Buen fin de semana a vos
    Hugo
    "gusmania" <[email protected]> escribi� en el
    mensaje
    news:[email protected]...
    > // primero creas el objeto sound
    > sonido = new Sound();
    > /////////////////////
    > // luego declaras las variables
    > son1_var = 0;
    > son2_var = 0;
    > son3_var = 0;
    > ///////////////////
    > // y armas las funciones para accionar los botones
    (puede que se pueda
    > hacer m�s corto...)
    > boton1_btn.onRelease = function() {
    > if (son1_var == 0) {
    > sonido.stop();
    > // por si existe otro sonido "sonando"
    > sonido.attachSound("son1");
    > sonido.start();
    > son1_var = 1;
    > son2_var = 0;
    > }
    > };
    > boton2_btn.onRelease = function() {
    > if (son2_var == 0) {
    > sonido.stop();
    > sonido.attachSound("son2");
    > sonido.start();
    > son1_var = 0;
    > son2_var = 1;
    > }
    > };
    >
    > espero que esto te sirva y buen fin de semana
    >
    > saludos.gusmania
    >
    >
    > "Hugo Beghelli" <[email protected]> escribi� en
    el mensaje
    > news:[email protected]...
    >> Ok me parece bien lo que dices.
    >> Pero no soy tan bueno con el script.
    >> Dime si esto es correcto
    >>
    >> misonido = new Sound();
    >> misonido.attachSound("son_1");
    >> misonido.attachSound("son_2");
    >> misonido.attachSound("son_3");
    >> misonido.attachSound("son_4");
    >> misonido.start("",9999) = 1;
    >> misonido.stop() = 0;
    >>
    >>
    >> luego en el boton seria algo asi:
    >>
    >> on (release) {
    >> if(son_1 == 1, son_2 == 0, son_3 == 0, son_4 == 0) {
    >> no reinicio el sonido; // esto no lo entiendo como
    lo escribo
    >> } else{
    >> inicio sonido; // esto ser�a
    "misonido.start("",9999);
    >> }
    >>
    >> Es algo asi lo que me dices.
    >> Pero si lanzo un sonido asi no se mezclaria con los
    otros?
    >> Mil gracias
    >> Hugo
    >>
    >>
    >>
    >> "gusmania" <[email protected]> escribi�
    en el mensaje
    >> news:[email protected]...
    >>> Bueno eso podr�as solucionarlo con
    variables, es decir, cuando inicias
    >>> un sonido le das un valor 1 a la variable
    correspondiente y la pones en
    >>> cero cuando lo detienes, por ejemplo: son_1 = 1;
    son_2 = 0;... etc.
    >>> entonces con un
    >>> if(son_1 == 1) {
    >>> no reinicio el sonido;
    >>> } else{
    >>> inicio sonido;
    >>> }
    >>>
    >>> Espero te sirva
    >>>
    >>> saluDo.gusmania
    >>>
    >>>
    >>>
    >>>
    >>> "Hugo Beghelli" <[email protected]>
    escribi� en el mensaje
    >>> news:[email protected]...
    >>>> Gracias Gus
    >>>> Si si eso hago. Tengo varias peliculas que
    responden a contenidos,
    >>>> menu,
    >>>> sonidos, video, textos, etc.
    >>>> El tema es que para dsitintos items del menu
    le corresponden distintas
    >>>> m�sicas de fondo.
    >>>> La mayoria corresponde a una sola.
    >>>> El problema surge cuando quieres navegar por
    distintos items y para
    >>>> cubrir
    >>>> todas las posibilidades de navegaci�n
    debes cargar en cada boton la
    >>>> m�sica
    >>>> de ese nivel.
    >>>> Si uno podr�a identificar el sonido
    que se esta reproduciendo, podria
    >>>> elegir
    >>>> solo cambiar el sonido cuando corresponde y
    no iniciar nuevamente la
    >>>> ejecuci�n del sonido que se esta
    reproduciendo.
    >>>> Igual creo haber llegado a una
    soluci�n sin usar algun escript. Hacer
    >>>> un
    >>>> menu para cada sonido. Es mas laborioso pero
    va a funcionar.
    >>>>
    >>>> Igual me sigue interesando saber si se puede
    con actionscript
    >>>> identificar un
    >>>> sonido que se esta reproduciendo.
    >>>>
    >>>> Gracias
    >>>> Hugo
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>> "gusmania" <[email protected]>
    escribi� en el mensaje
    >>>> news:[email protected]...
    >>>>> Hola Hugo, creo que en sentido
    pr�ctico s�lo tendr�as que crear una
    >>>>> pel�cula de base en donde tengas
    lo que debe quedar (m�sica, men�...
    >>>>> etc) y luego cargues en otros niveles o
    en clips vac�os las dem�s. No
    >>>>> veo la necesidad de listeners.
    >>>>>
    >>>>> saludos.gusmania
    >>>>>
    >>>>>
    >>>>> "Hugo Beghelli" <[email protected]>
    escribi� en el mensaje
    >>>>>
    news:[email protected]...
    >>>>>> Tengo varias pel�culas
    cargadas con loadmovienum ahora lo que quiero
    >>>>>> hacer es que al pinchar sobre un
    bot�n no me cargue nuevamente la
    >>>>>> pel�cula ya cargada y
    s�lo cargue la pel�cula nueva. Por ejemplo si
    >>>>>> se esta ejecutando un sonido no lo
    corte si es el mismo y cargue el
    >>>>>> nuevo cuando corresponda.
    >>>>>> Se hace con listener ? que no
    entiendo... o con if ? Me podr�n ayudar
    >>>>>> con el escript
    >>>>>> Gracias
    >>>>>> Hugo
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Cargar animaciones dinámicamente

    Hola:
    Quiero saber si se puede hacer esto:
    Tengo una animación "principal.swf" que se va
    posicionando en distintos
    fotogramas al presionar un botón. Funciona más o
    menos como una presentación
    de PowerPoint. Esta animación "principal.swf" tiene una
    estructura fija y
    una serie de elementos que siempre estarán presenten.
    Pero hay otros que no.
    Supongamos que se llaman animacion1.swf, animacion2.swf etc.
    Lo que quiero
    saber es si es posible llamar desde "principal.swf" a estas
    animaciones y
    mostrarlas en el contexto de "principal.swf". La idea, por
    supuesto, es que
    yo voy a ir modificando animacion1.swf, animacion2.swf, etc.
    y voy a
    utilizar "principal.swf" para llamar estas animaciones que
    pueden cambiar de
    un día para otro.
    ¿Se entiende?
    ¿Se puede hacer esto con ActionScript?
    Muchas gracias.
    Federico

    Juan:
    Muchas gracias. Ya me hago alguna idea de cómo hacerlo.
    Por suerte, tengo
    una base de C++ y veo que ActionScript tiene una estructura
    similar.
    Un saludo.
    Federico
    "Juan Muro `8¬}" <[email protected]>
    escribió en el mensaje
    news:[email protected]...
    > Sí es muy cierto lo que dice Don Carlos, aunque
    meterse con las clases sin
    > haber entendido tan siquiera los niveles me parece un
    poco apresurado para
    > Don Federico.
    > La clas MovieClipLoader() es un excelente instrumento
    para controlar las
    > precargas de archivos externos, sin duda, quizá
    demasiado bueno, por
    > demasiado grande y complejo, para lo que se requiere en
    este caso.
    > En Flash existen los niveles, que son como las capas de
    Photoshop,
    > acetatos transparentes que se superponen unos a otros.
    La diferencia es
    > que los niveles serían como acetatos con fondo
    transparentes que se
    > superponen en el reproductor Flash Player y que cargan y
    reproducen
    > películas swf, unas sobre otras. Además
    tenemos siempre posibilidad de
    > controlar una película cualquiera desde cualquier
    otra.
    > Tu película principal siempre será la que
    está en el nivel cero (_level0)
    > y desde ella puedes cargar cualquier película en
    otro nivel superior, por
    > ejemplo cargamos la película llamada segunda.swf en
    el nivel 324 así:
    > loadmovieNum("segunda.swf",324);
    > y si la queremos descargar solo habría que decir:
    > unloadMovieNum(324);
    > Si desde la película base queremos mandar el
    cabezal reproductor al
    > fotograma 17 de la película cargada en el nivel
    324, le decimos:
    > _level324.gotoAndPlay(17);
    > Y así con todo.
    > Es tan sencillo como eso.
    > Salu2
    > `8¬}
    > Juan Muro
    > "Federico Ezequiel" <[email protected]>
    escribió en el mensaje
    > news:[email protected]...
    >> Mil gracias.
    >> Voy a investigar.
    >>
    >> Federico
    >>
    >> "Carlos Velasco"
    <[email protected]> escribió en el mensaje
    >> news:[email protected]...
    >>> Mira la clase MovieClipLoader y el tutorial que
    tienen.
    >>>
    >>> También te interesa controlar la
    función createEmptyMovieClip, de la
    >>> clase MovieClip, ya que los swf externos
    tendrás que volcarlos en
    >>> MovieClips que generes dentro de tu línea
    de tiempo, para que se
    >>> visualicen.
    >>>
    >>> Lo mejor es que te generes tu propia clase de
    cargas, controlando el
    >>> tema de precargas, posicionamiento, enmascarado,
    etc...
    >>>
    >>> Un saudo.
    >>>
    >>
    >>
    >
    >

  • Can;t add actionscript to button

    hey guys, i've created a button from a piece of text in flas
    CS3, and i want to add some actionscript to skip to another frame
    on mouse click, i've done it before on flash 8, and it worked but
    on CS3 it says "current selection cannot have actions applied to
    it". anyone know why and how i can get round it?
    cheers,
    Curtis.

    your buttons are being controlled by a timeline based tween
    and therefore will not become operable until they encounter the
    code responsible for their events on the timeline. use some script
    for your fades instead of relying on the time line, that way you
    can have the buttons and all their necessary code on the same frame
    - in your case frame 1 - (make sure your code is on a layer labeled
    "actions" atop all your other layers - nothing should ever be on
    your "actions" layer except script).

Maybe you are looking for

  • I can't sync my playlists from iTunes to my phone!

    I can't sync my playlists! I've tried dragging the playlist to my phone and it says it's syncing but it's not appeared on my phone. I click on the drop down menu from the phone and it says that all the playlists are there, but they're not actually th

  • How can I delete all these mysteriously empty albums

    I need to clean out the photos and folders/albums which are in my iPad "Photo" app (NOT iPhoto). For some reason, at some point, folders/albums which previously held photos seem to be empty and grayed out. I want to delete them. I click "Edit" but wh

  • Thin white border showing

    Hi all, when I have a document filling the screen (i.e. click ctrl+0) there is a thin white border surronding the image (see attachment). This does not show at any other magnification. Not happened in any other PS iteration (long word!) Can anyone te

  • Reading a text file with GUI_UPLOAD

    Hello,   I'm trying to read a text file into an internal table of text lines using GUI_UPLOAD. The problem is that I can only read a maximum of 255 characters from each line. So for example, if the first line in the text file contains 260 characters,

  • Tree UIBB

    In Tree UIBB can we configure the columns dynamically...? I have a requirement :  According to  option selected by user on UI the tree table columns will differ. So we want to configure the column at runtime (Dynamically) and not during design time u