Topic: Auto Viewer Pro Download Link

Hey Felix, hi everyone.

I have already posted this question but i think i should have posted in this forum.

I just have a real quick question about Auto-Viewer Pro if thats cool.

I bought Autoviewer Pro in order to tweak the system to my needs, and
everything is perfect except for the download link, it opens in a new window
every-time, could i set this to open in the same window?

If so could you tell me where and how.

Thanks in advance and i look forward to hearing from you,

Peace. Ray.

Re: Auto Viewer Pro Download Link

Hey Ray,

There are two things to change, both in the StageManager.as file

The first is to change the openImage function to open in the image in the current window - change this:

private function openImage(){
getURL(mXMLManager.aImageFileNames[mCurrentImageIndex], "image_result");
}

to this (the only change was "image_result" to "_self"):

private function openImage(){
getURL(mXMLManager.aImageFileNames[mCurrentImageIndex], "_self");
}

And the second is to change the menu text that shows up when you right click.  It's around line 60 - just search for "Open image" and you'll see the existing menu text "Open Image in New Window..." and you can change it to whatever you want. 

Autoviewer will reload and start at the beginning when the user hits back.

Hope this helps,

Brian

Re: Auto Viewer Pro Download Link

Thanks Felix, your nothing short of AWESOME.

Love ya.

Re: Auto Viewer Pro Download Link

Hey I wish I could take the credit, but the answer was provided by Brian. Thanks brian!

Felix Turner
SimpleViewer Support Team.

Re: Auto Viewer Pro Download Link

Yeah but brianchapman knows i love him!

Thanks to both of you, cheers brain.

Re: Auto Viewer Pro Download Link

Hello.

Just got Autoviewer Pro. It's beautiful.

Does anyone know of a way to let users [a] see a bigger version or [b] go to a new web page by clicking the photo?

Thanks for any and all suggestions.

Re: Auto Viewer Pro Download Link

Hi Felix, hi everyone.

I have read this post and followed Brians instructions the images now open in the same window but the DOWNLOAD LINK still opens in a new window everytime it is clicked. I would be eternally grateful if someone could let me know what I am doing wrong  and how I can get the Download Link to open in the same window.

Thanks in advance.

Tom.

Re: Auto Viewer Pro Download Link

try this

private function openImage(){
getURL(mXMLManager.aImageFileNames[mCurrentImageIndex], "_top");
}

Re: Auto Viewer Pro Download Link

in StageManager.as

current code:

public function openURL(){
        getURL(Options.linkURL,"_blank");            
    }

change to:

public function openURL(){
        getURL(Options.linkURL,"_self");            
    }