Flash drop target problem in Captivate

I realise that this is more a Flash-specific question, but I thought I'd give the Captivate forum a try as it relates to a Captivate lesson I am trying to put together.
I have an interactive exercise that I have produced in Flash CS4 (Actionscript 2), that involves the user dragging and dropping movieclips onto specific drop targets. 
It works fine when run on its own/in a browser etc, but when I insert the movieclip into Captivate to incorporate it into the lesson, the drag/drop functionality doesn't work as it should do anymore (drag/drop still works, but the dropped mc's no longer react to being dropped on the correct targets.)
I'm wondering if this is because Captivate outputs the lesson as an .SWF, so my Flash clip is within a 'container' consisting of the actual Captivate e-learning package itself?
Unfortunately my knowledge of Flash and Captivate is still in its infancy, so any help would be greatly appreciated from anyone with experience of using Flash within Captivate.
Thanks.

Hi kglad,
Thanks for your quick reply.  I'm little confused though - this is the line of code I'm suspecting I need to change: -
if (GetProperty ("/Ref_out", _droptarget) eq "/Ref_in") {
Ref_out being the dragged object, Ref_in being the drop target mc.  How would I go about using the _name property instead?
Sorry for the stupid question, but I'm struggling to find my way around the Adobe help files on the web - I don't think they're particularly user friendly, but maybe that's just me.

Similar Messages

  • Drop target problem

    hi all,
    I'm having some problems with my flash file I'm trying to make an app where I have a startDrag on a MC and if the user let go of the mouse on a certain area the MC stays there otherwise it goes back to its original position.
    here is what I'm doing but it's not working....any ideas?
    var inicialX: Number;
    var inicialY: Number;
    my_mc.addEventListener(MouseEvent.MOUSE_DOWN, _down);
    my_mc.addEventListener(MouseEvent.MOUSE_UP, _up);
    function _down(e:MouseEvent):void{
        inicialX = e.currentTarget.x;
        inicialY = e.currentTarget.y;
        e.currentTarget.gotoAndStop(2);
        e.currentTarget.startDrag();
    function _up (e:MouseEvent):void{
        e.currentTarget.gotoAndStop(1);
        if (e.currentTarget.x > 0 && e.currentTarget.x > 80 && e.currentTarget.y > 98 && e.currentTarget < 265){
            stopDrag();
        else {
            stopDrag();
            e.currentTarget.x = posInicialX;
            e.currentTarget.y = posInicialY;
    thanks a lot

    You are not using the variables you created for the initial positions.  Also, you do not need to have the stopDrag() inside the conditional.
    function _up (e:MouseEvent):void{
        stopDrag();
        e.currentTarget.gotoAndStop(1);
        if (e.currentTarget.x > 0 && e.currentTarget.x > 80 && e.currentTarget.y > 98 && e.currentTarget < 265){
            // do nothing
        }   else {
            e.currentTarget.x = inicialX;
            e.currentTarget.y = inicialY;
    Another thing...
    e.currentTarget.x > 0 && e.currentTarget.x > 80 // the first is not necessary, unless you really meant...
    e.currentTarget.x > 0 && e.currentTarget.x < 80

  • How do I make drag sources disappear after being moved to the correct drop target in Captivate 7

    How do I make drag sources disappear after being moved to the correct drop target in Captivate 7

    Thank you so much. I could have searched a very long time and not found that. It is counter-intuitive to me that I would set the behavior for the drag source on the properties for the drop target.

  • Drag and Drop Interaction with 50+ Drop Targets

    Hello,
    I'm fairly new to Captivate 7 but very familiar with Flash. I'm tasked with a project that I would like to do with the drag and drop interaction widget from Captivate 7. Basically, we need our learners to identify the locations of our resorts on a map. Select the name of the resort, drag and drop it in the city/state or country where located. My question is can Captivate handle this task? To me, it seems as a large task for Captivate to handle, and so I was thinking of coding it in Flash.
    Here is what I need:
    1.- List of all the properties at bottom with the drop target being a map of the US or world and have the location for each property as the drop target.
    2.- When the resort/property is selected, the name will change to the three letter code. Example: New York City, when clicked = NYC and the map itself to reflect the 3 letter code once dropped on the map if correct.
    3. If incorrect, the listed item will revert to the long name and return to the list.
    4. If this can be graded, it would be best.
    I can break the project into different regions but if I wanted to keep all 300+ properties in one module, will it be an issue? At the very least, I would need to do a minimum of about 50 per module.
    Thanks all! I've found this forum to be extremely helpful and the members seem to be eager to help.

    var matchingTargetName:String =(event.target.name).substring(0, 1);
    Change the name of the target to A and B and the mc A1, A2, A3, A4... and B1, B2,B3...

  • Drop target size/orientation with skinned List changed from 4.0 to 4.5

    I have a project that we recently moved from Flex/Flash Builder 4 to 4.5.  We have a skinned list with a horizontal orientation with the items in the list skinned with a button skin.  The user is allowed to drag buttons from a list of available items into another list of items they want.  When compiled in 4 with the 4.1 SDK, the drop area was the entire list area on the screen (it will hold about 5 of the buttons).  In 4.5, the drop area is only the width of 1 button, and appears to go down vertically instead of to the right horizontally.  If I extend the size of the list vertically, I can drop in any vertical position below the 'first' position, but cannot go to the right of the first position  to drop.
    It appears that whatever is computing the drop target area for the list is not honoring the layout of the list - it appears to always set up the drop area vertically.
    Again, all of this worked as expected in 4.1, it is only after compiling in 4.5 that this started.
    In addition, I had to add a call to event.stopImmediatePropagation() in the drop event handler, or else the item was added to the 'I want this' list 2x - I'm guessing 1x in my handler, and 1 additional time in a new 'automatic' drop handler for spark lists.
    Any idea how to fix the drop area?  It is very annoying for the users.
    Mark

    Never mind, found the problem.
    In our application, we also added a new menu and navigation bar.  The navigation bar has a 'history' panel that when you click on it, it 'swings down' and the user can click prior navigation points to return to.  This history panel, even though hidden with 'visible = false', was still blocking the drop area.  We had to set the history panel 'enabled = false' as well as 'visible = false' when it is not on the screen.  Once this was changed,  it quit blocking the drop area.  I found it when testing a different drag target that also fell under the 'history panel' area.

  • Flash Drop Downs - Please Help!

    THANKS in advance for the help you can provide.
    I am attempting to build a flash drop down navigation bar and I followed the Tutvid video tutorial on YouTube, which launched successfully - it looks wonderful!
    However, when I wanted to add additional drop down menus for other buttons, the video has a big gap in information for the beginner (me).
    To speak the same language, the video is at this address: http://www.youtube.com/watch?v=LC7BaZCForE
    Action Script sequences to scroll to are the following:
    1. Movie where drop downs are created on timeline with action script: 29:13
    2. Action Script content for Hit Area: 29.52
    3. Root Layer action script: 32:33
    I assumed that I should be adding my additional menu drop downs on the same timeline window as the first.  I added new layers for the menus and frames, but I thought I should write the action script for the new menus on the same action script layer as the first.  I added action script 10 frames from the first menu, so the next grouping began at frame 20 and ended at frame 30.
    Adding the second menu (I want more but stopped when I tested) resulted in the two menus alternately blinking on and off so a repeating movie kicks in and no "over" and "out" functions for the menu are recognized.
    I'll now paste in my code for corresponding segments from his video so maybe you can show me where I need to change my coding to make it all work.  Apparently my function definition needs to change, but I have no clue what that means or how it needs to be different.  Before I paste, however, let me share the error that pops up:
    Location: Symbol 'mcDropDowns', Layer AS MugCup', Frame 20, Line 4
    Description: 1021: Duplicate function definition.
    Okay, here's my coding:
    1.
    Frame 1
    stop();
    clicker_mc.visible = false;
    2.
    Frame 10
    stop ();
    mugFrame_btn.addEventListener(MouseEvent.MOUSE_OVER, goBackF);
    function goBackF(event:MouseEvent):void{
    gotoAndStop(1);
    Frame 20
    stop ();
    tableFrame_btn.addEventListener(MouseEvent.MOUSE_OVER, goBackF);
    function goBackF(event:MouseEvent):void{
    gotoAndStop(1);
    3.
    var navBtnGlow:GlowFilter = new GlowFilter(0x425616, 0.75, 0, 15, 1, 2, true, false);
    navBar_mc.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
    navBar_mc.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
    function navOverF(event:MouseEvent):void{
    event.target.filters = [navBtnGlow];
    navBar_mc.setChildIndex(event.target as MovieClip, 1);
    dropMenus_mc.gotoAndStop(navBar_mc.getChildAt(1).name);
    trace("We are Rolled Over..." + navBar_mc.getChildAt (1).name)
    function navOutF(event:MouseEvent):void{
    event.target.filters = [];         
    navBar_mc.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
    navBar_mc.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
    Please know that I realize this will take a few moments for you to compare my code to what's on the video.  Know that you will be doing me a TREMENDOUS favor by helping me to understand the theory behind replicating this step.
    I look forward to hearing from you - THANKS!

    Ah, no... I tested it further, and found that the script I
    posted above is not causing the problem. This puts me even further
    back than before... I truly have absolutely no idea what part of
    the applet is malfunctioning now.
    If there is any sort of list of known reasons for the flash
    player to crash... actionscript or animation... I would greatly
    appreciate seeing it.
    Sorry if I'm failing to provide enough information about my
    problem...

  • Can a question created in Flash send the score to Captivate?

    Hi there,
    I want to make a Quiz within Captivate. Because the Drag& Drop functionality is "not really perfect" in Captivate, i want to create a drag and drop question in Flash (AS2). There the user has to take rectangles(containing text or visual) to the corresponding rectangle. (The rectangles move, there are not just connecting lines like in CP4)
    But of course there is a major problem: How do I get Flash to tell my Captivate Project: "User made everything right Score:10 points for this question" or "Question wrong send Wrong message within Captivate and give user 0 points"
    Has anyone done something like that before? Create a quiz/question in Flash and put it into Captivate to receive scores
    Thanks in advance
    CaptiWare

    Hi there
    Well, if you are using Captivate 4 there are Widgets and the whole widget functionality. So theoretically, sure!
    I can't tell you how to do that as I'm not Flash proficient quite yet. Fortunately, members of the Captivate team have been posting things on their blog about how to work with widgets. Click the link below for one such article to hopefully get you started.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Spry Tabbed Panels overwritting Flash drop down menu in IE

    I am having an issue with Spry Tabbed Panels appearing above
    a Flash drop down menu in IE6 & IE7 but it works fine in
    Firefox. Would someone be able to educate me on what I can do to
    fix this problem. The page that is exhibiting this problem is
    http://us.shuttle.com/performance.aspx
    I’ve tried adding “WMODE” to my flash menu,
    also updated “SpryTabbedPanels.js to version 0.5 –
    pre-release 1.6”, but neither way is
    helping…….

    Thank you very much for the suggestion. Yes, this is how I
    tried:
    .TabbedPanels {
    margin: 0px;
    padding: 0px;
    float: left;
    clear: none;
    width: 100%;
    z-index: 1000;
    I’ve been tried setting Z-index to from 50 to 2000 in
    attached css, but still not working.

  • Spry Tabbed Panels overwritting Flash drop down menu in IE but display fine in Firefox

    I am having an issue with Spry Tabbed Panels appearing above
    a Flash drop down menu in IE6 & IE7 but it works fine in
    Firefox. Would someone be able to educate me on what I can do to
    fix this problem. The page that is exhibiting this problem is
    http://us.shuttle.com/performance.aspx
    I’ve add “WMODE” to my flash menu,
    also updated “SpryTabbedPanels.js to version 0.5 –
    pre-release 1.6”, but neither way is
    helping…….

    Thank you very much for the suggestion. Yes, this is how I
    tried:
    .TabbedPanels {
    margin: 0px;
    padding: 0px;
    float: left;
    clear: none;
    width: 100%;
    z-index: 1000;
    I’ve been tried setting Z-index to from 50 to 2000 in
    attached css, but still not working.

  • Audio problems preloaded Captivate swfs in custom player

    I have a slideshow-like custom Flash player that uses
    standard preloader code - it loads external swf movieclips into a
    holder clip, and stores references to them in an array. Once all
    external swfs are loaded, the first clip starts playing and
    navigation buttons allow the user to go through the "slides" at
    will.
    The problem: some Captivate-generated swf files have audio
    that starts playing as the clips are preloading, and the audio does
    not stop except with a stopAllSounds call. As needed, each loaded
    swf is copied (so to speak) from the array to a clip on the stage,
    loadedClip_mc, to be played and controlled. The player's pause
    button, which works as follows:
    loadedClip_mc.stop()
    has no effect on the sound of the loaded Captivate clips.
    Furthermore, the audio doubles-up when trying to play any
    slide, and clicking play (loadedClip_mc.play() )
    HERE IS THE MOST CONFUSING PART: this ONLY happens when the
    player and the movies to be loaded are uncached - after the files
    are visited for the first time, everything works great. Anytime you
    revisit the player it is fine. However, if it is the first time
    someone is visiting the custom player, or the browser cache is
    cleared, once you visit the page the audio for all Captivates start
    playing during preloading simultaneously and cannot be controlled.
    Thank you in advance for your help!

    Hi. I've experienced the same problem with audio and preload.
    Sorry for my english, but - I dont know if I've understood the
    matter- I think you are talking about to fix this problem using
    actionscript code. Please, would you answer me one question? If I
    can't change the code of the base clip generated by Captivate, is
    it possible to add some code in my loaded clips to stop that audio
    embedded in them when they are preloading? What would this code
    be?.
    I hope you understand me!
    Thank you.

  • My drag images disappear when they are dropped on a correct drop target during the drag and drop interaction.

    What am I missing. The opacity is at 100%. The drop target is a highlighted box from objects. I am using Captivate 8.

    Hi there,
    You might want to make sure your Depth setting is not set to Back instead of Front on your drop target(s).
    The Depth setting is accessed via the Drag and Drop window/panel under Format setting while you have your drop target selected.
    If your Depth setting is set to Back, especially if your opacity is set to 100% on your highlight box/drop target, your drag image would go behind your drop target giving the effect of disappearing behind your highlight box - especially if the drop target is larger than the drag image.

  • Drop target below image or canvas seems impossible?

    Hi All!
    I am building an app where the user can drag an image from
    one place, and drop it in a few different locations.
    The drop locations are vector images who listen for the
    dragEnter event, they get "highlighted" when an image is dragged
    onto them, and then accepts the dropped image - no problem. This
    all works like a charm.
    The trouble is I need to add a partially transparent PNG
    image on top of it all, and when I do that the image seems to
    consume any dragEnter events that are generated, and the "drop
    spots" below never get notified that something is being dragged
    over them.
    I realize that a PNG image with transparency will not be
    considered TRULY transparent, and that it normally does consume
    mouse events regardless of wether it's transparent or not. The odd
    thing is that you cannot work around this by setting mouseEnabled
    and mouseChildren to false on the image - it still sits there
    effectively blocking the dragEnter events from reaching their
    intended targets.
    If anyone has a workaround or solution to this I'd be very
    grateful!
    Thanks in advance & Best regards
    Culme

    I had to give up on this one for now.
    I created a layer on top which contains the "drop targets",
    and a layer below the PNG image which contains the visual elements
    that get highlighted when stuff is dragged over the drop targets.
    It works, but it seems like a rather lousy solution.
    If anyone figures out a better way of doing it I'm still
    interested.

  • Drop Target Registration

    I am using DnD to drag items from a JTree (drag source) onto another JTree (drop target). This all takes place within a JPanel enclosing a JSplitPane. It works fine when I run this class using a main(), creating a JFrame within the main() and adding the DnD JPanel. When I add this component into the application the Drop Target doesn't seem to get registered. I can't get any of the methods in the DropTargetListener I/F to fire. As a result, invoking the getDropSuccess() method on the DragSourceDropEvent object in the dragDropEnd() method of the my DragSourceListener always returns false.
    The new DropTarget(component, myDropTargetListener) call returns a non-null object so I assume it's getting registered. Help!!

    This problem was introduced by the IDE. VisualAge prohibits applications from registering DropTargetListeners in the context of a large application.
    kduell@altawave

  • JTree Drop Target Highlighting while dragging

    Hi All,
    I am having this requirement where I need to develop a similar interface as that of the Windows Explorer. I am facing problems in the JTree where one of the requirements say that I need to be able to highlight(select) a node when it is dragged upon although that might not be the drop target, very similar to Windows Explorer where while dragging a folder, even before dropping the folder on a target folder the drag selects all the nodes over which the drag moves.
    Also I need to be able to get a ghost image of the item being dragged, very similar to that of Windows explorer.
    If anybody out there knows how to achieve this Please help.
    Regards,
    Kumar GHH

    In the dragGestureRecognized (DragGestureEvent dge) method I am trying to set the cursor from default drag cursor to move cursor. But the move cursor is showing along with the default cursor with flickering. While dragging the image I just want to show the move cursor only.

  • Can drag and drop interactions created in Captivate 6.1 be exported to HTML5?

    I need to convert some Flash drag and drop interactions to HTML5 and I'm looking at Captivate and Storyline.
    Can drag and drop interactions created in Captivate 6.1 be exported to HTML5?
    (I tried Captivate 6 with the drag and drop widget and that didn't work, and I can't find a trial version of 6.1).
    Many thanks,
    Sonya

    Many thanks Lilybiri
    I've just chatted to Adobe support and they have told me there is no educational discount for subscription I coudn't find the info on the website, so if anyone is interested, subscription is $29.99/month or $19.99/month if you sign up for a year.
    Cheers,
    Sonya

Maybe you are looking for

  • Call purchase requisition approval workflow in abap program

    Hello, I copied the standard workflow for the approvaI of a purchase requisition WS00000038 and i tested it. I create a purchase requisition in me51n. This is triggering the event releasestepcreated which starts my workflow. Everything goes ok. Now,

  • Phone only works with speaker on

    my iphone5 only works with the speaker on. otherwise we cannot hear each other

  • How do I get rid of squat dwarfs?

    Hi, I just imported a QuickTime movie to iMovie but it comes out in widescreen format with the performers looking like fat dwarfs, whereas on Quicktime they look more or less normal. I want to burn a DVD but would rather have fairly elegant-looking p

  • Patch upgrade 10.2.0.1 to 10.2.0.5 Two node Rac

    Dear All, We are planing to apply Patch one of our RAC 10g relase 10.2.0.1 to 10.2.0.5. Our System is runing 5 databases. All databases are very critical. There is also Asm instance. Is there is any way to achive this without downtime. Regards, Awais

  • Method contruction

    Why does the Return s; statement not compile as 'cannot resolve symbol' it is defined just previously, right? public boolean atimer(int time) {      Date now = new Date(System.currentTimeMillis());      SimpleDateFormat timeFormat = new SimpleDateFor