this one wasted a few hours. geez. i just could not figure out why the hell externalinterface.addcallback would not work. turns out.. it did. just not locally. bah.. if i made a top 10 list of the things that drive me crazy about intarweb programming.. #2 would be dealing with remote/local development. in this case it was a security issue. my javascript is not 'trusted locally' or maybe it's my swf. i don't really know or care, but it is damn annoying.
the stupid thing is that it was right there as the 2nd comment on the livedocs but i was too blind to see it.
----
ok.. after much screwing around i have a security solution. none of the usual things work since i am running vista. i tried making FlashPlayerTrust files and FlashAuthor.cfg and some other crap, but it did not work. The solution that did work was to visit..
i could not find the 'flash setting manager' anywhere in vista because it was not there. you visit a crazy webpage on the macromedia site and that is where you config your local security. that's crazy. anyway. i just added the directory where my swf was and it worked.
it seems for every 2 minutes of programming in flash i have 2 hours of gotchas. geez.