Dear all,
I have created a Menu in Flash using MenuBar Component and actoin script. I want to interatc this menu with Visual Basic 6.0, but unable to do this as I am unable to adjust FSCOMMAN in code. Please help me.
CODE
var my_menubar:mx.controls.MenuBar;
var myDP_xml:XML = new XML();
myDP_xml.ignoreWhite = true;
myDP_xml.onLoad = function(success:Boolean) {
if (success) {
my_menubar.dataProvider = myDP_xml.firstChild;
} else {
trace("Error Loading XML File");
}
};
myDP_xml.load("menubar.xml");
import mx.styles.CSSStyleDeclaration;
if (_global.styles.MenuBar == undefined) {
_global.styles.MenuBar = new CSSStyleDeclaration();
}
_global.styles.MenuBar.setStyle("themeColor", "haloOrange");
// Add a change-listener to Menu to detect which menu item is selected.
var menuListener:Object = new Object();
menuListener.change = function(evt_obj:Object) {
var item_obj:Object = evt_obj.menuItem;
trace("Item selected: "+item_obj.attributes.label);
};
my_menubar.addEventListener("change", menuListener);