programmatically take picture after every 5 seconds on mobile phone


hi, can please tell me how capture picture programmatically after every 5 seconds. can attach camera video component have added display list. once user presses button app should start collecting snap shot data every 5 seconds.

 

i not want launch native cameraui app , should within app.

 

i have camera display visible in app how issue takepicture command??

 

thank

for every 5 seconds part, can use timer class.

 

http://help.adobe.com/en_us/flashplatform/beta/reference/actionscript/3/flash/utils/timer. html

 

or can listen enterframe events , use counter depending on fps.

 

 

for picutre capturing part, simpliest way probably

 

bitmapdata.draw(yourcameraobject);

 

http://help.adobe.com/en_us/flashplatform/beta/reference/actionscript/3/flash/display/bitm apdata.html

 

 

not sure if want save bitmaps or not. don't know methods myself if need more info suggest specify details other people can easier. things save location (cameraroll, app directory, cloud, etc),  , if want convert pics format, etc.

 

good luck



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support