Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Quick Code Check for Flash


Quick Code Check for Flash

Reply
  #1 (permalink)  
Old 09-10-06, 02:36 PM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Quick Code Check for Flash

Hi,

I just tried to substitute the destination direction in this directionfinder flash file I have, but it does not link after I changed the directions. Is there something in the map code that needs to be changed to work? It was set to Googles HQ.

Thanks in advance, Dave
Code:
on (release) {
	//Where the map will find directions 
	//to should be filled out below

	//Address of where directions will go to
	address_2 = "940 Fowler Street Northwest"
	//City of where directions will go to
	city_2 = "Atlanta"
	//State of where directions will go to, you must abbreviate the state
	state_2 = "GA"
	//Zip code of where directions will go to
	zip_2 = "30303"
	if ((_root.address.length > 0) & (_root.city.length > 0) & (_root.zip.length > 0)) {
		url = "http://www.mapquest.com/directions/main.adp?go=1&do=nw&un=m&2tabval=address&cl=EN&ct=NA&1tabval=address&1y=US&1a=" add _root.address.text add "&1c=" add _root.city.text add "&1z=" add _root.zip.text add "&2y=US" add "&2a=" add address_2 add "&2c=" add city_2 add "&2s=" add state_2 add "&2z=" add zip_2 add "&idx=0&id=410ed2bb-002ee-01b60-400c3301&aid=410ed2bb-002ef-01b60-400c3301";
		trace(url)
	} else {
		_root.error = "Error: Please fill out all text fields"
	}
}

Last edited by nico_swd; 09-10-06 at 03:05 PM. Reason: Please use [code] wrappers when posting code.
Reply With Quote
  #2 (permalink)  
Old 09-12-06, 11:40 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
i think this:
Code:
if ((_root.address.length > 0) & (_root.city.length > 0) & (_root.zip.length > 0)) {
should be this:
Code:
if ((_root.address.length > 0) && (_root.city.length > 0) && (_root.zip.length > 0)) {
try it, and post back
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 09-13-06, 01:48 AM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Did not work

Hi UnrealEd,

It did not work. The strange thing is that it works in Flash until I change the destination address. Then the find directions button does nothing. I only changed street, city, state and zip.

Could it be in part of the mapquest url? I see it is broken into 2 parts...

Thanks for your help,
Dave
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Code Tweak if Possible jdsmith8 JavaScript 1 08-23-06 02:45 PM
Add code option in quick reply Rayden Hot Scripts Forum Questions, Suggestions and Feedback 3 06-02-06 01:38 PM
Quick php code - please! BernardBlack Job Offers & Assistance 1 01-21-06 03:57 AM
check a cell to see if it has a currency code crmpicco Visual Basic 0 12-16-05 09:25 AM
help on code to make a url check delta-x PHP 6 03-10-04 05:45 AM


All times are GMT -5. The time now is 06:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.