Drag & Drop Functionality Doesn't Work in External SWF?

Hi all,
I'm currently a TA for a Flash course at my school.  We're using AS 2.0 and working with external SWFs.
I think this might be pretty simple to remedy.  Well, at least I'm hoping!
A student is having trouble with drag & drop functionality when it  is used in an external SWF.  Basically, in our drag & drop section,  we have a sheet of paper ("paper" MC) and an object we drag into it  ("object" MC).  When the object is released in the paper area, we go to  frame 2 of "paper" MC, which consequently has an animation.
This works fine and dandy in said drag & drop section, but once the  drag & drop section is loaded into our main SWF via a MC  placeholder, the drag & drop functionality stops working.
Here is the URL to the drag & drop section by itself:
http://www.phayzed.com/flashkit/drag_for_animation.swf
and here is the URL to the main swf, which loads the drag & drop SWF into a movieclip and causes it to work incorrectly:
http://www.phayzed.com/flashkit/main.swf
Now here is the code on the draggable object ("object" MC):
on (press) {
        startDrag (this, true);
on (release) {
        stopDrag ();
        if (this._droptarget == "/paper") {
                _parent.paper.gotoAndStop(2);
                _parent.object._visible=false;
If any more info is needed, I'm willing to upload both FLA files.   Although, something tells me that this is a simple issue to resolve.
Thanks a lot for any help!!!
Cheers
T

with as2 you must convert that antiquated as1 code:
on (press) {
        startDrag (this, true);
on (release) {
        stopDrag ();
        if (eval(this._droptarget) == _parent.paper) {
                _parent.paper.gotoAndStop(2);
                _parent.object._visible=false;

Similar Messages

  • Xul drag and drop function doesn't work Firefox 17 ESR but works in Firefox 10 ESR

    I am having a problem with a xul drag and drop function designed for selenium rc and selenium IDE. It works in Firefox 10 ESR but does not work in Firefox 17 ESR.
    the code used for the draganddrop function is added below:
    Selenium.prototype.doXulDragAndDropToObject = function(locatorStartElement, locatorEndElement) {
    var startElement = this.page().findElement(locatorStartElement);
    if (startElement.wrappedJSObject) {
    startElement = startElement.wrappedJSObject;
    var endElement = this.page().findElement(locatorEndElement);
    if (endElement.wrappedJSObject) {
    endElement = endElement.wrappedJSObject;
    var dropValue;
    var startTreerow = getAncestorsByTagName(startElement, 'treerow')[0];
    var treeCells = startTreerow.children;
    for(var i=0; i<treeCells.length; i++) {
    var val = treeCells[i].getAttribute('value');
    if(val) {
    dropValue = JSON.parse(val);
    if(dropValue) {
    endElement.drop(dropValue);
    The is the error message I received when the draganddrop fails in FireFox 17 ESR:
    [error] Unexpected Exception: message -> An attempt was made to use an object that is not, or is no longer, usable, code -> 11, INDEX_SIZE_ERR -> 1, DOMSTRING_SIZE_ERR -> 2, HIERARCHY_REQUEST_ERR -> 3, WRONG_DOCUMENT_ERR -> 4, INVALID_CHARACTER_ERR -> 5, NO_DATA_ALLOWED_ERR -> 6, NO_MODIFICATION_ALLOWED_ERR -> 7, NOT_FOUND_ERR -> 8, NOT_SUPPORTED_ERR -> 9, INUSE_ATTRIBUTE_ERR -> 10, INVALID_STATE_ERR -> 11, SYNTAX_ERR -> 12, INVALID_MODIFICATION_ERR -> 13, NAMESPACE_ERR -> 14, INVALID_ACCESS_ERR -> 15, VALIDATION_ERR -> 16, TYPE_MISMATCH_ERR -> 17, SECURITY_ERR -> 18, NETWORK_ERR -> 19, ABORT_ERR -> 20, URL_MISMATCH_ERR -> 21, QUOTA_EXCEEDED_ERR -> 22, TIMEOUT_ERR -> 23, INVALID_NODE_TYPE_ERR -> 24, DATA_CLONE_ERR -> 25, result -> 2152923147, name -> InvalidStateError, filename -> chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js, lineNumber -> 1183, columnNumber -> 0, location -> JS frame :: chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js :: :: line 1183, inner -> null, data -> null
    firefox selenium-rc selenium-ide

    hello, your question conatins a few issues...
    *if you want to use the regular release version (firefox 18.0.2 at the moment) and not a beta version, then please download the setup file from getfirefox.com & install it on top of your current installation
    *when there is a folder named "old firefox data" on your desktop, then you've done a [[Reset Firefox – easily fix most problems|reset of firefox]] which had reset most of your preferences to the factory default & removed all extensions. if you want to revert that, go to ''firefox > help > troubleshooting information'' and click on ''profile folder/show folder''. a windows explorer window should open up. now close all open firefox windows and replace all the contents of your current profile folder with the data that is stored inside the "old firefox data" folder on your desktop.
    *the plugin check website isn't working at the moment - so the problem you're seeing here isn't on your end. hopefully this will be fixed soon on the server-side...

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • Best approach to work with drag & drop functionality

    I m new to java technology & want to implement drag & drop functionality with java web application.so, Please suggest me the best way or best framework or any api to implement drag & drop functionality with java web application.

    In that case, you're most likely looking for a JavaScript solution. In spite of the similar name, JavaScript has nothing to do with Java.
    You may want to Google for "javascript drag and drop".

  • Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    drag the other clip 'over' the main clip
    the 2nd clip has to be selected/yellow border...
    then you're prompted in the Inspector with the several options...

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • Since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    Check whether you have the latest driver:
    Printer and Scanner software available for download:
    http://support.apple.com/kb/HT3669?viewlocale=en_US

  • I upgraded my 3 yr old iMac to Snow Leopard and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site, but still no joy.  Any suggestions?

    I upgraded my 3 yr old iMac to Snow Leopard (OS X 10.6) and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site and installed them, but still no joy.  Any suggestions?

    aspaceman,
    Perhaps I owe you an apology.   Having re-read that downloading from HP was unsuccessful I feel uncomfortable.  Can I suggest you update your 10.6 system (as noted in your profile) to 10.6.8 (if it is not already there) by using the
    Mac OS X 10.6.8 Update Combo v1.1 combo update plus any software updates that then apply.  

  • PR to PO creation drag & drop partner funtion not working.

    Hi,
    While creating the PO by using Drag & Drop function in ME21N, the partner function (PI,OA) of the vendor are not appering in P.O. Header except VN funtion. But if we created the P.O. Manually (with same PR) it is appering in P.O. I would like to know is this standard fuctionality of SAP or it has any patch/Note to correct it?

    hi Jitendra Kinja
    i am facing a simlar kind of issue in my SAP system , is there any workaround for this?pl let me know
    thanks
    Dkmurthy

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • Sort function doesn't work E12

    the sort function doesn't work half the time on Elements 12 organizer.

    What about FUNCTION CLOCK_INFormula
    RETURN NUMBER
    IS
        l_hours_worked  NUMBER;
        l_to_return     NUMBER;
    BEGIN
        l_hours_worked := TO_NUMBER(NVL(:ATX_CLOCK_IN,'0'));
        IF (MOD((l_hours_worked - 0.02),0.25) = 0) THEN
            l_to_return := TRUNC((l_hours_worked - 0.02) * 4) / 4;
        ELSE
            l_to_return := TRUNC((l_hours_worked + 0.23) * 4) / 4;
        END IF;
        RETURN (l_to_return);
    EXCEPTION  
        WHEN VALUE_ERROR THEN
            RAISE_APPLICATION_ERROR ( -20100
            ,   'ERROR, Cannot represent '
            ||  :ATX_CLOCK_IN
            ||  ' as a number.');
    END CLOCK_INFormula;?
    This function assumes :ATX_CLOCK_IN is always positive.
    T.

  • Tap function doesn't work, recovered files in bin etc

    Hi
    I'm using Mac Book Pro 13' - Mac OS 10.6.8
    1) Every time, I switched on my laptop, the one finger (tap to click) function doesn't work (although I have set it up).
    I have to go to 'systems preferences' to set it up again.
    2) Why is there 'Recovered files' in the trash bin each I switched on my laptop? How to get rid of it?
    3) Sometimes when I work using Word 2011, it takes a long time to save (the little icon will be swirling and swirling) and then I had to force quit and lose unsaved info. Why does this happen and how to avoid it from happening?
    Pls help me. I'm in the middle of my thesis submission and urgently need solutions to my Mac problems. Thanks!

    Reinstall Photoshop. That often fixes the issue.

  • Preview function doesn't work in Cap2

    I just installed Captivate2. In the project I'm working on,
    the Preview function doesn't work. Or rather, it works
    sporadically... sometimes it does, and --- much more often -- it
    does not. What happens instead is, the "generating slides" message
    appears, and the progress-bar begins, but then suddenly the
    message/progress window disappears, WITHOUT generating the swf file
    and without doing any kind of preview. It happens on all the
    various options of the Preview function.
    It does work about one time in every ten attempts.
    This surely isn't acceptable... Anyone else encountering
    this???

    Hi UncleErnie
    By chance have you fiddled with the slide properties of any
    of the slides? One of the new options available in version 2 is to
    apply navigation options that cause slides to behave certain ways.
    So it stands to reason that if a slide was configured to jump to
    the end of the movie and the end of the movie option was to close
    the movie... Well, hopefully you see what I mean.
    Another question I would have is where are you editing your
    project? Are you possibly saving it to the company LAN and editing
    it using Captivate to make edits while in that location? If so,
    this is normally bad practice. Try moving the project locally and
    see if the issue resolves.
    Cheers... Rick

  • Drag/Drop inside SWFLoader not working

    I've got a Flex application that loads a secondary Flex app via SWFLoader. The secondary app uses drag/drop operations to rearrange components, delete them etc.  The secondary app works perfectly while it is running by itself (eg. not 'embedded' via SWFLoader into the main app).
    Once I load it into the main application using a SWFLoader drag/drop operations no longer work correctly. All other events seems to work fine. It is only drag/drop that don't always work right.
    Is there something I am missing that would cause this issue? I'm thinking there may be a property I need to set on the SWFLoader. Hopefully someone can help.

    Thanks Alex.
    I did as you say, and DragManager is in the report file in several places. Also, Drag/Drop does work inside of SWFLoader for the TileList in the loaded app, and even somtimes as it should as far as the drag/drop operation I am talking about, but not always.
    It seems to work sometimes and not others. When it does work it is not nearly as smooth as when I run the app as a "stand alone" and I never see the drag proxy while dragging inside of SWFLoader.
    Is there anything else that could be causing these issues? 

  • How to Rearrange components using Drag Drop functionality

    Hi,
    Is it possible to re-arrange the components inside the form using drag drop functionality in RCF?
    There are 3/4 section headers in my screen, user can re-arrange them.
    But as per the RCF document it says, "Drag Drop functionality allows users to drag the value of one component and drop it on to another". It dosent say any thing about component drag-drop.

    Hi,
    there is a componentDragSource element that you use for this. However, persisting the change of location is not handled automatically. I didn't try this, but I assume that using the component drag option gives you access to the UI component itself so you can nest it in another container
    Frank
    Ps.: the drag event always givey you access to the component. This componentDragSource however shows the component when dragging, which is a slightly better indicator if you plan to re-arrange items

Maybe you are looking for

  • Connection time out issue with wep security

    Does anyone know what is causing connection time out when connecting to WEP network. Password is correct. $ and x0 in front don't work. A solution would be great. Thanks

  • How to change the E71's default browser?

    Even though the E71's default browser is not bad at all, I prefer using Opera Mini. An example: the page [http://www.sei.cmu.edu/productlines/about_pl.html] just doesn't render ok in my E71 when using the default browser. The entire left side of the

  • Prevent editing whilst workflow in progress

    Hi I'm using SPD Approval workflow. Whilst in progress it is possible to edit the document which isnt desirable as if there are a number of approvers they could approve various versions. One option is to cancel the workflow if document edited (using

  • Can't open a minimized Skype

    Hi, I'm using Windows 8 and I've downloaded the desktop version of Skype and it worked nicely. It was pretty normal until today as there's no reaction when I clicked on the minimized Skype. It states that I'm logged in but when I click the Skype icon

  • I am in business of rental and asset recovery . please include me in this group

    Dear All, I am in business of Sales of Used Server Storage and Networking and also give it on Opex Model. I need help to get adequate knowledge on hardware bom sizing. please suggest Hemant Jain\ 9820681666 9321997397