@mastahyeti: e.g.
```actionscript
// Enable complete AMD support (e.g. RequireJS)
if (flashvars.amdModuleId && typeof flashvars.amdModuleId === "string") {
  var amdModuleId:String = JSON.encode(flashvars.amdModuleId);
  externalDispatch = ZeroClipboard.amdWrappedDispatch(amdModuleId);
}
```

and

```actionscript
private static function amdWrappedDispatch(amdModuleId:String): String {
  return "(function (event, args) {\n" +
         "  require([" + amdModuleId + "], function (ZeroClipboard) {\n" +
         "    ZeroClipboard.dispatch(event, args);\n" +
         "  });\n" +
         "})";
}
```

**Notes:**
 1. The quotes that are surrounding `amdModuleId` in the second code snippet (in the current source, not the one shown above) can be removed (as in the one shown above) because the JSON encoded string will already contain this wrapping quotes.
 2. `JSON.encode` is a utility method from the [as3corelib](https://github.com/mikechambers/as3corelib) external library as `JSON.stringify` wasn't introduced into AS3 until Flash Player 11 (and we currently offer support for Flash Player 10+).  The part of the method that we would need is specific only to strings, so basically [these lines of code](https://github.com/mikechambers/as3corelib/blob/24c6c16aecbf0d8fcc043ae671e689b0d4b4c559/src/com/adobe/serialization/json/JSONEncoder.as#L109-191).