PDA

View Full Version : Weird problem when using menuBar component



Dauntless
December 11th, 2004, 09:15 AM
Hi evryone!

I'm building this game, and it was working fine, until I used the menuBar component. It's not code related, 'cause i've commented out the script that does things with the menuBar.

If I drag the MenuBar component from the component window, onto my Stage , the game refuses to work. If I deleet it (but keep it IN my library), it still doesn't work!. But if I turn the export settings of the MenuBar off, it works!

The classes that i'm using for my game are called Node.as, JawBreaker.as The class I want to use to do something with the menuBar is called GameMenu.as (but that doesn't matter, since I commented the calling of that class out).

If anyone has any idea what so ever, please post it!

Greets,
Dauntless

Dauntless
December 11th, 2004, 09:35 AM
WEIRD, it's solved! I had 3 input textfields, named 'width', 'height' and 'colors' . I renamed them to g_width, g_height and g_colors, and now it works :s . I can understand that flash might have trouble, 'cause they are 'reserved words' but why does flash not mind, until I import the MenuBar component? :s

Greets,
Dauntless