kelvinluck.com

a stroke of luck

Flash 8 enhanced stroke bug

Update:

This is a very old page imported from my previous blog. If there is missing content below or anything that doesn’t make sense then please check the page on my old blog.

When Flash 8 came out I jumped straight on the bandwagon and started using the IDE at work. Unfortunately I quickly encountered a bug which effects you when creating an swf for an earlier version of the Flash Player. At the time I was surprised that no one else seemed to be having problems with it but I quickly forgot about it when I started working on some Flash 8 projects…

Then, the other day, Scott Fegette from Adobe posted about the problem and I suddenly remembered. And as luck would have it the next day I was working on a little Flash 6 swf and ran into the problem again. Luckily this time I saved a simple file that reproduces the problem and I’ve sent this over to Scott. He has confirmed that he can replicate the problem and forwarded it on to the product team at Adobe. In the meantime I thought that I would post here so that other people who run into the problem can find the workaround.

The Problem
The designers I work with use Illustrator. We’ve found that generally the best way to get graphic assets from Illustrator to Flash is to choose “Export” in the Illustrator file and choose swf as the format. You can then import the generated swf into Flash (and clean it up a bit).

This has always worked fine for me. Until I started using the Flash 8 IDE…

One of the new features of Flash 8 is Enhanced strokes. These are only available if you export as Flash 8. Unfortunately, there is a bug in the IDE where it will add these enhanced strokes to your project when you import an swf (even if your publish settings are already set at flash 6).

So you create a new fla and set the publish settings to Flash 6 (following best practices as outlined by Scott). You then import your Illustrator swf. Now press Ctrl-Enter to test your movie. “Enhanced stroke is not supported in this player”. D’OH!

Note that the problem is not with the swf created by Illustrator. As we shall see, you can import the same swf into an earlier version of the Flash IDE without any problems… The problem is with the import process in the Flash 8 IDE.

If you want to see this in action then you can download my simple Illustrator file and try it out.

The workaround
I have only managed to find one workaround for this problem so far. It is simple but a little annoying. Basically, you can import the Illustrator into a previous version of the Flash IDE (I still have MX2004 installed luckily). You can then save it as an fla which you can open from Flash 8 and do what you like with. No enhanced strokes. Yay!

Hopefully MacromAdobe will fix this bug in a point release – in the meantime I hope the workaround helps someone. If anyone knows any other ways of avoiding the problem then I am all ears!

