Flash game not behaving once in Captivate

Hello everyone,
I've recently built a drag and drop game (with targets and text response) in Flash CS5 using AS3 and when I test it in Flash it works exactly how I want it to.
Once I insert it into Captivate 5 and then preview the project in a web browser the game acts differently. When a student drags an object and then drops that object on a target the object should then change positions and it's new location should be where the target is...once in Captivate however the object makes a copy of itself as soon as the students drags it anywhere so you can see one object being dragged and one object still in its original position.
Can anyone suggest why this is?
Thanks!
A copy of the actionscript used can be seen below.
var objectoriginalX:Number;
var objectoriginalY:Number;
answer1_mc.buttonMode = true;
answer1_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
answer1_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
answer2_mc.buttonMode = true;
answer2_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
answer2_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
function pickupObject(event:MouseEvent):void {
event.target.startDrag(true);
event.target.parent.addChild(event.target);
objectoriginalX = event.target.x;
objectoriginalY = event.target.y;
response_txt.text = " ";
function dropObject(event:MouseEvent):void {
event.target.stopDrag();
var matchingTargetName:String = "target" + event.target.name;
var matchingTarget:DisplayObject = getChildByName(matchingTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == matchingTarget){
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
event.target.buttonMode = false;
event.target.x = matchingTarget.x;
event.target.y = matchingTarget.y;
response_txt.text = "You did it!";
} else {
event.target.x = objectoriginalX;
event.target.y = objectoriginalY;
response_txt.text = "Not quite";

I'm having the same problem but adding this._lockroot = true isn't working.
I'm adding an old sfw (flash player 6, AS1) to captivate 4. This flash file has a drag and drop activity and has this clip even on the root level.
onClipEvent (enterFrame)
    if (_root.currAns == 6)
        allDone = 1;
        _root.currAns = _root.currAns + 1;
    } // end if
    if (allDone == 1)
        if (_root.correct._currentframe == 1)
            _root.congrats.gotoAndPlay(2);
            allDone = 0;
        } // end if
    } // end if
I tried changing the _root to this. but that didn't work either.
This is driving me crazy so if anybody knows a quick fix i would love to hear from you.
thanks

