View Single Post
  #1 (permalink)  
Old December 14th, 2006, 12:13 PM
flashfreelancer flashfreelancer is offline
Registered User
 
Join Date: Dec 2006
Location: Lee, NH, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to flashfreelancer
Default pg 49 Photo Viewer script does not work

What's going on guys? I can't afford these scripting mistakes. This is the second one and I'm on page 49!!!

The "trace" command is undefined all three times. I've triple-checked the code on the .as file. Here is the code:

var photoArray:Object = new Object ();

photoArray["weddingPhoto1"]=newObject();
photoArray["weddingPhoto1"].fileName="weddingPhoto1.jpg";
photoArray["weddingPhoto1"].fileSize=150;
photoArray["weddingPhoto1"].description="Exchanging of the rings.";

photoArray["westIndiesVacation1"]=newObject();
photoArray["westIndiesVacation1"].fileName="vacation1.jpg";
photoArray["westIndiesVacation1"].fileSize=64;
photoArray["westIndiesVacation1"].description="Arriving at the airport in sweltering heat.";

trace(photoArray["weddingPhoto1"].fileName);
trace(photoArray["weddingPhoto1"].fileSize);
trace(photoArray["westIndiesVacation1"].description);
Reply With Quote