33 Comments, Comment or Ping

  1. I’ve ran into this problem yesterday. I’m no flash dev and not really a fan of it anyways, but i needed a little map with some rollovers on it, and i knew i could bust it out fairly quickly. That is until i decided to have my artist use illustrator to make the map.

    This bug is totally inexcusable and needs to be fixed pronto. How are we supposed to use the newest IDE and use illustrator to do the art? This is nuts.

    February 8th, 2006

  2. It definitely needs to be fixed…
    In the meantime I’ve just figured out another workaround:
    If you choose to save your fla as a MX2004 file then it removes the enhanced strokes… Slightly more convenient than using the old IDE but still a hassle!

    February 9th, 2006

  3. Saving your ver 8 .fla as a mx04 .fla and then back to ver 8 seems to resolve the problem for me. without needing to have the mx04 version of the program installed.

    February 10th, 2006

  4. Jason

    Awesome! Thanks for the fix! Worked great.

    February 14th, 2006

  5. I always copy and paste between Illustrator CS2 and Flash 8 and have no problems with lowering the flash player ? – Dont know if this is a work around for anyone but its good for me ??

    February 25th, 2006

  6. Thank you SO much for these fixes Kelvin. I’ve just been racking my brain for the last 2 hours looking for a fix. It’s insane. Thanx again.

    February 26th, 2006

  7. @ Jason – great – glad it’s helping you :)

    @ Adam – yeah – copying and pasting between the two works fine and you don’t end up with any “enhanced stroke” problems but I find that you do end up with a bit of a mess if there are any gradients or clipping masks involved (and there often are with the designers I work with :) )

    @ Micha – glad it’s helping you out :)

    Thanks for the feedback guys!

    February 27th, 2006

  8. steve bilica

    Thanks for the fixes kelvin.
    Also a special thanks to Loze!

    How lame not to assume someone would import an older swf, and save as a lower version.

    It seems to me to be quite predictable and common.

    I am surprised not to hear more about this bug.

    March 10th, 2006

  9. leslie vallhonrat

    Thank you. You’ve just rescued 2 days’ work.

    March 19th, 2006

  10. Eivind Vea

    Thanks for the workaround. This bug has been really annoying – Flash freezes when I try to export because of the enhanced stroke thing.

    March 20th, 2006

  11. Jason

    Thanks for the tip – I was racking my brain – the Technote on Macromedia gives a “solution” that DOES NOT work! http://www.macromedia.com/go/cfafe8c6
    They say you can change the doc to Flash 8, select the artwork and change the join in the Propertu inspector on the artwork from Miter to Round, and then publish back as Flash 7 but that doesn’t work at all. I’m glad saving as an MX 2004 doc fixes this. Very annoying.

    March 20th, 2006

  12. nick

    You are a genius. Thanx so much for the work-around.

    March 22nd, 2006

  13. You can actually save a Flash 8 document to a Flash MX 2004 document within flash 8. This seemed to convert the enhanced strokes and doesn’t throw the error anymore. From what I can tell, the artwork looks the same as well.

    Just save it as a “Flash MX 2004” within Flash 8.

    March 23rd, 2006

  14. Ah, this is such an annoying bug which they really need to fix.

    March 29th, 2006

  15. If you break apart your Illustrator artwork, and then convert all lines to fills, it will fix the error.

    Enjoy!

    April 5th, 2006

  16. I have had this problem also with outlined text created in illustrator cs2. If you, as travis suggested, break apart in flash the outline stroke, it will not always render as you wish.

    Note that this does sometimes work but not always.

    Another workaround which is fool proof ( i think!!!) is to expand your artwork in illustrator so that when it imports, it imports with all fill and no strokes. Works a treat for me :)

    April 8th, 2006

  17. Luke Miller

    I have found that if you are copying and pasting objects from Illustrator CS2 to Flash 8, to avoid the enhanced stroke problem just make sure your objects have flattened transparency in Illustrator before copying!

    April 26th, 2006

  18. many thanks kelvin.
    and again you helped me a lot by solving my problems.

    cheers,
    michael

    August 27th, 2006

  19. Can anyone please help me? I need to locate a Free download of Macromedia’s Fhash Player Version 8.
    Reason is version 9 will nott allow me to run my software correctly and Adobe won’t supply it.
    any help appreciated.
    Frank Heath
    New Zealand Tel: 0064 9 5291195

    August 30th, 2006

  20. If you search the Adobe site for “archived flash players” you should find this page which seems to be whatyou want?

    Cheers,

    Kelvin :)

    August 31st, 2006

  21. Alex Knights

    In Illustrator File>Save As PDF and in Flash 8 IDE import this PDF. This was an effective workaround for me.

    September 27th, 2006

  22. medved

    another way around enhanced stroke problem is after importing graphic into flash 8 document. file>save as>mx2004… then resave as flash 8 doc. no need to have old flash still installed.

    January 16th, 2007

  23. Bez

    THANK YOU, THANK YOU,THANK YOU.
    You saved me a week of working :)

    April 20th, 2007

  24. No worries – glad it helped you out :)

    April 20th, 2007

  25. What happens if you are in Flash 9 and can’t save back to before Flash 8? I can’t believe that the new version still has this problem!

    July 23rd, 2007

  26. I don’t know! Sorry, I haven’t started using CS3 yet (been doing loads of Flex instead).. Please post here if you figure out a workaround…

    Cheers,

    Kelvin :)

    July 23rd, 2007

  27. i am guilty of not reading every comment, but thought I’d point out that you can select the gradient line then convert lines to fill under the modify menu. That way you can keep your snazzy lines and not get the annoying warning… :D

    July 31st, 2007

  28. gratch

    If you have such problem, you can simply save your work in mx2004 format and thean in flash8 (in the same IDE). Strokes are out! :)

    August 6th, 2007

  29. Just ran into this exact problem working with Flash CS3. Of course there is no “save to mx2004” in CS3. I saved down to flash 8, then found a copy of flash 8 installed on my wife’s machine and saved down to flash 7 on there, and finally opened again in CS3. This worked, but what a pain in the ass! Anyway, thanks for the posting and all the other comments here. Anyone else found a better workaround since CS3?

    December 10th, 2007

  30. David

    Ok… here was are.. ONE YEAR LATER… and this bug is STILL around. ARGH!!!! I don’t have Flash 8… or MX… I only have CS3… and the client needs their SWF saved in Flash 6 format. Nice. I’m up a certain creek without a paddle.

    January 18th, 2008

  31. Kerrie

    I’m very new to the job and to Flash; using CS3, and got this same error. I changed the publish settings under the File menu to Flash 7, tested the movie, then changed back to Flash 9 and no more error. My movies and illustrations are pretty basic so I don’t know if this will work with more complex illustrations, but I hope it helps.

    January 23rd, 2008

  32. Kerrie

    Never mind; it worked in one movie with this error, but not in the next. Sorry.

    January 23rd, 2008

  33. Donna

    I am putting a file to quicktime movie. I was having the same problem with enhanced strokes, I resaved as MX2004 out of Flash 8 and that seemed to work for that problem. But a new problem is occurring—I choose flash player 5 in the publishing setting (even from the first starting the file) and I get an error that I need to choose Flash 5 or earlier still. Even though it is selected. Anyone else having this problem. I tried reinstalling Flash – but no luck.

    June 6th, 2008

Reply to “Flash 8 enhanced stroke bug”