
Welcome Guest
|
#1
|
|||
|
|||
|
Hey people,
Got a good question for ya! I am using php to query a database, and then return the results to a flash movie, but instead of returning html or plain text, I want to attach a movieClip called 'resultRow', which is duplicated for each respective result. My problem is that I can't figure out how to set the next resultRow's _y position. The _x position stays the same, but I want the _y position to increment every 20 pixels, so that the following row sits below the preceeding one (Kind of like what a html table would look like, but we're using movieClips instead). Here's what I have so far (this is not working by the way): Actionscript:
numOfRows = _root.numRows.rowNums;
for(i=0;i<numOfRows;i++) {
_root.resultbox.attachMovie("resultRows","result"+i,i);
setProperty("_root.resultbox.result"+i,_x,0);
setProperty("_root.resultbox.result"+i,_y,_root.resultbox["result"+i-1]._y+20);
}CJ...
__________________
jezmond - the family berzerker |
«
Previous Thread
|
Next Thread
»
| 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 |
| randomly (timewise) adding movieclip as2 | floody123 | Newbies |
1 | 11-08-2008 08:02 PM |
| Remove attached MovieClip from loadMovie | Mocha | Flash 8 |
5 | 02-08-2007 08:23 AM |
| Drag/Drop ActionScript-Drawn MovieClip | andrewcheong | Newbies |
4 | 02-23-2006 01:10 AM |
| Playing nested movieclip attached at runtime | ADreamer_17 | Actionscript 2.0 |
11 | 08-22-2004 05:52 PM |
| Multiple row results are not showing up | cwalsh | Flash MX ActionScript |
5 | 08-26-2002 03:42 PM |

Other Programming



