1

(28 replies, posted in SimpleViewer-Pro v1)

I added the capability for SimpleViewer to hide the link area when a link isn't present and figured I'd share. This comes in handy when you turn on the pointer cursor option or put a rollover image in the ImageClickArea.

In ImageArea.as
After this (starts on line 206):
        //hide image nav buttons
        mBackBtn.visible = mCurrentImageIndex > 0;
        mNextBtn.visible = Options.enableLooping || mCurrentImageIndex < mXMLManager.imageCount-1;       
        mPlayBtn.visible = Options.enableLooping || mCurrentImageIndex < mXMLManager.imageCount-1;   

Add this:
        //hide Image Click Area if there is no link --js
        mImageClickArea.visible = mXMLManager.imageFullLinks[mCurrentImageIndex] != null;