PDA

View Full Version : Problem with pathing?



sji1981
06-22-2004, 01:04 AM
This code is working fine when I test "the scene" but it is not working when I test the Movie. Why?
for(i=0; i<10; i++){
_root["fname"+i].text = this["name"+i];
trace(("fname"+i) + ("name"+i));
}

This code is in the third frame of my movie. Second frame calls the third frame using a button where code is gotoAndPlay(3);

Any help will be appreciated.

NTD
06-22-2004, 02:49 AM
Hi,

I am not sure how you are using your variables, but the "this" in your code will refer to a variable on the current timeline, if you are calling this code from another scene, "_root" would be a better option. Also, is your for loop the only code on the third frame?


NTD