c# - Links in a swf file -


I have a worldmap.swf, have I included a small logo in any continent, which I Clicks only the countries of that particular continent, where another country has been included in each country, I need to make a link in the logo of every country, which must open a separate web site. Example: A logo in the North American continent, which opens UDSA and Canada, will need to open a website related to the United States by clicking on the United States logo, Canada logo, a Canadian related website, and so on. Can help here? Thanks

Store logos and their related URLs in one array assign a single click handler to all the other people in the other, within the handler, the logo clicked in the logo array ( event .target ) and use that index to get that URL and go to that URL.

  Var Logo: Array = [USOLOGO, UK LOGO, ASEIA, / * etc * /]; Var url: array = ["usa.html", "uk.html", "asia.html", / * etc * /]; For everyone (various logos: movie clips in the logo) logo AddEventListener (MouseEvent.CLICK, gotoWebsite); Website with Event (Event: Event): Zero {var Index: Number = Logo. Index (event.target); Var url: string = url [index]; NavigateToURL (url); }  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -