flex-users / flex-iframe

IFrame component for Flex applications.
github.com/flex-users/flex-iframe
120 stars 63 forks source link

Exception in Chrome, FireFox, and IE : Unexpected Token #137

Open CatOnMars opened 11 years ago

CatOnMars commented 11 years ago

When the iframe is being loaded, Chrome and Firefox, IE all throw exceptions: unexpected token ILLEGAL

This is happening due to using numerical ID as function name prefix.

// Register a uniquely-named load event callback for this frame. ExternalInterface.addCallback(_frameId + "_load", handleFrameLoad);

it results in illegal javascript function name "0_load" "1_load" "2_load" ... etc. thus preveting loading function from execution.

Hope this could be fixed. Thanks: )