Hey, I don't think that there is any possibility to include a
.js-File. If you want to validate something in your flex
application you have to write your own code with AS3 and if you
HTML-File) you can use the ExternalInterface-Class. Just have a
look at the Adobe LiveDocs.