![]() |
actionscript 2.0 for-loop logic problem
2 Attachment(s)
Dear All,
I am using Flash 8 and actionscript 2.0 to load a photoWall into moviescript. While the script runs smoothly if I separate the inside i-loop into 4 blocks. Or some of the images will be missed. Did I missing something in logic? Thanks in advance. Simon :confused: :
|
I can't see what's wrong with the code at this point. It looks good.
You should put your code in code tags, by the way. |
thanks a lot, have got it fixed immediately.
|
Problem resolved
Hihi!
I have resolved the problem: There were 2 problems: 1. Since there is depth consideration in flash, the depth variable have problem. Some photos will be overlapped. 2. I have swapped the thought of column and row so that the image is missed if I combine the code together. Hope this can set an opp. example. Thanks! Simon :
|
Thanks for posting your solution, Simon, and I'm glad you got it fixed. :)
|
Summary of problems for all reference
Thanks, you are so nice!
Summary of image not load problem for reference: 1. movieclip name (the name inside script mismatch with the name of Mclip) 2. image path is not correct 3. depth checking(the result is weird if depth have problem) whenever doing a complex scripts, return and make a simple script as a testing probe. Hope this can save you from hours of frustration. Cheers |
| All times are GMT -5. The time now is 9:21 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC