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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading jpg's dynamically 1

Status
Not open for further replies.

gcorwin

Technical User
Aug 6, 2004
2
US

I am having trouble loading a jpeg dynamically and I was wondering if I can get a boost in the right direction.

I have a querystring that has all the info I need, and everything but the jpg is loading properly in the movie. It probably has to do with the way I am setting up my variables

Here is the string

<PARAM NAME=movie VALUE="outlilne.swf?strTitle=Alicia Silverstone&strDate=July 10, 2004&strBestKnownFor=Clueless and her role as Batgirl&strDescription=Here is the Description where you can put anything you want&strImage=silverstone">



Here is what I have in the movie, loadImage is the empty placeholder mov

onClipEvent (load) {
var image = strImage;
loadMovie(""+image+".jpg", "loadImage")

}


It works fine if I specify and actual image in the loadMovie, but how can I get it dynamically? How do I get the image name from the querystring?

TIA
 
_root.strImage;

So

Code:
onClipEvent(load){
   var image = _root.strImage;
   loadMovie(""+image+".jpg","loadimage");
}

Hope it helps!

Wow JT that almost looked like you knew what you were doing!
 
OMG! You know I tried _parent.image and _level0.image before and they didn't work for some weird reason, but that did. Thanks so much!

Greg
 
Glad it helped :)

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top