I just worked through this with "The Scrutinizer" -- a browser + simulation of human vision for raising consciousness on design factors and conducting site evaluations. The menubar is not yet in the system, but you can try the app out at http://about.stompernet.com/scrutinizer

Here's an example:

protected var menuBarXML:XMLList = <>
           <menuitem label="File">
               <menuitem label="Open Location..." data="newDocument"/>
               <menuitem type="separator"/>
               <menuitem label="Quit" data="exit"/>
           </menuitem>
           <menuitem label="Bookmarks">
               <menuitem label="Add Bookmark" data="addBookmark"/>
               <menuitem type="separator"/>
           </menuitem>
           <menuitem label="Tools">
               <menuitem label="Capture Screenshot" data="captureScreen"/>
           </menuitem>
           <menuitem label="Help">
               <menuitem label="Getting Started" data="getStarted"/>
               <menuitem label="Top Ten Uses" data="topTen"/>
</menuitem>
           </>;
            var menuBarCollection = new XMLListCollection(menuBarXML);



           private function fileMenuHandler(event:MenuEvent):void
           {
               trace("file menu handler invoked");
               trace([EMAIL PROTECTED]);
               var action:String = [EMAIL PROTECTED];
               switch(action) {
                   case "captureScreen":
                       captureScreen(event);
                       break;
                   case "exit":
                       break;
                   case "addBookmark":
                       addBookmark();
                       break;
                   case "getStarted":
html2.location = "http://about.stompernet.com/scrutinizer/gettingstarted?src=help";;
                       break;
                   case "topTen":
html2.location = "http://about.stompernet.com/scrutinizer/topten?src=help";;
                       break;
}
           }

<mx:MenuBar id="menubar" labelField="@label" itemClick="fileMenuHandler(event);" dataProvider="{menuBarCollection}" ></mx:MenuBar>

Hope that helps!
Andy

Crews, Donna wrote:
I am trying to build a menu that actually opens a URL or loads a SWF. However, there is no good documentation on menu events. Went to the Adobe site and this menu http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=menucontrols_061_5.html <http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=menucontrols_061_5.html> is nice, but we cannot figure out how to make anything load. Does anyone know how? thanks
Donna Crews, Web Developer
AT&T Southeast
575 Morosgo Drive, 10D33
Atlanta, GA

404-986-8433


"We cannot become what we want to be by remaining what we are"



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to