This content has been marked as final. Show 8 replies
try using "_blank" :
var URLvar = this.picHolder.attributes.main;
I am using blank...That's not the problem, the window is opened...But apparently it can't figure out where to load the picture from, the url is file://stuff/something/undefined instead off file://stuff/something/image.jpg, which it should be.
no ... that's not it... its scope ... hang on I'll try and figure it out
Best I can figure it out...everywhere that you're using things like
'this' refers to the xml object itself.
so you're assigning properties to the XML object itself. As you loop through it, you're reassigning them different values - that's one thing. If I'm right then I wouldn't advise doing it this way... you're better off assigning them to something defined in the main timeline I think
The other thing is that 'this' inside the onRelease should - I think - refer to
Holder.loader so that's a second issue.
I've got to go now for a couple of hours. If someone else hasn't answered I'll check on it again later.
At a quick glance it looks like you're stuffing the variable from the picholder xml node into each thumnail. Then you're trying to set the URLvar from the picHolder array rather than the thumHolder container.
perhaps try changing
var URLvar = this.picHolder.attributes.main
var URLvar = this.thumbHolder.main
I haven't gone through it in depth, but that's where I'd start.
I apologize if I'm a moron. :)
No...It didn't work.
Okay. I've solved it now. The problem was that I was in a wrong level of the xml coding, so this.main would link to something undefined. Instead I created a variable higher up, with the specified URL and used that as URL. It's kind of a workaround, and it could be the solution for now.