This content has been marked as final. Show 9 replies
does myVideo exist? if you use trace(myVideo) what's it show?
if it exists, is the draw method executed after the video feed is received? ie, not the way shown in your code.
thankyou for your reply
myVideo is exists
trace(myVideo) returns "_level0.myVideo"
i've tried to add the draw function into a button so that can avoid the draw method executed before the video feed is received
but it still drawing a blank white background
tried to set a onEnterFrame, still white background
or are there anyother ways to perform my situration?
are myVideo._width and myVideo._height defined when you create your bitmapdata instance?
yes, the myVideo object is create from library and drag on the stage
trace() returns them correctly
and the size of bitmap is correct too
just wonder why cant draw my camera's image into bitmapData
also i subsuitute the this.createEmptyMovieClip("hihi", this.getNextHighestDepth()) as Ctrl+F8 then draw somthing on it
but still wont work
are you seeing the video stream from your webcam?
everything is fine
vars exists and have the correct value
my Camera is working well
the camera Object is working well
the Video object is playing the my webcam correctly
the only problem is cannot draw the camera image into BitmapData
would u show me a correct code to draw a camera image into bitmapdata?
sorry for bringing u trouble...
thankyou so much!
but still do you know where is the mistake on my code?
no, i don't see a problem with your code. does the code i supplied work?