POST
|
Kevin, I realized that I forgot to comment one area, and left some unused stuff in the code. Here is an updated version: Hi Robert, Hope you can help I am sure this is an easy fix again. I have been playing with the menu's, rearranging and adding sub menu's etc. I have managed to construct the menus as I would like them however the URL link is not working (I want some of the menu options to open external pages). At the moment the default message box is opening rather than the links to the external sites (i.e. BBC and Sky). I have provided my code below. Any idea where I am going wrong?
//Code Added
[Bindable]
public var menuBarCollection:XMLListCollection;
private var menubarXML:XMLList =
<>
<menuitem label="Document Links" data="top">
<menuitem label="MenuItem 1-1" data="1-1">
<menuitem label="MenuItem 1-1-1" groupName="one" data="1-1-1"/>
<menuitem label="MenuItem 1-1-2" groupName="one" data="1-1-2"/>
</menuitem>
<menuitem type="separator"/>
<menuitem label="MenuItem 1-2" data="1-2">
<menuitem label="MenuItem 1-2-1" groupName="two" data="1-2-1"/>
<menuitem label="MenuItem 1-2-2" groupName="two" data="1-2-2"/>
</menuitem>
</menuitem>
<menuitem label="Other Links" data="top">
<menuitem label="BBC Site" data="2-1"/>
<menuitem type="separator"/>
<menuitem label="Sky Site" data="2-2"/>
</menuitem>
</>;
//End Code Added
//Code Added
// Event handler for the MenuBar control's itemClick event.
private function menuHandler(event:MenuEvent):void {
// Don't open the Alert for a menu bar item that
// opens a popup submenu.
if (event.item.@data != "top") {
//If you want to be able to do something unique when a menu
//item is clicked than you need code like this:
switch( event.item.@data ){
case "2-1":
//doSomething();
navigateToURL(new URLRequest("http://www.bbc.co.uk/"));
break;
case "2-2":
//doSomethingElse();
navigateToURL(new URLRequest("http://www.sky.com/"));
break;
default:
Alert.show("Label: " + event.item.@label + "\n" +
"Data: " + event.item.@data, "Clicked menu item");
break;
}
}
}
//End Code Added
... View more
01-19-2012
08:11 AM
|
0
|
0
|
242
|
POST
|
Thanks Robert - I have tagged the posts. Cheers, Kevin
... View more
01-19-2012
05:09 AM
|
0
|
0
|
242
|
POST
|
Hi Robert This is exactly what I was after, sincere thanks for your help with this. Regards, Kevin
... View more
01-19-2012
04:37 AM
|
0
|
0
|
413
|
POST
|
Hi Robert, No offence taken at all. Flex is new to me so you ar exactly right. I am currently starting the Flex in a week course hosted by Adobe, having just finished the Build a flex app in a day course. This was an excellent course that has shown me my way around the the Flash Builder IDE - but your right I need to look further into fundamentals. I am doing a combination of learning the fundamentals of the Flex SDK while also finding my way around the ArcGIS Flex API. I'm definately getting there and have learnt a lot recently, but clearly a long way to go! Any way thanks for your help, I'll take a look at your code now. regards, Kevin
... View more
01-19-2012
04:14 AM
|
0
|
0
|
413
|
POST
|
Hi Robert, My modified code is attached. I have added comments of Kevin** where I have added the new code - hopefully this helps? I have only changed HeaderControllerWidget.mxml - I have not changed HeaderControllerWidget.xml I notice I am getting a parse error at line 301 (just befor my script) but I can not resolve this. Thanks in advance for the help, Kevin
... View more
01-19-2012
03:08 AM
|
0
|
0
|
413
|
POST
|
Thanks Robert. I was hoping to implement that looked a little less out of box which was why I was going to attempt to use the MenuBar component. This will certainly help in the short term though so thanks very much!
... View more
01-18-2012
06:56 AM
|
0
|
0
|
413
|
POST
|
Hi, I would like to add a couple of menu items on a menu bar in the header of my flex viewer application. These would include "Links" and other hyperlinks that are useful on my project. I have looked at implementing this using MenuBar (see here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/MenuBar.html) by adding the code example to HeaderControllerWidget.mxml however while I have managed to get a "box" where the menu should be - I don't actually get a menu to appear. I am not sure if I am adding this to the wrong file or if there is something else I am missing. Any help appreciated.
... View more
01-18-2012
06:44 AM
|
0
|
15
|
928
|
POST
|
Any idea where I can down load this code? I have clicked the original link but the page states that I do not have permission to view this area - even after I login with my ESRI Global account...
... View more
01-17-2012
01:51 AM
|
0
|
0
|
295
|
POST
|
Hello all, I have shapefile which I would like to add create a tool with in ArcGIS Explorer. Basically I would like ArcGIS Explorer to run automatically. I would like to zoom to the first record in my shapefile, stay there for 30 seconds and then zoom to the next record in the shapefile. Is this possible in ArcGIS Explorer? I would like to have this run in two different scenarios - the first will be that the cycle is only run one. The second is that the tool will run on a continous loop. Any help appreciated. Regards, Kevin
... View more
11-01-2011
07:45 AM
|
0
|
0
|
399
|
POST
|
Just though that I would add that I had the same issues with 3D view not working as those identified above. I too have the Intel HD Graphics integrated system. I have recently downloaded additional drivers as identified by running the test at http://downloadcenter.intel.com/Default.aspx The 3D view now works with the updated drivers - however the 3D view is very very slow. not sure if this is an issue with the setup machine I have or something else but thought I would share my experience with others.
... View more
10-31-2011
04:06 AM
|
0
|
0
|
319
|
POST
|
Hello all, I have just installed ArcGIS Explorer Desktop build 1750. I have tried to use the find tool but it seems to be not working/hanging. For example in the attached screen image I have searched for New York. Initially the search button is blue but after searching I get no results and then the search tool is greyed out. Whats going on hear? Has anyone else expirienced this? Regards, Kevin
... View more
10-25-2011
03:46 AM
|
0
|
1
|
488
|
POST
|
I don't have a standalone version of Python 2.6 installed on my machine - are you saying I need both the version shipped with ArcGIS v10 and a separate install of python? i.e. would I need to install version 2.6.6 here (2.6.5 is apparently an unstable version: http://www.python.org/download/releases/2.6.6/)
... View more
03-03-2011
04:19 AM
|
0
|
0
|
606
|
POST
|
Still no luck. Is there anything other than referencing the file paths that I should do?
... View more
03-01-2011
11:16 PM
|
0
|
0
|
606
|
Online Status |
Offline
|
Date Last Visited |
03-03-2021
03:07 PM
|