Hi Gregor,
You must to create (or change) a RectBorder style to accomplish that.
The actual used is "menuBorder" (see mx.skins.halo.RectBorder line
148).
Hope that helps...
2005/10/11, Gregor Frey <[EMAIL PROTECTED]>:
> Can anybody give me a hint how I can set the borderStyle attribute of a
> v2-Menu? I want to use Open Source only, no Flash IDE.
> I managed to bring up a Menu and set all kind of Style attributes. But no
> settings could change the borderStyle. Probably not all required symbols are
> exported with the Menu.swf. Some ideas?
>
> My AS code looks like the following:
>
> function onLoad() {
> fileMenu = Menu.createMenu();
> fileMenu.setStyle("embedFonts", "true");
> fileMenu.setStyle("fontFamily", "vera");
> fileMenu.setStyle("fontSize", "12");
> fileMenu.setStyle("fontWeight", "bold");
> fileMenu.addMenuItem({label:"Zur Übersicht",
> instanceName:"gotoMainMenu"});
> fileMenu.addMenuItem({label:"Auswertung", instanceName:"scores"})
> fileMenu.addMenuItem({label:"Neustart", instanceName:"restart"});
> fileMenu.addMenuItem({label:"Lösung", instanceName:"solve"});
> fileMenu.addMenuItem({label:"Aufhören", instanceName:"exit"});
> fileMenu.addEventListener("change", this);
> fileMenu.setStyle("backgroundColor", "yellow");
> fileMenu.setStyle("borderStyle", "none"); // has no effect !!
> }
>
> And the swfmill.xml like:
>
> <frame name="Preload">
> <library>
> <clip id="Application" class="Application" />
> <font id="vera" name="vera" import="library/Vera.ttf" />
> <font id="vera_bold" name="vera" import="library/VeraBd.ttf" />
> <clip id="Menu" import="components/Menu.swf" />
> <clip id="List" import="components/List.swf" />
> <clip id="Tree" import="components/Tree.swf" />
> <clip id="ScrollPane"
> import="components/ScrollPane.swf" />
> <clip id="UIScrollBar"
> import="components/UIScrollBar.swf" />
> <clip id="Button" import="components/Button.swf" />
> <clip id="Label" import="components/Label.swf" />
> </library>
> <call object="Application" method="main" />
> <stop/>
> </frame>
>
> Gregor
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
--
::| Carlos Rovira
::| http://www.carlosrovira.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org