Similar Messages

  • Why are flash games not working properly on Firefox, while they work perfectly on other browsers?

    I own a MacBook os x 10.5.8 Intel core duo.
    My problem started a few weeks ago, I tried playing a flash game, first it came up that i didnt have flash, which I did, so I ran an update but I already had the latest version.
    I gave up on the games on that page and went to newgrounds.com, but turns out everytime I try to play a game the controls wont work properly on any game.
    I thought it might be my flash, so I went to chrome and played the same game, no problems, to opera, no problems, to safari also no problems. So the problem is my firefox and the flash plug in? I already uninstalled it and re installed it, downloaded it again and followed every piece of advice I could find about this, nothing works.
    I appreciate some help with this matter, I like working with firefox, wouldnt want to change to other browsers.

    Hi gorgonzola357, there are some platform-specific differences between Windows 7 and MacOSX that may be relevant.
    Have you tried disabling the new protected mode in Flash 11.3, since that feature is currently being debugged? See this support article from Adobe under the heading "Last Resort": [http://forums.adobe.com/message/4468493 Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]

  • Most flash games not working?

    when i try to play a flash game sometimes certain things dont work like the play button or it freezes i have tried other websites browsers tried removeing flash and reinstalling it with the latest version and still doesnt seem to work my operating system is windows 7 64bit and my browsers are firefox and internet explorer 8 my flash version is 11,1,102,62

    I was able to play this game on Firefox on my Win 7 system.  When you removed Flash and reinstalled, did you follow the procedures in the following FAQ?  In particular, I'd like to make sure that your Flash cache is removed, so make sure you delete the folders listed.
    How do I do a clean install of Flash Player?
    Thanks,
    Chris

  • Flash swf not running properly in captivate

    Hi,
    I'm not sure if this is a flash question or a captivate question so I'm posting it to both forums. I have numerous flash cs5 built swfs inserted into a captivate 5 project. All of them are running fine apart from this one. It runs perfectly outside of captivate but within the captivate swf it goes haywire. It's a very simple fla. The only actionscript involved is a stop action. There is a movie clip that uses a number of classic tweens and then there is a layer containing textual explanations for what's happening in the movie clip. When I run my captivate project the swf does one or other of the following:
    a) it runs but the movie clip starts earlier than the text and so they are out of synch
    b) the text runs as normal but the movie clip does not run at all
    c) it only shows the final frame of the swf and nothing else happens.
    As I say, it is a very simple fla and I'm at my wits end trying to figure out what's wrong. I don't seem to be able to attach the fla here, so if anybody thinks they may be able to help please pm me with your email address and I will email you the fla file.
    Just to note some of the things I have already considered: the text is all set to classic rather than TLF. The captivate project and the fla both publish as3 at 12fps for flash player 9.
    yours hopefully!
    Maedhbh

    See http://forums.adobe.com/message/3327323. I am having the same problem and this may help you out.

  • Flash Scripting not being recognised in Captivate

    Dear all, I hope someone can help.
    I am placing Flash created sections into a Captivate e-learning module and although my Flash (MX) file works perfectly in Flash (SWF), parts of it stop working when placed within Captivate (CP4)
    Quick description. The Flash file is an interactive menu, and I wanted a way of telling the user that they had already visited a section, so I created a "tick" that appeares when the user clicks on the button. I simply set the visibility to "True". on the button action.
    The issue is that I have a bit of scripting on the first frame to set the visibility to "False" to turn off all the ticks. This works great as a standalone SWF, but as soon as it goes into Captivate it no longer works.
    Here is the script to turn off the ticks...located on the first frame of the movie
    this.onEnterFrame = function () {
    _root.tick1._visible=false;
    _root.tick2._visible=false;
    _root.tick3._visible=false;
    _root.tick4._visible=false;
    _root.tick5._visible=false;
    _root.tick6._visible=false;
    _root.tick7._visible=false;
    _root.tick8._visible=false;
    _root.tick9._visible=false;
    _root.tick10._visible=false;
    Here is the script to turn on a tick from a button press. Pressing the button takes the user to a new section, and on entering the section, the tick appears...The script is atached to a frame at the start of a new section....
    stop();
    this.onEnterFrame = function () {
    _root.tick1._visible=true;
    Any help would be greatly appreciated...

    I'm having the same problem but adding this._lockroot = true isn't working.
    I'm adding an old sfw (flash player 6, AS1) to captivate 4. This flash file has a drag and drop activity and has this clip even on the root level.
    onClipEvent (enterFrame)
        if (_root.currAns == 6)
            allDone = 1;
            _root.currAns = _root.currAns + 1;
        } // end if
        if (allDone == 1)
            if (_root.correct._currentframe == 1)
                _root.congrats.gotoAndPlay(2);
                allDone = 0;
            } // end if
        } // end if
    I tried changing the _root to this. but that didn't work either.
    This is driving me crazy so if anybody knows a quick fix i would love to hear from you.
    thanks

  • Flash games not working properly

    When going to games on the Mattel.com site the game will load but clicking the play now icon doesn't work.  If I right click in the window and hit play the next screen will load but again nothing seems to work.  This games on the site work just fine on 4 other systems in the house.  This is a clean install of Windows 7 Ultimate x64. Any ideas? 

    Nevermind.  apparently these games will not play without speakers or headphones plugged in.  Neat trick

  • Flash command not behaving correct in cs6

    Hi
    I have a small command which I use a lot. In previous versions of Flash, it work great. It rounds the x and y of selected objects. It still works on all kinds of symbols, but if I run it on a textfield the the textfield moves in a wierd kind of way.
    Any ideas? Or is this a bug?
    The script:
    var curr_doc = fl.getDocumentDOM();
    for(i=0 ; i<curr_doc.selection.length ; i++ ) {
              curr_doc.selection[i].x = Math.round(curr_doc.selection[i].x);
              curr_doc.selection[i].y = Math.round(curr_doc.selection[i].y);
    Jakob

    Hi Jakob,
    This seems to be a bug with the text objects. Will investigate this further.
    Thanks!
    Mohan

  • Mouse & trackpad is not working properly in flash games

    I thought the problem was with my mouse. But even my trackpad behaves weird.
    When I try to click this game (http://jayisgames.com/games/red-remover-player-pack-2/) or any other games before, single clicking any clickable spots in the flash game works. But in that game, I could single click on "Play Game," "Ok." "the red face," "Play" & box 1. But from that on, I must double click to make anything work. It's not that game that requires double clicks. I've been playing it for a long time, all only single clicks. From there on, I single click on a red box, nothing happens. Then I click on another spot, that previous click happens.
    Not just on that flash game, I've tried many others ones, all gave me this click delaying problem.
    When I try to click on spot A, nothing happen. Then I click on spot B, the click on spot A happens. So I must double click on everything to work.
    I realize I couldn't single click on anything to work on any flash websites (sample:http://www.mono-1.com/monoface/main.html). Clicking once just highlights the link, must click again to make it work.
    Please try out that game to see what I'm talking about. I'm not promoting anything here. I got a serious mouse problem.
    Thanks.
    macbook pro, Mac OS X (10.6.4)
    Model Identifier:
    MacBookPro7,1
      Processor Name:
    Intel Core 2 Duo
      Processor Speed:
    2.4 GHz

    Same problem on Windows 7 in Chrome browser...
    My Windows 7 one at work works fine though.....

  • Embedded flash not behaving correctly

         I am having some problems with embedding flash into a PDF and I hope you can help. When I run the flash outside the PDF, all of the rollovers and cursor changes behave correctly. However, once I embed the flash into the pdf and launch it, when I rollover areas of interaction, the cursor doesn't behave like it should.
         Outside the PDF, when I rollover an area of interaction, the pointer changes to the hand. When it is embedded into a PDF, I hit the edge of the area of interaction and the cursor flashes to the hand and then back to the pointer.
         I know these aren't the correct terms but I am hoping that it is decipherable. I am far from a flash or PDF guru, but I have tried everything I can think of to get this to work. The flash presentation was created in adobe captivate 3.
         I have opened a case with Adobe support and I was on the phone with them for 2+ hours today with no resolution. I am hoping the collective knowledge of the forums and the internet can help! Thanks in advance!
    --jcbrig00

    I am also having a problem with this . It seems to be a bug because it is not only movie clips but buttons that don't show the hand cursor.
    My problem was with a simple flash test movie created in flash cs5 using actionscript 2
    If any one can solve this I would be really grateful

  • My arrow keys are not working inside flash games

    Hello,
    Whenever I play any flash game, my arrow keys are not working. They work perfectly fine when I am scrolling the site with them, but not in flash games.
    I am using Google Chrome, flash player version 10,3,181,36 and my operating system is Win7 64 bit.
    Solutions I've already tried:
    Use another webbrowser
    Re-install Flash player
    Restart PC
    Try another keyboard
    I have this problem ever since the last Flash Player update.

    Hey there Questionair1.
    It sounds like your arrow keys are not working correctly. I would start with these steps from the following article named:
    OS X Mavericks: If keys on your keyboard don’t work
    http://support.apple.com/kb/PH13809
    You may have accidentally set an option that changes how your keyboard operates.
    Choose Apple menu > System Preferences, click Dictation & Speech, then click “Text to Speech.” If “Speak selected text when the key is pressed” is selected, deselect it or click Change Key to select another key.
    Choose Apple menu > System Preferences, click Accessibility, then click Keyboard. Make sure Slow Keys is turned off. If Slow Keys is on, you must hold down a key longer than usual before it’s recognized.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Adobe Flash Games Will Not Load

    I have updated Firefox to latest version 26.0...also updated Adobe flash to  Version 12.0.7.148...also updated video drivers for Pc..also cleared cache...also updated windows xp to windows 7..also made sure all add on were enabled that are suppose to be...also have disabled hardware acceleration both in Firefox and shockwave settings..have uninstalled and reinstalled everything..also have ran malware bytes several times and runnning microsoft security essencials ..Also have tried running Firefox in safe mode.HOWEVER I still can not get adobe games to load. WHAT am i missing?
    Operating System
        Windows 7 Ultimate 32-bit SP1
    CPU
        Intel Pentium 4 630
        Prescott 90nm Technology
    RAM
        4.00GB Dual-Channel DDR2 @ 266MHz (4-4-4-12)
    Motherboard
        Dell Inc. 0KF623 (Microprocessor)
    Graphics
        HP w1907 (1440x900@60Hz)
        Intel 82945G Express Chipset Family (Dell)
        Intel 82945G Express Chipset Family (Dell)
    Storage
        465GB Seagate ST500DM002-1BC142 ATA Device (SATA)    33 °C
    Optical Drives
        TSSTcorp CDRWDVD TS-H492C ATA Device
    Audio
        High Definition Audio Device

    Mike,
    Thanks for the reply.  I just worded that wrong i do have adobe flash player latest version installed as well clicked your link to double check. I have been going at this for 5 hours a day for a week now still no improvement. Also let me add i cant even watch youtube videos via FF or IE or opera..however I can with chrome....also with chrome i can play flash games however there real slow and choppy even with all updates and hardware acceleration clicked off. this is why im trying to switch from chrome..any more suggestions? thanks
    P.s. ive even tried last resort and unistalled flash and tried some archived version still no imporvement... now back with latest version

  • Safari Will Not Play Flash Games or Videos on my account but will on others

    As of last night my MacMini will not play videos at mlb.com, YouTube.com or flash games at ClubPenguin.com. When I log out of my account on the same computer and log into my kids' accounts it will play all of the above mentioned sites quite well. The problem cannot be with the websites not being compliant with Safari since they are playing normally on my kids' account on the same computer using the latest version of Safari.
    Mac Mini   Mac OS X (10.4.10)   iBook, iMac, iPod, iPod Mini, iPod Nano

    Well most issues are either A. system wide, or B. User specific.
    In this case the issue was user specific because it happend only in your user, not your kids accounts.
    There are prefernce files (plists) for pretty much everything. When something goes wrong, a good place to start is to pull relevent plists from YOUR user library. home>library>preferences
    If this issue was system wide and happening in all accounts, you would start pulling plists from the library under your hard drive. harddrive>library>preferences.
    When the machine is restarted or logged off after pulling these, when you log back in the preferenece files are regenerated back to standard settings.
    Yes you can trash those plists now with no problem.
    excuse my spelling errors, im typing while on break for 5 min!
    hope this helps
    -J

  • Flash and java games not working

    hi,
    when i try to play online games that uses flash or java, they wont load, flash games just show the red F, IVE TRIED DOWNLOADING FLASH FROM ADOBE, but that didnt work, ive tried updating my software to the latest version, that didnt work either. ive also tried the update app, but none were found.
    the phone is a nokia 5800 music express,
    any help would be apppriciated,
    many thanks ,
    wayne.

    The flash app you're trying to play has to support Flash Lite, otherwise it won't work. Flash content has become pretty demanding in terms of hardware required to run it smoothly, or run it at all for that matter...
    The question here is, did the content you're trying to view/play work before, and on which mobile phone? If you never had success in using the same flash/java apps/applets on any phone, then trying to solve your problem is feasible. If not - most likely you've run into a demanding app(let) which simply needs the full Java RE or Flash, and it won't work with mobile Java or Flash Lite.
    Careful what you wish for... You just might get it.

  • Flash Video Not Playing in Captivate Project

    I've put in a flv video at the beginning of a Captivate Project. When I press F4 from within the project, it works fine - flash video slide works, transitions into Captivate build, etc.  However, when I publish the file as a Flash Project and then try and open the HTML link from within the published folder, I am told that there is a Connection Error.  The project proceeds, progresses until the Captivate portion of the project comes up and works fine from there.
    Any ideas or suggestions?

    Have you copied the FLV file into the same folder as the published SWF?  Captivate doesn't do this automatically for you.

  • Adobe flash will not load - gives only a black screen

    For all the (3) users on this computer.   For most browsers (Safari, Chrome, Firefox) The browser window goes 100% BLACK when a flash program link is opened and most of the time the cursor / Pointer freezes (occasionally disappears and all keyboard actions are blocked.  Have to force quit or kill the box with the power key (which always bothers me.)  No Adobe links work directly via the link in mail or in browser.  Symptom in Mail is either the original window goes BLACK or a separate window opens in Black.
    Current OS X 10.9.3 (13D65), Memory 4GB on 2.4 GHz Intel core i7 in MacBook Pro  15" Late 2011.
    Relevant?? Items:
    1.     The Adobe company checking device says Flash is not loaded.  I have had flash 9, 10, 11, 12, & 13 working before the latest of   OS X upgrades were made.
    2.     An aside, I recently (4 months ago) used a MacKeeper app.  Today (not used except for information gathering) the "System Scan says my ProtectMac anti-virus is active and no security problems noted.  Also noted was "Serious" issue relating to one of 128 issues (474.3 MB of 'junk' files-36.9 MB in 'Logs", 437.4 MB in Caches.)  "Performance" listed as 'Fast.'  No action is taken and System Scan app closed.
    3.     I seem to have lost my copy of Flash 13 in the Applications folder and the install file tries to load  "AdobeFlashPlayerInstaller_14_ltrosxd_aaa_aih.dmg"
    This makes sense as to item 1. above. 
    4.      Another user loaded adobe flash 11 from a download file called, "AdobeFlashPlayerInstaller_11au_ltrosxd_aaa_aih.dmg."  I do not understand the meaning of  the part of the file name that reads "_11au_" as it seem to differ from other downloads for "_11eu_".  Additionally the copy retained is filed in history and had only the user permissions of one user.  Also that copy _11au_ has no mention of Browser Type in the name description of the .dmg file; but the "_11eu_" does mention Safari browser.   Since it was from July 8, 2013 I assume it doesn't matter and it should have been superseded by Flash 12 OSX.  Mentioned here only for interest.  Also, It may have been saved on this computer in case of rebuild for another user on the home network running 13" MacBook Pro 10.6 Leopard.
    5.  Attempts to reload Flash 13 from 'AdobeFlashPlayerInstaller_13au_ltrosxd_aaa_aih.dmg' as the "Adobe Flash Player Installer" connects to the latest version not yet installed and keeps downloading the Flash 14, which fails and locks up the browser.
    6.     The download from get,Adobe.com starts out O.K.  After the installer file.dmg completes well, Step 2. is to open it, that, too, works well with an open window of a mounted device on the desktop.  The next step is to double-click the icon.  That only works so far.  A window opens and it has a progress thermometer but it never downloads any product and the link is declared "unavailable" immediately.  Refuses to load and will not always give the pointer back or let the browser continue.
    7.     While creating this 'Summary' something changed.  Using Spotlight I found a different version of Flash Installer on my Mac.  I clicked it to go to the Black screen after installer download competes and got a totally different response.  I was set to take snapshots of the windows as they progressed.  The ".dmg" Icon on the desktop changed from default plain white disk to the red "Flash Player" I had not seen for last 40 days. 
    Pic 1.     Pic 2.   
    Pic 1. is the desktop device icon.
    Pic 2. is the Installer.
    Pic 3. is the Acceptance popup.  ~~Note: This popup shows a backwards rev dated March 4, 2012!  today is 10 July, 2014.
    Flash Player 11.6 is installing after acceptance of License.
    Everything went normally and loaded but I cannot test it as all browsers were closed. 

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

Maybe you are looking for

  • How much does it cost to fix iphone5 screen?

    Hey, so dropped my iPhone 5 and the bottom half of the phone screen has cracked. It's not unusable, you can still make calls, but it's hard to see what you are doing! How much do you think it would cost to fix the screen? Would it be cheaper to just

  • How to Centre tables with out centreing the text in elements?

    Ok so this bug has been boggling my brains for a while. When i create a table and center it, all the text inside the table also center justifies (in the output and preview, but is not visible in HTML editor), no matter what the justification is for t

  • .nef Nikon D5100 is not displaying right in Camera Raw

    Hello, these two images show the exact same .nef file being opened in two different programs. The first one with the blown out colors is opened in Adobe Camera Raw. The second one is opened in Nikons View NX 2 software. This is also the way I see the

  • Can't open pdf files on link

    Hello everybody, I'm facing a strange problem. We recently moved a part of a file server on a different partition (due to lack of space). So, an entire subdirectory of the company moved, and we made a link on the former partition that points to the n

  • Cant change main enail address

    it is not letting me change my main email address as it says the one im changing it to is my rescue address but i have changed my rescue address to a different ine now.. v annoying as the existing main email is not in use anymore !