|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
any help PLEASE! hair seems to be thinning...
Could someone please help I am going crazy!! I am connecting to a php file then it retrieves data from a mySQL database then flash presents it. This all works great. But here is the problem I want to then be able to duplicate the data (which is images). Please view the code below, I have tried many different ways but nothing seems to work. Any help would be greatly appreciated!!!
Thank you skezo Code:
userData = new LoadVars();
userData.load("testme.php");
userData.ref = this;
offset = 60;
userData.onLoad = function(succes) {
if (succes) {
for (var i = 0; i<this.cant; i++) {
this.ref.createEmptyMovieClip("clip_"+i, i);
this.ref["clip_"+i].createEmptyMovieClip("holder_"+i, i);
this.ref["clip_"+i]["holder_"+i].loadMovie(this["Image"+i]);
this.ref["clip_"+i]._yscale = 40;
this.ref["clip_"+i]._xscale = 40;
this.ref["clip_"+i].onPress = function() {
duplicateMovieClip(this, "mc"+i, 500+i);
startDrag("mc"+i);
};
this.ref["clip_"+i].onRelease = function() {
stopDrag();
};
if (i != 0) {
this.ref["clip_"+i]._y = this.ref["clip_"+(i-1)]._y+this.ref["clip_"+(i-1)]._height+offset;
}
}
} else {
trace("Something is wrong!!!");
}
};
stop();
|
|
#2
|
||||
|
||||
|
moderator's note
please post with a meaningful title if you want to get a meaningful answer.
christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > any help PLEASE! hair seems to be thinning... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|