Copy link to clipboard
Copied
Not sure if this is the best place to post this question, but I'm having a difficult time finding a tutorial or guide showing what I would like to do. I think this should be pretty straightforward, but I'm a complete novice to flash and or flex.
I would like to use a map of the United States as an image map. When a user clicks on a specific state I would like the following items to take place, the state changes color to show that it has been selected and a cfc is called with a method that will pull data from the database for display in a div located below the image. I'm not concerened about getting the data from the database, but how to make the flash swf file that includes the image with the associated links to the cfc and ability to show the currently selected state.
I have access to all of the tools in CS5 web premium, just looking for some help as to where to start.
Copy link to clipboard
Copied
I have made some progress on this, but still looking for ideas on how to best complete this project. I have my map built and have each state created as an individual button in Flash. I'm using the following actionscript to cause a click to load a new url:
function vaClick(event:MouseEvent):void {
var vaURL:URLRequest = new URLRequest("index.cfm#va");
navigateToURL(vaURL, "_self");
}
va_btn.addEventListener(MouseEvent.CLICK, vaClick);
In the above example, I could load the data for every state in the page and then just use the anchor to move to the specific section for each state. I would prefer to only show the data for a spefic state below the map when the user clicks on that state. If no state has been clicked on, I have some generic data that I would like to display.
Should I try to retrieve the data from a cfc and thendisplay it in flash, or is it possible to display the returned data outside of flash in a div below the map?