
October 19th, 2003, 06:24 PM
|
|
Contributing User
|
|
Join Date: Aug 2003
Location: Utah
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 5
|
|
|
Question: Using variables in a URL path?
I am getting a variable from a PHP page and trying to use that number in loading an image in flash. Here is the code.
Code:
imgNum=_root.newNum;
loadMovieNum("/images/small/"+imgNum+".jpg", 2);
Currently it is not working. I have a dynamic text field showing the correct number using 'imgNum' as the var:
The code works fine if I use:
Code:
imgNum=1;
loadMovieNum("/images/small/"+imgNum+".jpg", 2);
What am I doing wrong here? Thanks for any help!
|