Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get image name from database then dynamically load it

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top