Scope within Functions
hi,
im having few hickups believe scope issue. have frame of code run in 1 of movieclip's time lines. code runs timeline reaches frame works perfectly. however, stop code running on frame , have run when want to. reason captured relevant code function call on when need it. on other hand not work , has problems loading images amoungst other things. scope issue can resolved or need dive whole hierachial structure determine scope problems im having??
thanks heaps in advance
damien
ps: can see @ top , bottom of code have remarked out function tried nest code in.
im having few hickups believe scope issue. have frame of code run in 1 of movieclip's time lines. code runs timeline reaches frame works perfectly. however, stop code running on frame , have run when want to. reason captured relevant code function call on when need it. on other hand not work , has problems loading images amoungst other things. scope issue can resolved or need dive whole hierachial structure determine scope problems im having??
thanks heaps in advance
damien
ps: can see @ top , bottom of code have remarked out function tried nest code in.
you can't nest named functions , expect inner function defined. using anonymous function inner function works.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment