Skip to main content
Participating Frequently
July 26, 2007
Answered

variable as url

  • July 26, 2007
  • 2 replies
  • 390 views
Hi guys,
I've got a problem and could really use some help . I'm trying to use loadMovie, but instead of entering a static URL I'm trying to get a variable I created to be used as the URL. The variable is a relative reference, eg. picture.gif (I can provide more code if this isn't clear enough)
I've posted and searched trying to find an answer, so if anyone knows, please please help...

PS, I'm new to AS so I hope it's ok me posting here, I wasn't sure if this is for pros or what, so my apologies if it is.

Josh
This topic has been closed for replies.
Correct answer kglad
if picturesrc is the variable and it contains the correct url, you should be using:

2 replies

kglad
Community Expert
Community Expert
July 26, 2007
you're welcome.
kglad
Community Expert
Community Expert
July 26, 2007
post your code that works (ie, hard coding the path) and your code that fails (when you use a variable for the path). use the attach code option.
JoshuaRAuthor
Participating Frequently
July 26, 2007
thanks for the reply kglad, I'll post the code but you gotta promise not to laugh
(I've gotten some of the code from different tutorials and adapted it)

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 26, 2007
if picturesrc is the variable and it contains the correct url, you should be using: