Skip to main content
September 6, 2010
Question

SWF Compilation Failed

  • September 6, 2010
  • 19 replies
  • 29308 views

I am using Captivate 5 on a Windows Vista machine. I upgraded from Captivate 4 a week ago and successfully published one project in Captivate 5 before this one. I have compiled the current project a dozen times without a problem. But, when I added the project information and then tried to publish the project, I got the following error: "Swf compilation failed. Note: Please verify if any of the actionscript keywords is used as user variable name." [sic] I am not using variables in this project, so this error does not make any sense to me.

I am able to preview each slide individually. However, I get the above error message when I attempt to preview the whole project. I tried copying the slides, audio, and captions to a new blank project and got the same error when I attempted to publish it. I also attempted to remove all the project information and publish to project with no success.

Any ideas why this may be happening and what I can do about it -- short of starting the project over from scratch?

Thank you.

Isaac

    This topic has been closed for replies.

    19 replies

    Participant
    April 20, 2016

    I've fixed this on version 8 by removing the title of the slides in the properties tab and typing them back in.  Hope this helps someone.

    Known Participant
    March 31, 2016

    So I performed a patch update to Captivate 8 and it solved the problem and took the error message completely away, hope this helps someone!

    Known Participant
    March 25, 2016

    Hello,

    I am using Captivate 8 and I too am getting the frustrating error message "Swf compilation failed. Note: Please verify if any of the actionscript keywords is used as user variable name."

    I have no idea what this is about and it started happening on my 37th slide when I went to "preview next 5 slides"

    Based on all of the suggestions in this thread I have tried:

    -Changing my file name to exclude any special characters,

    -Removing compression options

    -Hiding, Un-hiding the quiz results slide

    -Updating my folder location and cache location

    All to no avail =( And it is weird because it lets me preview the project from any point before slide 37 but when I try to preview from that point forward I get the error message and now when I play my project, it doesn't show all of the playbar options to advance forward. One other thing not sure if it helps but this slide has many applied effects on it and when I tried to preview those before it wasn't working. I tried removing all effects and see if that would help but it didn't.

    I am VERY far along in my project and can't afford any major issues for preview or publish. Please help!!

    RodWard
    Community Expert
    Community Expert
    March 26, 2016

    What's on slide 36, 37?  Anything unusual?

    Known Participant
    March 28, 2016

    No nothing unusual just some affects on text captions and such.

    Participant
    November 26, 2014

    Captivate version 8 - Windows 7

    After my pulling my hair out about this error for most of the day...   I thought that I had finally figured out my issue.

    My project info did not contain any "     So I tried various other things...  copying and pasting slides to a new project etc.

    I finally discovered one slide that had " in slide properties.    I thought this would fix...   but nada.

    Participant
    January 5, 2015

    Hi All,

    I came across this error today, and spent about 3 hours troubleshooting with the help of this forum. I wanted to post the solution that I found in case it helps someone else.

    Many of you mentioned the quotation marks in the project description / information field. Well, my problem was even more obvious than that. I kept trying to preview the project and thats when I got the error, but I noticed that when I previewed the project from certain slides, it worked, but once I got to a certain one, it didn't. That certain slide had quotation marks in a text caption itself. Once I removed those, the compiler worked, and I had no issues previewing or publishing.

    Also, in case it helps, the slide was a question slide in a quiz, too. So I recommend trying to remove quotation marks on any questions slides, and then even try regular slides to see if that helps. Goodluck.

    GrenadaV
    Inspiring
    January 5, 2015

    Wow,

    Good spotting and thanks for the tip :-)..

    Cheers

    Rossco

    Participant
    October 6, 2014

    I have run into this on various versions of Captivate. Apparently, you can only have maybe 120 variables. I create some pretty lengthy captivate learning modules. Using a previous module, I rename it and delete most of the slide. Then I record the new content. What I find is that this does NOT remove the variables for objects like text_box_entry_1. Even if you go to the broken or unused items in the library and delete them, the variables remain. When you get to around text_box_entry_120, you can no longer compile. If you are not using the variables in the current project, you may delete them. I go thru the project and rename my text boxes to something less generic and delete the generically named entries. I can then successfully compile.

    April 7, 2014

    Well, this issue persists in Captivate 7. I received this error message for the first time today when I tried to preview a section I had just finished. I have a project with multiples slides, interactions, quizzes, video, audio, etc. I tried some of the solutions with no luck. Then I took the suggestion to hide slides in batches and eventually narrow down the culprit. For me it was the Quiz Results slide causing the issue. As I had added in some quiz slides today to work on later (templates I had already created), but am not working on that area today, I just deleted the quiz and results slides. When I actually need to finish the quiz and produce the project, I'll have to figure out what exactly it is about that slide that is causing this issue. Unfortunately, there seem to be so many different issues causing this error. Anyhow, of everything here (with so many people getting this error in so many different situations), the best suggestion so far seems to be hiding and unhiding slides to find out where the offender is, and then trying to figure out which one of the many possible issues is causing the error. I am rather frustrated to discover this issue has been ongoing since at least 2010 (with Captivate 5) and that it is still happening now, with no real fix.

    RodWard
    Community Expert
    Community Expert
    April 7, 2014

    Am I correct in assuming that this project did NOT begin as a Cp7 project but was upgraded from an earlier version?  If yes, then I suggest that after upgrading to Cp7 then you copy all slides EXCEPT the Quiz Results slide (which you wouldn't be able to copy anyway) and paste them into a new blank Cp7 shell project of the same dimensions. Over several Cp versions I've come to be somewhat distrustful of the Quiz Results slide because it quite often seems to be troublesome when upgrading.

    April 8, 2014

    Actually, no, but thank you anyhow for replying. This project was created in Captivate 7; I have not had any previous versions of the program so no upgrading, and I created this project from scratch (created a customized template first, then created a new project using my new templates). I am now also having issues with some of the interaction widgets. I go in and customize some of the widget properties (font colour, background, etc.) and preview them and everything is fine. I then work in another area. When I go back to the interaction slides some of the options have changed back to some of the default again (though the customization options were made, I clicked okay, and checked to make sure everything was good in preview, and saved the project). This seems to happen most often with font colour. Argh! I can't find any information on this issue. As for the quiz results page, I'll have to let you know how that turns out (working on finishing the quiz today).

    Inspiring
    September 23, 2013

    Just had (and resolved) the same issue on Captivate 7 and OSX (latest lion).  In case it helps anyone.

    Mine was a simple project, series of slides with mouse animations.  No quiz, TOC, etc.

    So then worked through most of the previous suggestions:

    • Text captions all include numbers in square brackets.  No issue as published multiple projects with the same.
    • All text captions had a space between the square bracket and the text content. 
    • Text captions did include some text in regular brackets as well.  Removed the round brackets just in case but still failed
    • publishing and cache defaults were local drives
    • I had no project variables.
    • filename did not have an extra '.' or .cptx
    • All captions had a blank name (or so I thought....)

    So to narrow the search I did as was suggested earlier and hid batches of slides and kept trying to build the project until it let me. This allowed me to narrow the search down to 1 culprit slide.  Looking at the name of that slide and while blank it appeared corrupted.  Hard to describe but when selecting its content it was like selecting 6px text in a 12px box.  Only half the box changed colour with selection.

    On recollection I do remember on one slide pasting the text content for a caption and it appearing as the caption name, not the caption content.  So probably when it went awry.

    Guessing something corrupt so deleted that slide and recreated.  Project then compiled OK.

    So in a nutshell:

    - error appears to = dodgy character anywhere in the project

    - show/hide slides until you narrow it down

    - kill that slide and rebuild

    Good luck!

    Steve

    Inspiring
    September 23, 2013

    And don't get me started on the uselessness and appalling grammar of the error message you have to contend with.

    Participant
    December 31, 2012

    I had this problem today with Captivate 6 running on OSX Mountain Lion. I probably had slide titles that were too long. I deleted all of the titles and it now publishes. Which brings me to another point...Why in the heck don't slide titles stay with the slides when you move them around and delete other slides. Man, this is very annoying. Captivate is coming a long way over the years. I look forward to less bugs in the future.

    Oh yeah, bring back the stinking multi-scorm and roundtripping to those of us who own the master collection and captivate. I'll blow this trumpet until I get an email with exactly what I need.

    RodWard
    Community Expert
    Community Expert
    January 1, 2013

    I just tested this on Win7 running Cp6 and the slide titles DO stay with the slides even if you move them around or copy from one project to another.

    It may not be the cause of your issues, but it's worth noting that Captivate 6 is NOT yet approved for use on iOS Mountain Lion.  So the bugs you are seeing might be due to that.  If it's any consolation, CP6 isn't yet approved for Win8 either.

    As for giving Multi-SCORM Packager and Flash or Photoshop roundtripping to any Captivate user, as well as getting "an email with exactly what I need"....don't hold your breath. 

    Life wasn't meant to be THAT easy.

    Known Participant
    January 1, 2013

    I agree with Rod - I copy slides between projects all the time, as well as deleting them and moving them within projects.  All my slides are named to make it easier to do this, so I'd definitely have noticed any problem with this.

    I use Win 7 on a 64-bit machine, if that helps.

    And YES to the Multi-SCORM packager - we have to use Reload Editor.

    Participant
    December 7, 2012

    I put together a whole project in (64)bit and got the actionscript error message when I tried to export it.  Tried the majority of fixes listed in these replies with no solution.  Installed the 32 bit version loaded the project and exported without problem.

    Sankaram
    Adobe Employee
    Adobe Employee
    December 7, 2012

    Hi ELRico,

                    Your 64 bit JVM might be corrupted. Try the following in 64 bit Captivate installation and let us know the results.

    1. Add  Use32BitJVMForPublish = 1  in AdobeCaptivate.ini  file
    2. Close and Re-launch Captivate.
    3. Re-publish the project

    Captivate ini file is present at “C:\Program Files\Adobe\Adobe Captivate 6 x64” location

    You can send me a mail at sankaram@adobe.com if it still doesn't resolve the issue.

    Thanks,

    Sankaram.

    xr42nv
    Inspiring
    December 22, 2011

    Had this problem at work after we converted to Cp5. It is fixed for us now - here is what we noticed and how we fixed it.

    1. We noticed that the error would only appear if the TOC was turned on. We would turn the TOC off and the file would publish without any issues. Which is great if you don't need the TOC, which we do. (so thinking mabye someone could work with that bit of information)

    2. We use alot of text captions in Cp files to indicate a keyboard shortcut e.g . After reading about the problems with " and [] in this post, i went and removed all [] brackets in the Cp file, and sure enough, it published.

    3. What we now do - for the existing files using [] brackets, we have merged them into the background - which works. For new Cp we are now using other methods, such as () and other common characters.

    Another thing to note is that only captions with a square bracket followed by a letter cause the corruption, and to add to that, only if that same caption appears in more than 1 slide. e.g [Enter] appears on slide 1,3,6, etc... Numbers in square brackets have been working.

    Hope this helps.

    BDuckWorks
    Inspiring
    April 27, 2012

    Based on your comments, I've loded a BLANK project in Captivate 5.5 (Educator version), and attempted to investigate:

    1) Table of Contents: We're using the TOC, with a customized color theme, and created a custom skin.

    When I open the Skin Editor, or view the Table of Contents, I get a LOUD OBNOXIOUS SOUND, and a dialogue box / caption appears to flash on the stage that says: "Project Created By Adobe Captivate 5.5"

    The dialogue box is flashing on and off apparently to the speed of the sound.  This may mean that this error only appears in the Educational Version? Is that correct?

    2) I'm searching the existing file for brackets in captions. Results were "[ and ]" were not found in the text captions or all object types.

    RodWard
    Community Expert
    Community Expert
    April 28, 2012

    It sounds a bit like you may have some AS2 components in your project somewhere.

    The most likely culprit in my view would be your custom skin.

    Try removing just your custom skin that you mentioned above, replacing it with one of the standard skins from the Captivate 5.5 gallery.

    If it turns out removing the skin fixes your issue, you need to go back to whoever coded that skin and get them to recreate it in AS3.