Hi. I'm sure it's so simple but I'm struggling.
I want to declare a variable in my .swf that will (for example) range from 1 to 5. I'm calling it "courseID".
Later, in a movie clip, I want to use the value of that variable to complete a URL address that is opened in a new browser window. I'm getting the no syntax errors, but my URL address is not using the variable value. I am trying this:
In first frame of Flash movie, I set the variable:
var courseID = 5;
In movie clip, I am trying to concatenate that value of the variable in my URL:
on (release) {
getURL((" + courseID), "_blank"
;
}
It should be returning this URL:
Any suggestions? THanks.
I want to declare a variable in my .swf that will (for example) range from 1 to 5. I'm calling it "courseID".
Later, in a movie clip, I want to use the value of that variable to complete a URL address that is opened in a new browser window. I'm getting the no syntax errors, but my URL address is not using the variable value. I am trying this:
In first frame of Flash movie, I set the variable:
var courseID = 5;
In movie clip, I am trying to concatenate that value of the variable in my URL:
on (release) {
getURL((" + courseID), "_blank"
}
It should be returning this URL:
Any suggestions? THanks.