Daily Technology News, Tips, and Reviews | Subscribe to Jason Slater Technology BlogTechnology Feed | Join Jason Slater on TwitterTwitter | Thursday 2nd September 2010

Dealing with You cannot debug this SWF error in Flash

By Jason Slater
  • DiggThis
  • Share

I was busy working on my Flash project last night when after a short session of adding a new Class I was met with a problem when testing the application – I was faced with a plain white panel where my application should be, not even any output trace would appear in the OUTPUT window.  No Compiler errors appeared.

Flash SWF Problem

When attempting to debug the application a dialog box error states “You cannot debug this SWF because it does not contain AcionScript”, however when I click on the icon of the pen next to the Class name in Flash it bring up the .AS file correctly.

Flash Error

The directory structure of the package files has not changed and no files exist that shouldn’t be there – a curious problem to resolve.

The first step I tried was to remove all but the essential information from my Classes, and then remove the Classes themselves – this did not help so I went to the Library in Flash to check the symbol definitions – and there it was. Earlier, I had been working on a Start Button for the Splash Screen and I created the first symbol ButtonStart but wasn’t happy with it and created StartButton instead – however I had provided a Class name for ButtonStart which had no matching .AS file. As soon as I fixed this problem the program went back to working fine again.

Related

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.