![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 21
Rep Power: 0
![]() |
actionscript 2.0 for-loop logic problem
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 ![]() code Syntax (Toggle Plain Text)
Last edited by Simongcc; Sep 14th, 2007 at 4:19 AM. |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3
![]() |
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.
__________________
Neeley.org |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2005
Posts: 21
Rep Power: 0
![]() |
thanks a lot, have got it fixed immediately.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: May 2005
Posts: 21
Rep Power: 0
![]() |
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 code Syntax (Toggle Plain Text)
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3
![]() |
Thanks for posting your solution, Simon, and I'm glad you got it fixed.
![]()
__________________
Neeley.org |
|
|
|
|
|
#6 |
|
Newbie
Join Date: May 2005
Posts: 21
Rep Power: 0
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tossing coin, logic problem ? | cairo | C++ | 12 | Jan 3rd, 2006 9:29 AM |