I am able to get data from the database and have it shown in a dynamic text box using asp...
I am also able to dynamically load an image using flash
but i want to put the two together...get the name of the image from the database then have flash load the particular image form the folder..
I cannot get it to work..
this actionscript is on a movieclip in the main timeline:
*************************
onClipEvent (data) {
strName = Name;
}
onClipEvent (load) {
CurrentRecord = 0;
loadVariables("asp.asp?Record=0", this);
this.createEmptyMovieClip("container", 1);
}
*************************
this code is inside the movieclip on the first frame:
*************************
this.createEmptyMovieClip("container", 1);
this.loadMovie(strName);
container._x = container._y=50;
*************************
if I replace:
*************************
this.loadMovie(strName);
*************************
with:
*************************
this.loadMovie("image.jpg"
;
*************************
the image will be shown on the movie. but it will not be "database" driven. If instead i replaced:
*************************
this.loadMovie(strName);
*************************
with:
*************************
strName="image.jpg"
this.loadMovie(strName);
*************************
the image will also show up. any help???
thanks
I am also able to dynamically load an image using flash
but i want to put the two together...get the name of the image from the database then have flash load the particular image form the folder..
I cannot get it to work..
this actionscript is on a movieclip in the main timeline:
*************************
onClipEvent (data) {
strName = Name;
}
onClipEvent (load) {
CurrentRecord = 0;
loadVariables("asp.asp?Record=0", this);
this.createEmptyMovieClip("container", 1);
}
*************************
this code is inside the movieclip on the first frame:
*************************
this.createEmptyMovieClip("container", 1);
this.loadMovie(strName);
container._x = container._y=50;
*************************
if I replace:
*************************
this.loadMovie(strName);
*************************
with:
*************************
this.loadMovie("image.jpg"
*************************
the image will be shown on the movie. but it will not be "database" driven. If instead i replaced:
*************************
this.loadMovie(strName);
*************************
with:
*************************
strName="image.jpg"
this.loadMovie(strName);
*************************
the image will also show up. any help???
thanks