PDA

View Full Version : as3 video/box tracking discussion



Keeno
August 17th, 2007, 09:22 AM
:red:

Hello all,

here is a scenario i would like some opinions/advice/ideas on.

I have some flv clips that a user needs to click on when certain things happen, they need to click on the correct area and becuase its a piece of video those areas are always moving.

example: your driving along a road in a car and you have to click on all the road signs you see.

Question:

got any ideas? :)

The only way i can really think of will be very time consuming to set up and thats having a set of coords for each clickable area for *every* single frame of the video.

your help will be greatly appreciated

Dazzer
August 17th, 2007, 10:45 PM
Sounds like it to me.

Perhaps, if there were particular regions which were "distinguishable" you could use bitmapData.draw(). And manipulate the bitmapData.

Keeno
August 30th, 2007, 10:06 AM
just thought i would update this with my genius solution incase it will help any of you out :)

here is what i am doing,

import the flv to the timeline
drawing a circle over the area and animiating it with tweens to follow the area of the screen
exporting that animation as motion XML
storing the XML in external XML file (as CDATA becuase it wont work otherwise)
importing the animation script as and when needed and applying the animation to shapes as the imported video plays

:D

real life saver that was.

Keeno
August 31st, 2007, 10:04 AM
booo its not a great solution ;(

on slower machines the animation i generate cant keep up with the video playback and i cant seem to sync them.

always a problem with independant timelines !