Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 6, 2008, 12:55 PM   #1
moneyshot
macrumors member
 
Join Date: Nov 2006
Flash world map...

Hi,

Im wanting a flash world map for a website. Just something basic with a hover function over countries.

The lonely planet site has exactly what I would like: http://www.lonelyplanet.com/worldguide/

Does anyone know where I could get one, preferably free or would it be hard to design one?

Thanks in Advance.
moneyshot is offline   Reply With Quote
Old Aug 6, 2008, 03:16 PM   #2
snickelfritz
macrumors 65816
 
Join Date: Oct 2003
Location: Tucson AZ
I recently created an AS3 solution for similar question on the Kirupa forum.
Here's a basic demo that can be easily applied to map graphics.
The graphics should be fairly simple to create using a layered Illustrator file, and an image of the Earth as a template.
http://www.byrographics.com/AS3/stateCapitol/states_capitols.swf

Here's the AS3 code, using TweenMax for the tweening, and keyframes for the rollovers.
Source FLA is attached.
Code:
stop();
import gs.TweenMax;
import fl.motion.easing.*;
stage.scaleMode = StageScaleMode.NO_SCALE;

var stateName:String = "";

stateGroup.buttonMode = true;
stateGroup.mouseEnabled = true;
stateGroup.addEventListener(MouseEvent.MOUSE_OVER , rollover, false, 0, true);
stateGroup.addEventListener(MouseEvent.MOUSE_OUT, rollout, false, 0, true);

function rollout(event:MouseEvent):void {
	TweenMax.to(event.target, .5, {scaleX:1, scaleY:1, dropShadowFilter:{color:0x000000, alpha:0, blurX:0, blurY:0, strength:1, angle:45, distance:0}});
	stateTxt.text = "";
	capitolTxt.text = "";
	gotoAndStop(1);
}

function rollover(event:MouseEvent):void {
	stateName = event.target.name;
	gotoAndStop(stateName);
	trace(stateName);
	TweenMax.to(event.target, .5, {scaleX:1.02, scaleY:1.02, dropShadowFilter:{color:0x000000, alpha:0.5, blurX:5, blurY:5, strength:1, angle:45, distance:5}});
	switch (stateName) {
		case "Arizona" :
			stateTxt.text = stateName;
			capitolTxt.text = "Phoenix";
			break;
		case "Colorado" :
			stateTxt.text = stateName;
			capitolTxt.text = "Denver";
			break;
		case "California" :
			stateTxt.text = stateName;
			capitolTxt.text = "Sacramento";
			break;
		case "Utah" :
			stateTxt.text = stateName;
			capitolTxt.text = "Salt Lake City";
			break;
		case "Wyoming" :
			stateTxt.text = stateName;
			capitolTxt.text = "Cheyenne";
			break;
	}
}
Attached Files
File Type: zip states_capitols.fla.zip (7.9 KB, 40 views)
__________________
2.4ghz 24" iMac (Aluminum); 4GB RAM; 320GB HDD; 250GB external G-Drive; 10.5.7; Adobe CS3.
snickelfritz is online now   Reply With Quote
Old Aug 6, 2008, 11:10 PM   #3
ChicoWeb
macrumors 6502a
 
ChicoWeb's Avatar
 
Join Date: Aug 2004
Location: California
Not sure what your use for it is, but we ran into the same issue a few weeks back. We decided to use JS and HTML, you can see below, but we looked at swf.

http://lbd.chicodev.com/advisor/
__________________
ChicoWeb is offline   Reply With Quote
Old Aug 6, 2008, 11:38 PM   #4
carbon14
macrumors newbie
 
Join Date: Oct 2006
Location: Canada
iStockphoto has something like this:

http://www.istockphoto.com/file_clos....php?id=848858
carbon14 is offline   Reply With Quote
Old Aug 6, 2008, 11:55 PM   #5
Mitou
macrumors regular
 
Join Date: Jan 2008
If you want to purchase (inexpensively) a flash already created like that flashden.net has a couple of nice files.
Mitou is offline   Reply With Quote
Old Aug 7, 2008, 03:05 AM   #6
snickelfritz
macrumors 65816
 
Join Date: Oct 2003
Location: Tucson AZ
http://www.byrographics.com/AS3/imag...mageZoom1.html
__________________
2.4ghz 24" iMac (Aluminum); 4GB RAM; 320GB HDD; 250GB external G-Drive; 10.5.7; Adobe CS3.
snickelfritz is online now   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:04 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC