hey guys ... now my swf-file is loaded in a movieclip, but my problem
is how to get this applied as texture. My code for this is the
following:
private var mc:MovieClip;
private var laden:Loader;
private var url:URLRequest;
mc = new MovieClip();
addChild(mc);
laden = new Loader();
url = new URLRequest("intro.swf");
laden.contentLoaderInfo.addEventListener(Event.COMPLETE, geladen);
laden.load(url);
var mbildschirm:MovieMaterial = new MovieMaterial(mc);
tv = new Cube ( { material:mweiss, width:100, height:60, depth:6, y:
50, z:100 } );
tv.cubeMaterials.front = mbildschirm;
myScene.addChild(tv);
public function geladen(e:Event):void
{
trace("Externer Film wurde geladen!");
trace(e.target.content);
mc.addChild(laden);
}
the swf file is shown in front of my scene but it is not applied on
the "tv" = (
does anybody know where my problem is? Or did i go the wrong way?
greeeetz manu
On 4 Aug., 12:08, le_unam <[email protected]> wrote:
> what do you mean with container? what type of container? movieclip is
> okay?
>
> On 3 Aug., 15:49, Rich Elmes <[email protected]> wrote:
>
> > exactly
>
> > load the .swf into some container, pass the container as movieclip for
> > the material :)
>
> > On Aug 2, 2:30 pm, le_unam <[email protected]> wrote:
>
> > > hey thanks ... ehm i am able to handle a movieclip as texture
> > > (material) but i want to take a swf file. Do you mean that i should
> > > load the swf file into the movieclip and then use the movieclip as
> > > material?
>
> > > On 2 Aug., 14:37, Rich Elmes <[email protected]> wrote:
>
> > > > you want to
> > > > usehttp://away3d.com/livedocs/3.5.0_lib/away3d/materials/MovieMaterial.html
> > > > for your plane.material
>
> > > > also look at AnimatedBitmapMaterial
>
> > > > On Aug 2, 10:28 am, le_unam <[email protected]> wrote:
>
> > > > > hey guys ... is it possible to load an swf file as texture? how to do
> > > > > that?
> > > > > so we take an easy plane and the texture should be an swf file. any
> > > > > ideas?