Peter THANKS A LOT!!!!! It works)) it works it works...=)

On 31 мар, 20:19, Peter Kapelyan <[email protected]> wrote:
> Replace this line in your code with this correct one:
>
> swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadedFunc);
>
> then:
>
> public function swfLoadedFunc(e:Event):void
> {
>    var myMovieMat=new MovieMaterial(e.target.content, {interactive:true});
>    my3DObject.material= myMovieMat;
>
> }
>
> It's pretty simple, basically, Flash 101, exactly the same as loading a
> regular SWF, and how I mentioned about two months ago to you. Please et me
> know if it works for you.
>
> -Peter
>
> 2010/3/31 metSyS <[email protected]>
>
>
>
>
>
> > No. I need to transform loader into MovieMaterial and use it with
> > it(MovieMaterial)
> >  property - {intractive:true}. Some one know how to transform Loader
> > into MovieMaterial?
> > On 31 мар, 19:08, savagelook <[email protected]> wrote:
> > > Can you convert the SWF into an FLV and use a VideoMaterial instead?
>
> > > var planeMaterial:VideoMaterial = new VideoMaterial({file:"any.flv"});
>
> > > On Mar 31, 5:29 am, metSyS <[email protected]> wrote:
>
> > > > When we need to load some any.jpg, and transform it into
> > > > BitmapMaterial, we write next code:
>
> > > > var picLoader:Loader=new Loader();
> > > > picLoader.load(new URLRequest("any.jpg");
> > > > picLoader.addEventListener(Event.COMPLETE, picLoadedFunc);
>
> > > > public function picLoadedFunc(e:Event):void
> > > > {
> > > >         var planeMaterial:BitmapMaterial = new
> > > > BitmapMaterial(Cast.bitmap(e.target.content), {smooth:true, precision:
> > > > 2});
>
> > > > }
>
> > > > and how to transform loader into MovieMaterial??
>
> > > > var swfLoader:Loader=new Loader();
> > > > swfLoader.load(new URLRequest("any.swf");
> > > > swfLoader.addEventListener(Event.COMPLETE, swfLoadedFunc);
>
> > > > public function picLoadedFunc(e:Event):void
> > > > {
> > > >         //????????????????????????????????????????
>
> > > > }
>
> > --
> > To unsubscribe, reply using "remove me" as the subject.
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to