whoknows361
Technical User
I can't seem to figure this out. I simply want to use a getURL to open a .jpg in a new browser window.
I am getting the .jpg name from an array.
Here's what I got:
(part of a preload sequence)
preload.onLoadComplete = function(targetMC) {
targetMC.onPress = function() {
mypath = imagebiggest[_root.itemchoicenumber];
getURL(mypath, "_blank");
}
The press icon appears when u roll over the loaded clip so I know that the onPress function is working.
But when u click, it gives you a 404 error - page not found - and up at the address bar on top it says
I have tried to use the above code and added a trace to trace the mypath variable when u click. and the traced output is correct
What gives?
Jonathan
I am getting the .jpg name from an array.
Here's what I got:
(part of a preload sequence)
preload.onLoadComplete = function(targetMC) {
targetMC.onPress = function() {
mypath = imagebiggest[_root.itemchoicenumber];
getURL(mypath, "_blank");
}
The press icon appears when u roll over the loaded clip so I know that the onPress function is working.
But when u click, it gives you a 404 error - page not found - and up at the address bar on top it says
I have tried to use the above code and added a trace to trace the mypath variable when u click. and the traced output is correct
What gives?
Jonathan