|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
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);
}
|
|
|
|
|
|
#2 |
|
Wx geek
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." |
|
|
|
|
|
#3 |
|
Member (10 bit)
|
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 :/
|
|
|
|
|
|
#4 |
|
Dark
|
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 |
|
|
|
|
|
#5 | |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|