In flex application some times you get error :
Security error accessing url
This error commonly comes when you download a tutorial project from adobe site.
Reson of the error I don’t know , but Solution I know.
Only one solution You don’t rename the downloaded flex project name after Import or before Import in flex application.
If rename then above javascript error come.