Hi to all
I use reflection effect for video. But I want to draw not horizontal
line between video and reflection Mc. So I mask my video with shape:
var distance:Number=20;
function drawShapeMask(mc:MovieClip, startX:Number, startY:Number,
w:Number, h:Number) {
mc.beginFill(0xFF);
Hi Natalia,
I recently wrote a reflection class that takes masking into account, it
takes masks into account, hope it helps:
http://objectpainters.com/blog/2008/11/23/visual-reflections-in-as2/
Gots lots of samples in the zip including video.
greetz
JC
On Tue, Apr 28, 2009 at 10:26 AM, natalia
Yes, I saw these excellent examples and learned a lot. But it does not
help with this situation. Do you have example where you have masked
video?
2009/4/28 Hans Wichman j.c.wich...@objectpainters.com:
that takes masking into account, it takes masks into account - some days
I'm like a broken
Hi,
no don't think so, there is an example in there of a masked clip, and a
sample of video.
I'm assuming you've tried my code with masked video and it didn't work, or
are you asking me to try that for you? I wasn't quite sure;). Because I see
no reason why it wouldn't work :)
regards,
JC
On
Yes I could not get correct rusult with masked video using neither
your code nor my code.
2009/4/28 Hans Wichman j.c.wich...@objectpainters.com:
Hi,
no don't think so, there is an example in there of a masked clip, and a
sample of video.
I'm assuming you've tried my code with masked video
that takes masking into account, it takes masks into account - some days
I'm like a broken record lol
On Tue, Apr 28, 2009 at 11:28 AM, Hans Wichman
j.c.wich...@objectpainters.com wrote:
Hi Natalia,
I recently wrote a reflection class that takes masking into account, it
takes masks into
Hmmm,
might be that some values end up negative while they shouldn't or as floats
while they should be integers.
To be honest, I don't completely understand what you are trying to do in the
left image, the lower part has to have an angle in it?
I'm not sure that's going to work without skewing of
I found that if I use layer mask reflection code works correctly
http://www.natavi.co.uk/test/video_perspective.html
If I try to use script mask over my video clip
var videoMaska=this.createEmptyMovieClip(videoMaska,100);
videoMaska._x=myVideo_mc._x;
videoMaska._y=myVideo_mc._y;
nice find!
I wonder what happens if you nest the video_mc and its coded mask into
another parent clip and reflect that.
regards,
JC
On Tue, Apr 28, 2009 at 2:15 PM, natalia Vikhtinskaya natavi.m...@gmail.com
wrote:
I found that if I use layer mask reflection code works correctly
I did. It looks strange but result is the same wrong.
If say about such simple code:
var myBitmapData = new flash.display.BitmapData(bounds.width,
bounds.height, true, 0xFF);
myBitmapData.draw(video); //this is a clip with code mask and video
clip inside
var
I should add that this is wrong because gives wrong line between clips.
2009/4/28 natalia Vikhtinskaya natavi.m...@gmail.com:
I did. It looks strange but result is the same wrong.
If say about such simple code:
var myBitmapData = new flash.display.BitmapData(bounds.width,
bounds.height,
Solved.
I have clips: mainClip - myVideo_mc - clip with video
I use code mask for mainClip
For reflection I draw bitmap from nested myVideo_mc
var myBitmapData = new flash.display.BitmapData(bounds.width,
bounds.height, true, 0xFF);
myBitmapData.draw(myVideo_mc);
var
12 matches
Mail list logo