Understand the SandboxType of flash player before getinto this issue.
While inside the bin-debug, your sandbox type is LocalTrusted. This will allow access to external system,
When go go for the deployment it wont works, cos you sandbox type will be different (say Network with Local)
The above URL will expain the security concept