Hola, Estoy Haciendo Un Experimento Al Parecer Sencillo Pero me this costando Mucho Trabajo
El Experimento consiste en USAR EL flarmanager párrafo colocar sin vídeo y Que despues de Que quites El Marcador El vídeo viéndose SIGA.
Ya vi el código DE COMO PONER vídeo en Flarmanager y si Logre usarlo, también uso de Referencia El Codigo del Reproductor, Pero cuando quiero Fusionar los dos Código, EL RESULTADO ES Que mi vídeo desaparece, ¿ Que Estoy Haciendo mal?
dejo El Codigo Haber, Que opinan
- paquete
- {
- importación com.greensock.TweenMax;
- importación com.greensock.easing .*;
- importación com.transmote.flar.FLARManager;
- importación com.transmote.flar.marker.FLARMarker;
- importación com.transmote.flar.marker.FLARMarkerEvent;
- com.transmote.flar.utils.geom.FLARPVGeomUtils de importación;
- importación flash.display.Sprite;
- importación flash.events.Event;
- flash.display.BitmapData de importación;
- importación org.libspark.flartoolkit.support.pv3d.FLARBaseNode;
- importación org.libspark.flartoolkit.support.pv3d.FLARCamera3D;
- importación org.papervision3d.materials.MovieMaterial;
- importación org.papervision3d.objects.DisplayObject3D;
- importación org.papervision3d.objects.primitives.Plane;
- importación org.papervision3d.render.LazyRenderEngine;
- importación org.papervision3d.scenes.Scene3D;
- importación org.papervision3d.view.Viewport3D;
- flar_Vid clase pública se extiende Sprite
- {
- fm private var: FLARManager;
- escenario private var: Scene3D;
- de vista privado var: Viewport3D;
- cámara privada var: FLARCamera3D;
- LRE private var: LazyRenderEngine;
- private var p: Plano;
- contenedor private var: FLARBaseNode;
- var privado captureBmd: BitmapData
- marcador var privado: FLARMarker;
- v private var: Vid;
- flar_Vid función pública ()
- {
- initFLAR ();
- }
- privado función initFLAR (): void
- {
- this.fm = new FLARManager ("flarConfig.xml");
- this.fm.addEventListener (FLARMarkerEvent.MARKER_ADDED, onAdded);
- this.fm.addEventListener (FLARMarkerEvent.MARKER_REMOVED, onRemoved);
- this.fm.addEventListener (Event.INIT, init3D);
- this.addChild (Sprite (this.fm.flarSource));
- }
- función privada onAdded (e: FLARMarkerEvent): void
- {
- this.marker = e.marker;
- this.p.visible = true;
- this.v.vid.play ();
- TweenMax.to (this.v.vid, 1, {alpha: una, la facilidad: Linear.easeNone});
- }
- función privada OnUpdated (e: FLARMarkerEvent): void
- {
- onAdded (e);
- }
- función privada onRemoved (e: FLARMarkerEvent): void
- {
- this.marker = null;
- TweenMax.to (this.v.vid, 1, {alpha: 0.8, la facilidad: Linear.easeNone});
- TweenMax.to (this.container, 1, {x: 0, y 0, rotationX: 0, rotationY: 0, rotationZ: 90, scaleY: -1, facilidad: Linear.easeNone});
- }
- función privada init3D (e: Event): void
- {
- this.scene = Scene3D nuevo ();
- this.camera = FLARCamera3D nueva (this.fm.cameraParams);
- this.view = new Viewport3D (640, 480, true);
- this.lre = new LazyRenderEngine (this.scene, this.camera, this.view);
- this.v Vid = new ();
- this.v.vid.source = "croma.flv";
- this.v.vid.stop ();
- this.v.vid.autoPlay = false;
- this.v.vid.alpha = 0;
- var tapete: MovieMaterial = new MovieMaterial (v, true, true);
- this.p = new Avión (colchoneta, 320, 240, 2, 2);
- this.p.scaleY = -1;
- this.p.rotationZ = 90;
- this.p.visible = false;
- this.container = this.scene.addChild (FLARBaseNode nuevo ()) como FLARBaseNode;
- this.container.addChild (this.p);
- addChild (vista);
- addEventListener (Event.ENTER_FRAME, circular);
- }
- bucle función privada (e: Event): void
- {
- if (! this.marker = null) {this.container.transform = FLARPVGeomUtils.convertFLARMatrixToPVMatrix (this.marker.transformMatrix);}
- this.lre.render ();
- }
- }
- }
Otra Question Por Que El Codigo no Respeta la Transparencia de mi vídeo
gracias
ENVIADO HACE 21 HORAS. # RESPONDER

está sin resolver