Can't we do augmented reality with StageVideo and Stage3D ?

Hi,
I just read the Stage3D documentation and found that :
"StageVideo and Stage3D are rendered with no transparency."
It means we will not be able to create augmented apps using these two features ?
Is there any chance the finale FP11 realease will be able to render Stage3D with some transparency ?

Hi Remi,
we started using molehill 4 days ago and found the same problem as you do.
First we wanted to stream the webcam directly to the StageVideo, with no success.
Then we created a new Sprite in the Molehill layer in which we rendered the bitmapdata taken from the camera.
This works but as you pointed out, there is no transparency and so the video/cam would always be beneath the 3d content.
The solution:
Create a new object in your 3d space and render the bitmapdata to it. Its working great with no visible extra delay and what would be even cooler...
will allow you to do alot of funny effects with your camera stream.
Im sure we will post some sourcecode with example soon.
The performance of molehill is really impressive and am sure AR will benefit of that very much
Chris

Similar Messages

  • I want to transfer pictures from my iphone 4 to a hardrive, but the problem is i dont know how. Can the genius bar help me with that, and can they possibly do this for me if i bring my iphone and hard drive with me there. Also if there is a cost, how much

    I want to transfer pictures from my iphone 4 to a hardrive, but the problem is i dont know how. Can the genius bar help me with that, and can they possibly do this for me if i bring my iphone and hard drive with me there. Also if there is a cost, how much?

    iOS: Importing personal photos and videos from iOS devices to your computer

  • Can anybody give me the table with tcode and its development class

    can anybody give me the table with tcode and its development class

    Hi phani,
    1) First retrieve program name from tstc table I.e field pgmna.
      2) Using pgmna retrieve from tadir table by using the following criteria from tadir table
       pgmid    = 'R3TR'
      AND object   = 'PROG'
      AND obj_name = tstc-pgmna.
    We will get development class or package in tadir i.e
    tadir-devclass 
    Thanks,
    Naveen Kumar.

  • Can I use HP Pro 8600 with usb and wireless at the same time

    Can I use HP Pro 8600 with usb and wireless at the same time?  Sometimes I cannot get the wireless to work, it seems to be my laptop.  It would be nice if I could use the usb, but it doesn't work.  What should / can I do, if anything?
    Sam

    Hi,
    Same physical printer but when connecting to SAME computer using both USB and wireless it becomes two (logical) printers. Probably your default prnter is the wireless one, you have to select the right printer before print .
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can an iPhoto library be shared with Lightroom and capture one?

    Since Aperture is being replaced by … nothing, how can I access the same library with multiple editors?

    Neither iPhoto, Lightroom nor Capture One are editors. They are all database driven Photo Managers with non-destructive processing. There is no rational workflow that would use more than one of these apps, any more than it would make sense to write a novel in three different word processors at the same time.
    Pick the one that suits your needs - if you're coming from Aperture then forget iPhoto, it's much less capable and also being end-of-lifed. Pick between Lightroom and Capture One. Then google the options for migration from Aperture to the one you choose.

  • I reinstalled I-Tunes several weeks ago.  Since then I can no longer burn MP3 Discs with Title and Artist Info.  Sometimes it only burns every 3rd song.  No Audio CD it seems to function OK.  The version has the "cloud" but I don't know if that matters or

    I reinstalled I-Tunes several weeks ago.  I can no longer burn MP3 Disk with Song/Artist info onto disc.  It comes up as No Artist/No Title on car CD unit.  Old MP3 Disk previously recorded still show all info.  Sometimes only every 3rd song is on the MP3 CD.  On Audio Disc there is no change and all info still shows up.  The new I-Tunes version has the "cloud" on it if that could make a difference.  In the select Burn CD mode I can select testing and add song info for Audio Disk but it shows shadowed out for MP3/Data.  I added and removed ID tagging from my list to see if that made a difference but it didn't.
    Any Thoughts?
    Jim

    This may help.  Audio files are actaully in the DATA folder.  These can be editted with Soundbooth then they must be imported intot the specific slide in the Powerpoint presentation.  Publish the presentation (as you'll read below) and *should* work This reply came from robva65 [email protected]
    Let's try this: *Publish* the PPT deck you have.  What you'll end up with is a set of files and folders, but I want you to look for the *data folder* that's created as a result of the publishing process. (Unless you specify where you're publishing to, Presenter will publish to a directory called "My Adobe Presentations" by default, so you may have to look there on your harddrive)  Inside the data folder will be a list of mp3 files, which, if everything goes smoothly, should make it much, much easier to see which audio is used by a specific slide.
    Here's what I mean: for example, after publishing, I have a data folder and inside I found the following file: a24x9x3.mp3  As I double click the mp3 file (which causes it to play using Windows Media on my laptop), I can hear that it corresponds to my slide 9 in my PPT deck.  And there's corresponding mp3 files for each and every slide I have in my deck.  I'm clicking another file (wouldn't it be nice to see what I'm doing???) a24x20x3.mp3, and that file corresponds to my slide 20 content in PowerPoint.
    So again, give publishing in PowerPoint a shot and see if that makes it any easier.  Well...not nearly as easy as recording in Audition/Soundbooth/Audacity, but it's close enough to hopefully dig you out of that hole you're in now.
    Hope this helps ~rich

  • I can't compile for iOS anymore with Flex and AIR 3.8

    Hi Adobe team and others,
    I'm using Apache 4.10 Flex framework and adobe Air 3.8 for my business projects.
    I always had some problems to compile and publish iOS application (with Air 3.5 before), but with AIR 3.8, that was a miracle, I could compile my projects without any errors on Windows ... until today.
    I'm executing this command in DOS to compile my project:
    "C:\Program Files\Java\jre7\bin\java.exe" -jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - AIR 3.8\lib\adt.jar" -package -target ipa-app-store -hideAneLibSymbols no -provisioning-profile "S:\Directory_to_MobileProvision.mobileprovision" -storetype pkcs12 -keystore "S:\Directory_to_Certificats_ios.p12" -storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45-app.xml assets com config_app.xml [email protected] Proginov_FVTE_V45.swf -extdir "S:/Directory_to_ANE/air_3.8_pnv_3.00"
    And I'm getting this result after 1 hour compiling:
    If you want, I can send you my bin-release-temp folder and ANE to try by yourself, but I need a private mail, because I don't want to publish my private project to everyone.
    Thanks

    Thank you a lot.
    I remember I tried this with AIR 3.5, and that didn't work.
    But with AIR 3.8, it's OK.
    Perfect

  • How can I create transparent animated  text with Motion and Final Cut Pro?

    Hi all,
    I am trying to replicate an effect that a previous video editor did in a project, but I can't contact them.
    They made animated text in Live Type, and saved it as a QT movie. When this text is placed over existing video in the FCP project, the text is "transparent", basically it acts like text created in FCP (You can see the background image behind the text, like through the middle of the letter "o").
    I have made some animated text in Motion, but when I save it as a QT movie, and bring it into FCP, the whole 1280x720 screen is covered by this movie, and I have to crop it so it does not cover the background image. It is all black except for the text. And of course the text is not on a transparent layer. Any ideas how I can create this effect with animated text? I've tried messing with transparency and overlay settings, nothing seems to work.
    Running latest version of Final Cut Studio...
    Thanks
    Dave

    Just bring the Motion (.motn) project into FCP and lay it over your clip.
    The QT you're exporting has to carry the alpha channel (animation codec, million+ colors), but don't waste your time/disk space with that. Just bring the motion project into FCP.
    Patrick

  • HT1918 I can't change my country/region with iTune and therefore can't change my method of payment. Help.

    I can't change my country/region on iTunes and therefore can't change my payment information. I've moved from Canada to Australia and am now using an Australian credit card.
    On my device I've gone into settings>iTunes &app store> Apple ID > view Apple ID > country/ region > change country/region. When I try tapping on this last icon, nothing happens. It doesn't give an option to change.
    I've also updated my address with apple.

    Hey there Sheava,
    It sounds like you are trying to change your country in the iPhone settings but when you get to the last step, nothing happens. I would start by closing all the running apps on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and try changing the country again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, try signing out of your account in settings, then restart one more time, sign back in and try to change the country again.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Can't get 4.1 working with ALSA and Intel card

    Hello everybody,
    My problem is simple, but I cannot find any solution for it.
    I have Arch Linux 64 bits installed with ALSA and a Intel onboard sound card
    I can get the audio working simply installing ALSA and unmutting the channels, but I get no sound at the rear speakers and the center speaker (subwoofer).
    I run:
    $ spearker-test -c 5
    And all I have is sound at the 2 front speakers.
    Looking at alsamixer I only saw configuration for 2,4 and 6 channels. I am currently using the configuration for 4 channels.
    I unmuted everything in alsamixer (playback) and nothing changed.
    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    $ lsmod | grep '^snd' | column -t
    snd_hda_codec_hdmi 23704 1
    snd_hda_codec_realtek 59331 1
    snd_hda_intel 25700 7
    snd_hda_codec 97464 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
    snd_hwdep 6300 1 snd_hda_codec
    snd_pcm 74926 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_page_alloc 7217 2 snd_pcm,snd_hda_intel
    snd_timer 18966 1 snd_pcm
    snd 60021 21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
    Anyone knows how to make it work? Thanks!

    Thanks for the answer, tried this command, here is the output:
    $ speaker-test -t wav -c 5 -D surround41
    speaker-test 1.0.26
    Playback device is surround41
    Stream parameters are 48000Hz, S16_LE, 5 channels
    WAV file(s)
    Broken configuration for playback: no configurations available: Invalid argument
    Setting of hwparams failed: Invalid argument
    Is there something needed to make this command run correctly?

  • Can the system automatically start up with OSX and later switch to windows after starting up?

    I mean, I don't want to choose between OSX or Windows when I start up. I just want to start up with OSX. Is it possible to only start with OSX and later switch to Windows after starting up, or is there any option?

    you want to override the default and reboot into Windows next time?
    Use BootChamp or Option key.
    But when there are Windows updates it will need to be set to boot into Windows.
    Sounds like you don't want to run Windows natively.

  • Can I Syn my Cell Phone with iCal and Adress Book ?

    Hi Again, This is starting to become ridiculous a bit, but.. its worth it because.. I GIVE POINTS! YAY!.. Ok ,nvm.
    so i have a Motorola V186 MuchMusic! and i would like to sync it with iCal and Address Book is it possible, because when i plug in my cell to the computer, like nothing happens..

    OK , Well, On my PeeCee i used (Motorola) Mobile Phone Tools, and now i couldn't find any version for Mac. So then I plugged in mt cell to my Mac, and nothing happened. So i went to the System profiler, then USB, and i saw my Apple Mouse, and Motorola V186 Muck Music (thats my phone), so ok, it is recognised, then i opened iSync, Added my Phone, and Syced with iCal and Adress Book. WOW Macintosh! There are like no DRIVERS AT ALL nesecsary!! Once i had a PC, and i couldn't find the drivres for a prinmter so i had to buy a new printer!! I HATE OLD PEECEES!

  • Using StageVideo and Stage3D in AIR - BETA

    We're planning on introducing a new ActionScript feature that will allow hardware accelerated video to be used as a source texture in a Stage3D environment.  Currently, using video with Stage3D requires the use of the Video object, which is not accelerated, and manipulation of the bitmap representations of the video frames.  The planned feature, called VideoTexture, will allow direct access to a texture object that is sourced from a Netstream or Camera object.
    The following sample code demonstrates the use of the VideoTexture object.
    1) Create a VideoTexture object and attach a NetStream (or Camera) object to the VideoTexture object:
    var ns:NetStream;
    var context3D:Context3D;
    var texture:VideoTexture;
    texture = context3D.createVideoTexture();
    texture.attachNetstream(ns);
    ns.play("video.3gp");
    texture.addEventListener(VideoTexture.RENDER_STATE, renderFrame);
    2) A texture representation of the current video frame can be retrieved from the callback function for the VideoTexture.RENDER_STATES event.
    function renderFrame(e:Event):void
        // Render on stage3D with VideoTexture
    Please note that this will be an "extended beta" feature.  The initial implementation, available  in our AIR 15 beta, will be for Windows/AIR only.  We are committed to expanding this feature to AIR mobile and Mac in a following release.  We'll also consider an implementation in Flash Player if there is sufficient demand.
    Getting your feedback will be critical to making sure we're providing a solution that you can use.  Please let us know what you think and keep an eye out for updated beta release notes in the next couple of weeks.

    That's great news, and I like the syntax. Thanks Chris.
    However, I'd like to also ask what's the status on overlaying a Stage3D context and StageVideo. That alone would work wonders, without the need for any kind of texture support. I know that used to be supported a while ago - contexts could be "transparent" - but apparently it was dropped a year or so ago (it was under test I suppose). I can't find the original links for that unfortunately.
    To share my perspective, I've recently had a project where I had to overlay both under several different circumstances and my solutions were two fold (one for each case):
    1. Dump every frame into a texture in real time. This was needed because I was masking a texture. This was less than ideal because copying a bitmap on every frame takes a lot of CPU resources, so the video quality suffered (I had to downscale it).
    2. Have StageVideo occupy part of the screen, and Stage3D occupy another part of the screen; they never overlapped. This also worked, but it meant never overlaying elements... the elements that needed to cover both had to be made using the old Flash display list. So it's a little bit of a crazy solution with lower performance than ideal.
    So both were less than ideal but would have worked better if I could overlay stage3d/stagevideo.

  • How can I set my privacy tighter with Siri and Dictation?

    OK First of all, Apple needs to stop with the restriction of what you can say in posts. They keep deleting my stuff without allowing my QUESTION to be answered.
    First of all, when did this massive invasion of my privacy happen? Did it happen with the latest update to iOS 8.1? I know I did not have these pop ups until this update happened this week.
    I would like to know how to use Siri and Dictation WITHOUT such a massive invasion of my privacy?
    Did I ever have such privacy prior to iOS 8.1?
    I went to dictate a text message to my husband today and I get a pop up telling me that ALL my information is going to be shared. There is a "learn more" link and I click that and it has this long diatribe on how
    Apple takes the things I say and dictate and records them and sent to them to process my requests. My device will also send Apple other information, such as my name and nickname; the names, nicknames, and relationship with me (e.g. "my dad") of my address book contacts, song names in my collection, and HomeKit-enabled devices in my home (e.g., "living room lights") (collectively, your "User Data"). All of this data is used to help Siri and Dictation understand me better and recognize  what I say. It is not linked to other data that Apple may have from my use of other Apple services...
    there is a lot more but suffice it to say, it does NOT 'match' what is said about Siri and Dictation on the Apple privacy page. The phone privacy contract description has MORE things listed that are being recorded, used and stored.

    It only matches what I quoted. There is a lot more in the phone.
    I also had a lot more in my original post but Apple censored and then deleted it because they decided it was a rant.
    Apple's policy in my phone's privacy policy says a lot more.
    Apparently from your answer I am stuck with a massive invasion of my privacy? Are you so very comfortable with having everything you say recorded? What if you worked in a high security industry?
    I also asked if this was in effect prior to this latest update or not.
    What I had to omit. Check your phone's privacy page and compare to apple's web page I linked ( Settings > General > Keyboard >Dictation & Settings > General > Siri) and click on the About Siri or Dictation privacy...
    It goes on to tell me I can restrict Siri's and Dictation's ability completely by turning it off.
    It tells me that my personal information, voice recording and other things collected may be retained for a period of time to generally improve Siri, Dictation an functionality in other Apple products and services. <-- this right here contradicts the paragraph I quoted  by saying it indeed DOES use it for other Apple things. Also, HOW LONG is this "period of time"?
    If I want to 'erase' this information I can simply turn off then on Siri and or Dictation and lose what I have had recorded on me. THIS fully restarts the "learning" process all over again and in turn NEGATES all the stuff it learned in the past. The KICKER is that since apple "retains what it collects for a period of time" HOW does turning the services off truly "erase" what was taken in the past?
    Why can't the learning process be done directly on the phone itself without it being RECORDED and STORED by Apple?
    Now, before you go off and say how Apple respects my privacy, I know all of that. I just don't believe or trust it since all this iCloud hacking has been happening lately AND I am VERY conscious of what I put "out there" for all to see and take. I don't use social networking either due to the massive invasion of my privacy. Plus I find it silly. I will not be reduced to a low level of conversation where the simple "like" is the equivalent of a reply.

  • Can you use a custom cursor with drag and drop?

    Hi there! I'm a newbie flash user and working on a simulation for a graduate course in instructional design. I'm using Flash Professional CC on Mac. Here's what I'm trying to do. I have several draggable sprites on the stage and three target sprites. I have specified the original x,y locations of the sprites and have set the end x,y locations as those of each of the three targets. Items must be dragged to one of the three targets.
    Some questions:
    1. Can I specify more than one End x,y location for a draggable sprite? I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
    2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of  hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around  but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
    3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
    4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects  than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
    Thanks!
    I'm pasting my code from the actions panel below so you can see what's going on:
    stop();
    /* Custom Mouse Cursor
    Replaces the default mouse cursor with the specified symbol instance.
    stage.addChild(customcursor);
    customcursor.mouseEnabled = false;
    customcursor.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
    function fl_CustomMouseCursor(event:Event)
      customcursor.x = stage.mouseX;
      customcursor.y = stage.mouseY;
    Mouse.hide();
    //To restore the default mouse pointer, uncomment the following lines:
    customcursor.removeEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
    stage.removeChild(customcursor);
    Mouse.show();
    //set up variables and objects for dragging
    var offset:int = 10;
    var appleStartX:int = 243;
    var appleStartY:int = 156;
    var appleEndX:int = 522;
    var appleEndY:int = 22;
    apple.buttonMode = true;
    apple.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    apple.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var cupStartX:int = 39;
    var cupStartY:int = 266;
    var cupEndX:int = 520;
    var cupEndY:int = 175;
    cup.buttonMode = true;
    cup.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    cup.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var barStartX:int = 178;
    var barStartY:int = 234;
    var barEndX:int = 522;
    var barEndY:int = 22;
    bar.buttonMode = true;
    bar.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    bar.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var orangeStartX:int = 284;
    var orangeStartY:int = 102;
    var orangeEndX:int = 522;
    var orangeEndY:int = 22;
    orange.buttonMode = true;
    orange.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    orange.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var bottleStartX:int = 172;
    var bottleStartY:int = 303;
    var bottleEndX:int = 520;
    var bottleEndY:int = 175;
    bottle.buttonMode = true;
    bottle.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    bottle.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var bananaStartX:int = 113;
    var bananaStartY:int = 123;
    var bananaEndX:int = 522;
    var bananaEndY:int = 22;
    banana.buttonMode = true;
    banana.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    banana.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var napkinStartX:int = 248;
    var napkinStartY:int = 271;
    var napkinEndX:int = 520;
    var napkinEndY:int = 175;
    napkin.buttonMode = true;
    napkin.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    napkin.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var yogurtStartX:int = 27;
    var yogurtStartY:int = 136;
    var yogurtEndX:int = 518;
    var yogurtEndY:int = 329;
    yogurt.buttonMode = true;
    yogurt.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    yogurt.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var strawberryStartX:int = 120;
    var strawberryStartY:int = 285;
    var strawberryEndX:int = 522;
    var strawberryEndY:int = 22;
    strawberry.buttonMode = true;
    strawberry.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    strawberry.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var sandwichStartX:int = 7;
    var sandwichStartY:int = 364;
    var sandwichEndX:int = 522;
    var sandwichEndY:int = 22;
    sandwich.buttonMode = true;
    sandwich.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    sandwich.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var juiceStartX:int = 88;
    var juiceStartY:int = 347;
    var juiceEndX:int = 518;
    var juiceEndY:int = 329;
    juice.buttonMode = true;
    juice.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    juice.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var foilStartX:int = 39;
    var foilStartY:int = 416;
    var foilEndX:int = 520;
    var foilEndY:int = 175;
    foil.buttonMode = true;
    foil.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    foil.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var waxbagStartX:int = 235;
    var waxbagStartY:int = 342;
    var waxbagEndX:int = 522;
    var waxbagEndY:int = 22;
    waxbag.buttonMode = true;
    waxbag.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    waxbag.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    function startDragging (e:MouseEvent) {
      e.currentTarget.startDrag();
    function stopDragging (e:MouseEvent) {
      e.currentTarget.stopDrag();
      switch (e.currentTarget) {
      case apple:
      if (apple.x < appleEndX - offset || apple.x > appleEndX + offset || apple.y < appleEndY - offset || apple.y > appleEndY + offset) {
      apple.x = appleStartX;
      apple.y = appleStartY;
      else {
      apple.x = appleEndX;
      apple.y = appleEndY;
      //checkGame();
      break;
      case sandwich:
    if (sandwich.x < sandwichEndX - offset || sandwich.x > sandwichEndX + offset || sandwich.y < sandwichEndY - offset || sandwich.y > sandwichEndY + offset) {
      sandwich.x = sandwichStartX;
      sandwich.y = sandwichStartY;
      else {
      sandwich.x = sandwichEndX;
      sandwich.y = sandwichEndY;
      //checkGame();
      break;
      case orange:
    if (orange.x < orangeEndX - offset || orange.x > orangeEndX + offset || orange.y < orangeEndY - offset || orange.y > orangeEndY + offset) {
      orange.x = orangeStartX;
      orange.y = orangeStartY;
      else {
      orange.x = orangeEndX;
      orange.y = orangeEndY;
      //checkGame();
      break;
      case strawberry:
    if (strawberry.x < strawberryEndX - offset || strawberry.x > strawberryEndX + offset || strawberry.y < strawberryEndY - offset || strawberry.y > strawberryEndY + offset) {
      strawberry.x = strawberryStartX;
      strawberry.y = strawberryStartY;
      else {
      strawberry.x = strawberryEndX;
      strawberry.y = strawberryEndY;
      //checkGame();
      break;
      case napkin:
    if (napkin.x < napkinEndX - offset || napkin.x > napkinEndX + offset || napkin.y < napkinEndY - offset || napkin.y > napkinEndY + offset) {
      napkin.x = napkinStartX;
      napkin.y = napkinStartY;
      else {
      napkin.x = napkinEndX;
      napkin.y = napkinEndY;
      //checkGame();
      break;
      case bar:
    if (bar.x < barEndX - offset || bar.x > barEndX + offset || bar.y < barEndY - offset || bar.y > barEndY + offset) {
      bar.x = barStartX;
      bar.y = barStartY;
      else {
      bar.x = barEndX;
      bar.y = barEndY;
      //checkGame();
      break;
      case juice:
    if (juice.x < juiceEndX - offset || juice.x > juiceEndX + offset || juice.y < juiceEndY - offset || juice.y > juiceEndY + offset) {
      juice.x = juiceStartX;
      juice.y = juiceStartY;
      else {
      juice.x = juiceEndX;
      juice.y = juiceEndY;
      //checkGame();
      break;
      case foil:
    if (foil.x < foilEndX - offset || foil.x > foilEndX + offset || foil.y < foilEndY - offset || foil.y > foilEndY + offset) {
      foil.x = foilStartX;
      foil.y = foilStartY;
      else {
      foil.x = foilEndX;
      foil.y = foilEndY;
      //checkGame();
      break;
      case banana:
    if (banana.x < bananaEndX - offset || banana.x > bananaEndX + offset || banana.y < bananaEndY - offset || banana.y > bananaEndY + offset) {
      banana.x = bananaStartX;
      banana.y = bananaStartY;
      else {
      banana.x = bananaEndX;
      banana.y = bananaEndY;
      //checkGame();
      break;
      case bottle:
    if (bottle.x < bottleEndX - offset || bottle.x > bottleEndX + offset || bottle.y < bottleEndY - offset || bottle.y > bottleEndY + offset) {
      bottle.x = bottleStartX;
      bottle.y = bottleStartY;
      else {
      bottle.x = bottleEndX;
      bottle.y = bottleEndY;
      //checkGame();
      break;
      case waxbag:
    if (waxbag.x < waxbagEndX - offset || waxbag.x > waxbagEndX + offset || waxbag.y < waxbagEndY - offset || waxbag.y > waxbagEndY + offset) {
      waxbag.x = waxbagStartX;
      waxbag.y = waxbagStartY;
      else {
      waxbag.x = waxbagEndX;
      waxbag.y = waxbagEndY;
      //checkGame();
      break;
      case cup:
    if (cup.x < cupEndX - offset || cup.x > cupEndX + offset || cup.y < cupEndY - offset || cup.y > cupEndY + offset) {
      cup.x = cupStartX;
      cup.y = cupStartY;
      else {
      cup.x = cupEndX;
      cup.y = cupEndY;
      //checkGame();
      break;
      case yogurt:
    if (yogurt.x < yogurtEndX - offset || yogurt.x > yogurtEndX + offset || yogurt.y < yogurtEndY - offset || yogurt.y > yogurtEndY + offset) {
      yogurt.x = yogurtStartX;
      yogurt.y = yogurtStartY;
      else {
      waxbag.x = waxbagEndX;
      waxbag.y = waxbagEndY;
      //checkGame();

    Some questions:
    1. Can I specify more than one End x,y location for a draggable sprite?
    yes, use an if-else statement
    I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
    2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of  hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around  but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
    assign your cursor's mouseEnabled property to false:
    yourcursor.mouseEnabled=false;
    3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
    use the sound class to create a sound:
    // initialize your correct sound once with
    var correctSound:Sound=new CorrectSound();  // add an mp3 sound to your library and assign it class = CorrectSound
    // apply the play() method everytime you want your sound to play:
    correctSound.play();
    // change an object's opacity:
    someobject.alpha = .3;  // partially visible
    someobject.alpha = 1;  // fully visible
    someobject.visible=false;  // not visible, at all.
    // change an object's scale
    someobject.scaleX=someobject.scaleY=.5;  // shink width and height by 2
    someobject.scaleX=someobject.scaleY=1;  // resize to original
    4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects  than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
    you could google: 
    actionscript 3 class coding
    actionscript 3 object oriented programming
    p.s.  you can simplify and streamline your coding by learning about arrays and using hitTestObject.

Maybe you are looking for

  • How to load a partial hierarchy

    EPM 10 NW While loading 0GL_ACCOUNT not all master data in BW is relevant for my planning in BPC hence i need to load only one branch of the hierarchy. As far I can tell we can only filter by an attribute when you are loading from BW INFOOBJECT using

  • Events do not appear in Front Row / Shared Photos

    Events do not appear when launching Photos in Front Row, only Recent Viewed, Last Import, Web Galleries and Albums. Doesn't it kind of defeats the purpose to have Events, which was implemented to make organizing easier and eradicate the large number

  • Netscape (Compuserve) on dialup connection

    My problem is that using Compuserve (Netscape) on a dial up connection, when I log into my library website and try to access the catalog, I get an error message saying that the java plug in is required. However on the same machine, when connected to

  • OU Group Policy over-riding User Group Policy

    I'm using ZfD 4.01 ir7 and have a restrictive Group Policy applied at the OU level. I've created a less restrictive Group Policy and assigned it to a user within the above mentioned OU but the settings are not taking...the OU Group Policy is over-rid

  • Bouquets for Apple's System Restore

    After encountering many problems with SL, I finally decided yesterday that I would have to attempt to restore Leopard. I was a little concerned about the process. However, with the aid of my Leopard install disk and Time Machine backups prior to the