Using webcam to direct if music plays

Hi all,
I am using Flash CS3, and what I would like to do is relatively simple, but I am not that familiar with code and therefore would love some advice or help. I want to call up the webcam and make the camera's motions be tracked so that a song will play if there is movement from the camera. If there is no movement, the music stops. So far, I was able to call the camera to the stage and let me know when there is no movement, and insert the song on the timeline, but I don't know where to go from there.
Here is my code:
video.attachCamera(camera);
addChild(video);
camera.setMotionLevel(5, 1000);
camera.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
var t:Timer = new Timer(1000);
function activityHandler(e:ActivityEvent):void{
          if (e.activating == true){
                    t.start();
          else{
                    trace("Everything is quiet.");
                    t.stop();
Thanks for any help in advance
ps that link http://blog.soulwire.co.uk/flash/actionscript-3/webcam-motion-detectio n-tracking did not help me since I couldn't open the file, and what I'm trying to do is a little different I think.

Hello Clshannon1
Take a look at this list of Some Applications You Can Use With iSight. See the links for each individual application of interest for their features, system requirements, and terms of use.
Most of these apps will work with webcams other than iSight, too. Instructions on how to use each application comes from its documentation, so select the app that best balances the features you need against the ease of use you want.
Depending on what you want to do with your "live feed", applications from the Webcam Apps or surveillance or Nanny cam sections will probably do what you want with the least setup effort. If your specific use is for security monitoring, one of these apps may meet your needs:
• EvoCam
• SecuritySpy
• KeyCamX
For professional-level webcasting of live streaming video, Apple's QuickTime Broadcaster and QuickTime Streaming Server can do it all. However, their advanced features may require some study unless you are an experienced user.
EZ Jim
PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

Similar Messages

  • Using aux-in cable for music play-back in car.. help needed

    Has anyone had any issues using an aux-in cable for music playback with the S3? I know the cable works fine on other devices (itouch, moto x, etc) and headphones work fine on the device, but I cannot get thing to work using the aux-in cable in my car. I've gone through all the settings I could think of and nothing has worked. Any ideas would be most appreciated.

    I have not had that problem.  Are you using a standard 3.5mm stereo aux cable?  I have read a post in another forum that some posters with the same complaint simply were not pushing the plug in hard enough.  I know this sounds silly, but try again and push until you a absolutely positive it is in.  Also, try another cable if you can.  If it works with the headset that came with the phone, then the phone or aux port is probably not the problem.  You could also try another car with the same cable you have now.  Just some different thoughts for you.
    The one known issue is that when you are connected via the aux cable and get a call, the call audio is sent to the car speakers and the internal mic is used for your voice.  This happens even if you have a BT headset connected.  I hope they resolve this with the forth coming update.

  • HT1947 If you add music VIDEOS to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from diff playlist, no longer can see Up Next, just go to full screen mode button. Using remote app iphone 5 to play out of

    If you add music videos to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from different playlist, you no longer can see Up Next, just go to full screen mode button. Using remote app iPhone 5 to play out of iTunes. It looks like it works fine for regular music, but for music videos you can't see your up next unless you go back on the computer to change once you've left the screen. When using the remote app, you shouldn't need to go to iTunes on the PC to view or edit Up Next already added. See first image, you can hit upper right and get back to Up Next (second image). Third image is music video, where you can't get back to Up Next, just swap between full screen and not. I hoped 3.0.1 would have the answer, no luck!

    wow, very nice review Makes me want to get a vision for myself.
    WebKnight wrote:
    <SPAN>
    Add the ability to randomly select a new background from a pre selected group of photos every time the player is turned on or each day.
    I would love that feature. I can't stand useing my computer with a single wall paper anymore (I have 500 anime pics that i rotate between every 2 mins ) If you could make the vision rotate background every x minutes or every time the player is turned on, it would be totally amazeningly sweet!!!! (i might have to go out and buy one then :P)
    I just hope that creative has better firmware support with the vision than they have had with the touch.
    Once again, great review

  • I have just bought four songs from iTunes store using my iMac. I can play the music on my iMac and throughout my Apple TV. However after several restarts and double checks I can't get the four tunes to sync with either my iPhone or my iPad.

    I have just bought four songs from iTunes store using my iMac. I can play the music on my iMac and throughout my Apple TV. However after several restarts and double checks I can't get the four tunes to sync with either my iPhone or my iPad. All the software is up to date.

    do you use the same Apple ID on your iMac, your iPhone and iPad? This is a requirement.

  • HT204291 Is it possibly to have iTunes music play out of both the computer and AppleTV while using Airplay Mirroring for the TV?

    Is it possibly to have iTunes music play out of both the computer and Apple TV while simultaneously using Airplay Mirroring to view the computer screen on the TV? Whenever I try, by clicking on 'computer' radial button for volume in iTunes Airplay, the TV automatically reverts to the Apple TV screen. I usually end up using preferences to 'bring back' the audio to the computert while leaving the picture on the tv, but this means i have to suffer from the inferior sound quality of my Macbook internal speakers.

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod
    BTW this is the iPOd touch forum

  • I just purchased a Samsung DVD player with a USB port; says you can use a PC or player to play music; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod

    I just purchased a Samsung DVD player with a USB port; Samsung says you can use a PC or player to play music using the USB port; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod?  Or is there some ap?

    Skip the DVD player use an HDMI connection to your system.
    Use this http://store.apple.com/us/product/MD098ZM/A/apple-digital-av-adapter?fnode=3a&fs =s%3Dalpha
    or for just Audio use the 3.5 MM jack.

  • I had an ipod touch 4th gen and used the apple universal dock to play music through my stereo.  I just got a 5th generation and a lightning adapter but the adapter does not fit the universal dock.  Apple tech support has no solution, does anyone?

    I had an ipod touch 4th generation and used the Apple Universal Dock to play music through my stereo.  I just got the 5th generation and the lightning adapter but the adapter does not fit into the dock.  Apple tech support has no solution, does anyone?

    That is the adapter I purchased from Apple which does not fit in the Apple Universal cradle (which apparently is no longer universal).  However, I just created my own solution.  The cradle holds the dock connector at a slight angle so the adapter, which has a straight bottom edge, will not slide down far enough to make a connection.  Since the adapter has a plastic case, I used my Swiss Army knife to whittle it down to fit.  It's a no-tech solution, and free!

  • Podcasts crash - music plays unexpectedly when using headset

    iPhone 5s, IOS 7.0.4
    I listen primarily to podcasts using the podcast app from podcasts that I host on my home PC and download via my home WiFi network.
    I find that occasionally, the podcast will suddenly stop, requiring me to actually start the Podcast app again. The Podcast app remembers where I was, to within a second or so.
    Also, I find that if I use the apple headset to pause the play of the podcast, and I use the apple headset button to start again, music using the Music plays, not the podcast.
    Sometimes, in this situation, the music is playing and yet the task management (double tap home) shows the Music app isn't even running!
    I find this seems to happen more often when I leave WiFi range of my secured home network.
    I have WiFi on, but have 'Ask to join' disabled.
    This is annoying, particularly if I am riding my bike as I have to dig the iPhone out of my bag to 're-set' it.
    Anyone else experiencing this? Any idea on what I should do to mitigate or eliminate this behaviour?

    I deliberately go out of my way to use home-home and close the Music app.
    I don't want to listen to the music, I want to listen to my podcasts.
    Assuming Podcasts crashes, then using the button on the headset, the music app starts.
    If I could configure IOS to make the Podcast app start and resume where it left off when pressing the headset button, I would do it.
    If I wanted to listen to music, I would start the music app.
    Restarts of the phone don't fix it. I make a point of rebooting every few weeks, when I remember. For example, my current up-time is 17 days.

  • I use itunes to store my music but I use Virtual DJ Broadcaster to play it. Somehow itunes has changed from Itunes Music Library to Itunes library. Virtual DJ does not Recognize the change.

    I use itunes to store my music but I use Virtual DJ Broadcaster to play it. Somehow itunes has changed from Itunes Music Library to Itunes library. Virtual DJ does not Recognize the change. Virtual DJ  at present seeing an older version of my libraries. Is it possible to Save my last library and Playlist and re-name everything else in my itunes account so it will again show "Itunes Music Library" Past libraries are of no consiquence . I'm hoping removing everything except  the last Library on my computers will make Virtual DJ  recognize it. I tried renameing  the Library to "Itunes Music Library" but it did not work. I fear the problem is in the Registry and without the correct path I am reluctand to play around  in there. Any help would be appreciated.

    Incidentally, my first thought was to map a network share from the NAS to my computer, so that my music files appear on the Z: drive, say on my computer. I could then set up iTunes to store music etc in that folder, and to copy all new items to that folder. However, if I do that, all that'll happen is that on my NAS, the library file will become out of date as I add music to the collection but not to the index.

  • I just want to know why I cant directly download music to music app in iphone specially for people outside US whose cant use itune store ??!

    I just want to know why I cant directly download music to music app in iphone specially for people outside US whose cant use itunes store ??!
    I can do it in my mac why not iphone . This is a really huge mistake compare to android phones

    Hi Ferretbite
    Thank you for answering me but i dont think you relize what Iam asking for
    first itunes store need an American apple ID with an American credit to purchase  DIRECTLY  from iphone and this all people outside US dont have , so no one outside US and (major countries) can download  music directly from thier Iphone
    Second ,  if we assume I can download from itunes , itunes store dont have all the music you need for example Iam in middle east I listen to arabic music and itunes dont have most of the arabic music I listen to  and this is a HUGE problem for all costumers in middle east and similiar countries .
    Third, mac users can download music  from the internet other than itunes store  even if it illegal why that ?? and NOT all free websites are illegal  like (nogomistars) for arabic music .
    I just want to say that I love my iphone and I love apple. But you should give iphone users a free using for their phones  like  you do with mac users for the reason that i gave it you above .
    Sorry for the long reply tc

  • Why does the iPad Mini not have music play count?

    I bought an iPad Mini and also have a macbook. I had listened to various music on my iPad Mini the other day, however when I connected the iPad Mini to the Macbook and iTunes via the lightning connector to sync, it synced the ratings I gave the songs I listened to on the mini, but no play count, as if I had not listened to anything. I hope there is something I can do about this as I often look at my play count!!

    Katrina UK
    It should work work but these kind of bugs pop up between updates, both hardware and software. Try closing all apps in the recently used list on the iPad. Double tap the Home button, tap and hold one of the icons at the bottom till they wiggle then tap the to close them. Tap the Home button to get back to the Home screen then hold the sleep button till you see the slide to power off message. Once it has powered down completely hold the Sleep button till the Apple icon appears.
    tomyiiii
    Re: Why does the iPad Mini not have music play count? 
    Nov 18, 2012 11:34 AM (in response to Katrina UK)
    Does it even really matter...?
    Many people including myself rely on playcounts to control smart playlist to manage large libraries. Smart playlists can be created to show your most or least played tracks and used more or less as your favorites or other uses. Along with playcounts the date is transferred so to keep a fresh list of music on my smaller iPods a smart playlist set to songs not played in the last month keeps some fresh tunes on it.
    Playcounts are also used to manage Podcasts in iTunes to delete older episode. Bookmarks, which can also be effected by this, can mess up audiobooks, movies and podcast playback between different devices. So yes, it does matter.

  • I am not able to see toolbars, when I open a new window that window is not visible, if I open from bookmarks and there is music playing I hear it but canNOT SEE the websites.

    I am not able to see toolbars, when I open a new window that window is not visible, if I open from bookmarks and there is music playing I hear it but canNOT SEE the websites. I was able to get window open from the help "window" and open sites from there just not from new: window tab or bookmarks those stay invisible? I tried the help suggestions, safemode,etc.

    Hi CMorenoOT,
    This prompt is usually displayed when your Apple ID needs to be configured for the iTunes Store. You'll want to run through the additional steps to setup your country, and payment information.
    iTunes: How to set up an Apple ID within iTunes
    http://support.apple.com/kb/HT2731
    Tip: If you are trying to create an account using an existing Apple ID, like your iCloud email address, you will receive a prompt telling you that your email address is already an Apple ID. Simply tap Continue, and then tap Use Existing Account on the following screen.
    - Next, you'll be required to enter your billing information. To choose a different Credit Card type, tap one of the available options, and then tap Done. You will not be charged until you make a purchase.
    - Once you've filled out all of the fields for your billing information, tap Next.
    For more information:
    Using an existing Apple ID with the iTunes Store and Mac App Store
    http://support.apple.com/kb/HT2589
    Thanks,
    Matt M.

  • IPod Shuffle (2nd Gen) - All Appears Well, but No Music Plays through Buds

    I recently purchased yet another iPod Shuffle (2nd Gen), after frying the 1st one. This one synched and played well for about a month. Recently during a run it stopped playing. I assumed it needed to be charged. I fully charged. iTunes recognizes it - and displayed all my music. However, it still wouldn't play any music through the ear buds. I tried the reset (toggle on / off hold) - didn't work. I put it back on iTunes and reset it back to factory settings, reloaded it with music, iTunes still recognizes it, yet still won't play. It appears to be functioning properly - except for the "playing of music" part. iTunes recognizes it, the music is displayed in iTunes. When I turn the shuffle on the light glows green, then goes out. When I push the volume up or down - the green light blinks once for each push. When I push the skip forward or back button the green light blinks once for each push. No orange lights anywhere. But no music plays. Please help!!

    Just thought I'd post to say that I'm having the same problem.
    Everything appears to be normal with my shuffle: iPod syncs, all the lights are doing what they're supposed to be doing, I can see the music I put on the shuffle.
    I too went back to factory settings, reloaded tunes, etc. etc. I have also checked both the earbuds I'm using (they work) and tried the shuffle with other earbuds (earbuds I tested elsewhere and which also work)... no sound.
    Is it possibly related to the recent iTunes software update 8.0.2 (20)? I ran it on Friday and things were fine on my shuffle immediately after. But the next time I tried to use it -- no sound.
    That update is the only change I can think of that my shuffle experienced proximate to the problem.

  • I have Mac mini and I'm trying to listen to music through YouTube it works. But my problem is that instead of the music playing through the tv speakers it plays through the Mac box. ):

    I have Mac mini and I'm trying to listen to music through YouTube it works. But my problem is that instead of the music playing through the tv speakers it plays through the Mac box. ):

    Are you using HDMI or an Apple Airplay Module to go to the TV Speakers?
    If you are using an HDMI it's straight through output. The internal speakers are disabled.
    If you are using an Airplay Module:
    - Go on iTunes
    - Locate the Airplay icon that has a TV with an up arrow icon much like your iPhone has for Bluetooth
    - Click on that and Airplay to ModuleName

  • My new Ipad2 doesn't display any pictures during slideshow, although the music plays fine.

    I recently received an ipad 2 as a birthday gift from my wife, just before we hopped across the Atlantic to Europe (we wanted to make sure it worked well).  Now that we're here and I am fiddling with it more, I have found that when I play the slideshow feature either from the photos app or using the little flower icon on the lock screen, I cannot actually see any pictures.  The selected music plays during the slideshow, but there are no images displayed.
    How can I correct this problem?  I'm a little concerned about our location, because if I have to return it for warranty, I'm going to be challenged due to my location.  I'll be here for months, so I can't just wait until I go back...

    Verified - all photos is checked.  I tried a few other iterations without any positive results.  In all cases, the screen fades to black and displays nothing.
    Upon tapping the screen, I can see that it has progressed through several photos during the time the screen is dark.  This is interesting...indicating that the program is running, but without a proper display.
    This is an important feature for me. 

Maybe you are looking for

  • Create a new directory in existing Zip archive

    Hello Every One I want create a new folder in existing Zip archive. Can any one help in this regard. Thanks Edited by: SatishBejgum on Dec 18, 2007 12:42 AM

  • Itunes 11 no disk error

    I just loaded itunes 11 and i cant do anything. It says no disk in drive. please insert a disk into drive \device\Harddisk1\DR1/ any help please

  • Question on defining taglib in  web.xml

    I am using netbeans to develop a j2ee5 web application. I created a web application project using the wizard. When I defined a <taglib> in the web.xml, it detected an error. cvc-complex-type.2.4.a: Invalid content was found starting with element 'tag

  • Hostname Already in Use Changes?

    Frequentlly, we get "this computer's local host name on the network is changed to 1234567654-1 because it determines that the original host name "is already in use." This doesn't make network peripherals and communication between our two computers ve

  • SET UPDATE TASK LOCAL Would this be an acceptable to improve performance

    Hi All This is the below code is already there FORM Main_call_bapi_create  USING    fp_wg_req TYPE ty_req.   DATA: l_msg TYPE bapi_msg,        "Message         l_ptype TYPE zzyproctype,   "Processing type         l_nlines TYPE i,            "no of li