Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    AS3 intercettare fine del filmato

    Ho un flv da caricare. il caricamento funziona, ma vorrei intercettare la fine del filmato.

    Il codice sotto funziona ad eccezione dell'onPlayComplete, che non da errore, ma non mi fa nemmeno vedere i trace. Non so come fare...

    Codice PHP:
    var VideoNave:Video = new Video(1366575);
    var 
    nave:DisplayObject sfondo.addChild(VideoNave);
    var 
    nc:NetConnection = new NetConnection();
    nc.connect(null);
    var 
    mioStream:NetStream = new NetStream(nc);
    VideoNave.attachNetStream(mioStream);
    mioStream.play("backgrounds/viaggio_nave.flv");
    var 
    mioClient:Object = new Object();
    var 
    Nduration:Number 0;

    mioClient.onMetaData = function(meta:Object)
    {
        
    Nduration meta.duration;
        
    trace("tempo: "+mioStream.time);
        for (var 
    prop:String in meta) {
            
    trace(prop ": " meta[prop])
        }
    };

    mioClient.onPlayStatus onPlayComplete;

    function 
    onPlayComplete(data:Object):void{
        
    trace("fine filmato");
        
    trace(data.code);

    Rey
    La vita è un panaro, non sai mai quello che ti esce!
    photorealistic 3D rendering and animations and WEB Design

  2. #2
    non ci riesco...

    vi prego... aiuto...



    e grazie in anticipo.

    Ivan
    Rey
    La vita è un panaro, non sai mai quello che ti esce!
    photorealistic 3D rendering and animations and WEB Design

  3. #3
    non c'è modo?
    Rey
    La vita è un panaro, non sai mai quello che ti esce!
    photorealistic 3D rendering and animations and WEB Design

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.