Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-24-2005, 06:46 PM   #1
Member (10 bit)
 
Join Date: Aug 2003
Location: East Lansing, MI
Posts: 635
Send a message via AIM to comp615
Help in flash

Hey I'm having trouble in flash. I am working on a project thats due tomorrow and thisstupid thing wont go...heres the bad part. See if you can help. PLEASE IM ME IF YOU HAVE ANY IDEA!!!! It works on the first slide, but not the second (this one) nothing is different. It prints undefined for all but the last one, which works ok. (Although the url is wrong)...

Code:
var dopicture = function(word) {
	picviewer.contentPath = urldata[word];
	caption.text = word;
}

farmers.onRollOver = function() {
	dopicture(Farmers);
}

wheat.onRollOver = function() {
	dopicture(Wheat);
}

ships.onRollOver = function() {
	dopicture(Ships);
}

cloth.onRollOver = function() {
	dopicture(Cloth);
}

ivory.onRollOver = function() {
	dopicture(Pakistan);
}

Sumer.onRollOver = function() {
	dopicture(Sumer);
}
comp615 is offline   Reply With Quote
Old 10-24-2005, 07:12 PM   #2
Wx geek
 
blue60007's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
The only thing I can see is you might have the case wrong. The last object (Sumer) is capitalized, and the others are not. (ie, farmers.on... might have to be Farmers.on....) Don't know if that is the problem, but worth a go.
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers."
blue60007 is offline   Reply With Quote
Old 10-24-2005, 07:18 PM   #3
Member (10 bit)
 
Join Date: Aug 2003
Location: East Lansing, MI
Posts: 635
Send a message via AIM to comp615
Yeah I tried checking all that, but no luck. The case is right...When I define it literally like dopicture("food") then it prints food, so I think its interpreting it as a variable :/
comp615 is offline   Reply With Quote
Old 10-24-2005, 07:21 PM   #4
Dark
 
Dark Nova's Avatar
 
Join Date: May 2004
Posts: 1,128
Send a message via MSN to Dark Nova
maybe adding the whole program, that could help us find it
__________________
1.
Intel Core2Duo 3Ghz|Asus P5K Deluxe Wifi|4GB DDR2 800Mhz| Seagate 500GB*2| Evga 8800GTX 768MB| Antec SonataII case w/ 550W TruePower PSU|XP Pro
2.
AMD Athlon 64 3500|Asus A8N-sli deluxe|2GB DDR ram|Maxtor 250GB HDD|ASUS NVIDIA 6800 256MB|antec sonataII case w/ 450W PSU|XP home
Dark Nova is offline   Reply With Quote
Old 10-24-2005, 07:38 PM   #5
Wx geek
 
blue60007's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
Quote:
Originally Posted by comp615
Yeah I tried checking all that, but no luck. The case is right...When I define it literally like dopicture("food") then it prints food, so I think its interpreting it as a variable :/
Did you try making it dopicture(farmers); as well? Yeah, if you put in "food" it is going to take that as a literal string, and print exactly that.
blue60007 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:59 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2