Notes: Flash 9 Gotchas/Bugs

Tuesday, January 26th, 2010 | Notes

This is also migrated over from labs. This was a list of bugs and gotchas I’ve run into over during my time as a Flash developer. I’m sure the best play to look would be Adobe’s Bug tracker but it doesn’t hurt to have a concise list of things to watch out for.

Bugs/ Gotches

  • Bug

    wmode="opaque" or "transparent" disables KeyDown actions (not true in 9,0,60,0 beta) and disables MouseWheel actions

  • Bug

    Textfields using pixel fonts and Static Textfield, render anti-aliased even if selected to render (no anti-alias).
    Fix – Switching to Dynamic textfield fixes issue.

  • Bug

    wmode="opaque" or "transparent" text input fields do not allow special French (possibly other international) characters in Firefox

  • Bug

    When calling getURL("someurl", "_self") (or anything besides "_blank", or null) from an event listener within a class, it fails.

  • Bug

    If textfield is set to “anti-alias for readibility”, and textfield is scaled (by browser or otherwise). Text will scale smoothly, but letter spacing will jump . If the text is set to regular anti-alias, letter spacing jumping will not occur, and text will scale smoothly. If set to _sans, text will jump font sizes and not scale smoothly.

  • Gotcha

    Exported items add file size if set to export on first frame

  • Bug

    Setting a library item that has a textfield that uses a shared library font AND is embedding special character (or letters in general) to “Export for Actionscript” crashes the compiler.

  • Bug

    JPGs wider than 2880px are cropped or simply not loaded.

  • Bug

    Mouse.hide doesn’t work if the text of a dynamic textfields contains a link.

  • Bug

    Unloading a swf from a level > 0 which has references to a runtime shared library doesn’t release it from memory.

  • Gotcha

    mc.onLoad is only called if the script attached to mc is not empty.

  • Bug

    Bitmaps below pixel 1639 are not shown correctly.

  • Bug

    In Flash Players below 9.0.115.0, External Interface mangles complex structured data.

    Data sent to Flash :

          var dataToPass =
          {
              label: "Level 1-A",
              children:
              [
                  { label: "Level 2-A" },
                  {
                      label: "Level 2-B",
                      children:
                      [
                          { label: "Level 3-A" },
                          { label: "Level 3-B" }
                      ]
                  },
                  {
                      label: "Level 2-C",
                      children:
                      [
                          {
                              label: "Level 3-C",
                              children:
                              [
                                  { label: "Level 4-A" }
                              ]
                          },
                          { label: "Level 3-D" }
                      ]
                  }
              ]
          };

    Data received by Flash :

          {
              "0" : { "label" : "Level 4-A" },
              "children" :
              [
                  { "label" : "Level 4-A" }
              ],
              "1" : {"label" : "Level 3-D"},
              "2" :
              {
                  "0": { "label" : "Level 4-A" },
                  "children" :
                  [
                      { "label" : "Level 4-A" }
                  ],
                  "1" : { "label" : "Level 3-D" },
                  "label" : "Level 3-D"
              },
              "label" : "Level 3-D"
          }

No comments yet.

Leave a comment

Please upgrade your Flash Player To submit a comment, you must have Flash Player 9.0.0 or higher installed. I use a flash form here to help prevent spam.

Search

Categories