addCallBack Using SWF Object

[FONT=Arial][SIZE=2]Hey All,[/SIZE][/FONT]

[FONT=Arial][SIZE=2]I was wondering if anybody had a resource where I could find info on calling AS functions from JavaScript when using SWF Object.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]Right now I have the plain old Flash code and this JavaScript function:[/SIZE][/FONT]

[SIZE=2][COLOR=#7f0055] [/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#7f0055]function [COLOR=#000000]re[/COLOR][/COLOR][/SIZE][SIZE=2]initialize() [/SIZE][SIZE=2][COLOR=#7f0055]{[/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#7f0055]if [/COLOR][/SIZE][SIZE=2](navigator.appName.indexOf([/SIZE][SIZE=2][COLOR=#8e00ff]“Microsoft”[/COLOR][/SIZE][SIZE=2]) != -1) [/SIZE][SIZE=2][COLOR=#7f0055]{[/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2]flash = window.menubar;[/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#7f0055]}[/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#7f0055]else {[/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2]flash = window.document.menubar;[/SIZE][/LEFT]
[LEFT][SIZE=2][COLOR=#7f0055]}[/COLOR][/SIZE][/LEFT]
[LEFT][SIZE=2]flash.runCollapseMenu();[/SIZE][/LEFT]
[SIZE=2][COLOR=#7f0055] [/COLOR][/SIZE][SIZE=2][COLOR=#7f0055]}[/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055] [/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055][FONT=Arial][COLOR=#000000]Inside my AS file I have an ExternalInterface Callback set up to respond to runCollapseMenu…[/COLOR][/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055][FONT=Arial][COLOR=#000000]
[/COLOR][/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055][FONT=Arial][COLOR=#000000]Obviously, now I do not have the same set up with SWF Object, so how would I go about re-writing this JS in order to work properly for me?[/COLOR][/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055][FONT=Arial][COLOR=#000000]Thanks,[/COLOR][/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055] [/COLOR][/SIZE]
[SIZE=2][COLOR=#7f0055][FONT=Arial][COLOR=#000000]–D[/COLOR][/FONT][/COLOR][/SIZE]