[Papervision3D] Accessing MovieClip / sub Class of MovieMaterial or MovieAssetMaterial
dwayneneckles
dwayneneckles at hotmail.com
Mon Apr 28 18:29:43 PDT 2008
Does this still work?
Its not working for me anymore..
// Build Materials
var planeFrontReflect = new MovieMaterial(frontReflectionClip)
planeFrontReflect .smooth= true
planeFrontReflect .interactive = true
var planeBackReflect = new MovieMaterial(backReflectionClip)
planeBackReflect.smooth= false
planeBackReflect.interactive = true
mp1 = new MaterialsList(
{
front: planeBackReflect,
back: planeFrontReflect,
right: new ColorMaterial(0x00ff00),
left: new ColorMaterial(0x00ff00),
top: new ColorMaterial(0x00ff00),
bottom: new ColorMaterial(0x00ff00)
} );
// Build the Cube
planeFront = new Cube(mp1, 100, 0, 96*2, 1, 1,1);
var mat:MovieMaterial= planeFront.materials.getMaterialByName("back") as
MovieMaterial
if (mat) {
var mc:MovieClip = mat.movie as MovieClip;
if (mc) {
trace(mc)
trace(mc.alpha)
mc.alpha= 0
trace(mc.alpha) // it changes to zero but not visually
//Tweener.addTween(mc,{alpha:0,time:0,delay:0});
}
}
;
John Grden-2 wrote:
>
> For archive sake:
>
> http://www.rockonflash.com/blog/?p=101
>
> On Jan 23, 2008 12:56 PM, John Grden <neoriley at gmail.com> wrote:
>
>> yeah
>>
>> var mat:MovieAssetMaterial = myPlane.material as MovieAssetMaterial;
>>
>> if( mat )
>> {
>> var mc:MovieClip = mat.movie as MovieClip;
>> if( mc )
>> {
>> // now you're talking to the movieclip that was used for the
>> material. Do what you will.
>>
>> }
>> }
>>
>>
>> On Jan 23, 2008 12:16 PM, <moveup at mac.com> wrote:
>>
>> > Hi
>> > I'm using a MovieClipAssetMaterial for a Plane object.
>> >
>> > The MovieClipAssetMaterial has two nested MovieClips.
>> >
>> > Is there any way to access these nested MovieClips AFTER the
>> > MovieClipAssetMaterial has been defined in the Plane?
>> >
>> >
>> > [f] www.flickr.com/photos/bitstream
>> > [c] 416.668.0034
>> > [w] www.bitstream.ca
>> > --------------------------------------------
>> > "...all improvisation is life in search of a style."
>> > - Bruce Mau,'LifeStyle'
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>>
>>
>>
>> --
>> [ JPG ]
>
>
>
>
> --
> [ JPG ]
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/Accessing-MovieClip---sub-Class-of-MovieMaterial-or-MovieAssetMaterial-tp15068507p16951690.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list