[Papervision3D] Adding flash object to papervision scene?
|Mirko
msabljic at gmail.com
Sat Feb 9 12:59:38 PST 2008
Thank you Lawrence for your example, i am aware of that but maybe i didn't
explain my "problem" good.
I am using drawing API for drawing a rectangle with some graphics inside it
and then i would like to add that graphics which is infact movie clip to
papervision scene, i am not trying to add it to a plane object or something
else, just want to add it to a scene.
Justin Lawerance Mills wrote:
>
> Mirko
>
> | would try a snipit like this in the middle of your pv class
>
> // mc is a movieclip with a _alpha = 0 fill of the size you want to
> draw over.
> addChild( mc );
> mc.x = -1000;
> mc.y = -1000;
> var mat:MovieMaterial = new MovieMaterial( mc, true, true, true );
> mc.lineStyle(1,0xFF0000,100);
> mc.lineTo(10,10);
> var plan:Plane = new Plane(mat, mc.width, mc.height, 5, 5);
> scene.addChild(plan);
>
> If you want to draw on the actual planes with the mouse then it would
> be more complex.
>
> cheers
>
> Justin
>
>
> On 9 Feb 2008, at 18:31, |Mirko wrote:
>
>>
>> Hi papervisioners,
>>
>> I was wondering, what's the way to add let's say flash object
>> drawed using
>> built in drawing api to papervision scene? I mean, do i add it to
>> stage
>> using stage.addChild(object) or i add it to papervision's viewport
>> or smth
>> else?
>>
>> thanks,
>> best regards
>> --
>> View this message in context: http://www.nabble.com/Adding-flash-
>> object-to-papervision-scene--tp15383124p15383124.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/Adding-flash-object-to-papervision-scene--tp15383124p15390026.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list