Topic: Move Caption to left bottom of the main image

Anyone has an idea on how I can move the Caption to be on the left bottom corner of the main image? Currently I do not want any columns or rows for the thumbnails. I just want user to click next and prev to navigate through the gallery from the main image. o the Caption will be 01/60, 02/60,03/60 and so on so forth..

Newbie here.....thx![/b]

Re: Move Caption to left bottom of the main image

anyone please help.... sad

Re: Move Caption to left bottom of the main image

Hi, You can change the location of the caption in the StageManager.as, around line 260, using SimpleViewer.Pro

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: Move Caption to left bottom of the main image

This is what I see from line 243

            //set posns
            mImageArea.setSize(imgW,imgH);                   
            mImageArea.setPosn(imgX,imgY);                                   
            mThumbArea.setPosn(thumbX,thumbY);
           
            mCaption_mc.txtText._width = mThumbArea.width;
            mCaption_mc._x = thumbX;
            mCaption_mc._y = thumbY + mThumbArea.height +mThumbArea.navHeight + Thumb.padding;                   
           
            mTitle_mc.txtText._width = mThumbArea.width;
            mTitle_mc._x = thumbX;           
            mTitle_mc._y = thumbY - (Thumb.padding + mTitle_mc.txtText.textHeight);
           
            //download link
            mDownloadLink_mc._x = Math.floor (w  - mDownloadLink_mc._width - 10);
            mDownloadLink_mc._y = Math.floor (h  - mDownloadLink_mc._height - 10);
                                               
            resizeBkgnd();                   
        }               
    }   
   
    public function showCaption(index:Number){
        var cap = mXMLManager.imageCaptions[index];
        if (cap == undefined) cap = "";
        mCaption_mc.txtText.htmlText = cap;       
    }
   
    public function openURL(){
        getURL(Options.linkURL,"_blank");           
    }
       

Line 272


Line 260 is resizeBkgnd();

What do I do with that? I don't see anywhere I can change the position.

Re: Move Caption to left bottom of the main image

This should get you started -


mCaption_mc._x//sets x position
mCaption_mc._y//sets y position

mCaption_mc.txtText._width = mImageArea.width - 100;
mCaption_mc._x = thumbX  + mThumbArea.width  + Thumb.padding + 100;
mCaption_mc._y = imgY + imgH;

try that and you will see how it works. This will make caption 100px less than the image width and will locate the caption text box 100 px to the right of the left side of main image. Add your own values to suit.

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: Move Caption to left bottom of the main image

IT WORKED!!!!

the only problem I have now is that I have to set thumbnailColumns="1" thumbnailRows="1" in order to see the caption. I dont want any thumbnails at all. I just one big image and captions.

Any suggestions?

Re: Move Caption to left bottom of the main image

<?xml version="1.0" encoding="UTF-8"?>
<simpleviewerGallery maxImageWidth="745" maxImageHeight="493" textColor="0xFFFFFF" frameColor="0xFFFFFF" frameWidth="0"

stagePadding="10" thumbnailColumns="0" thumbnailRows="0" navPosition="bottom" title="" enableRightClickOpen="false"

backgroundImagePath="" imagePath="" thumbPath="">
<image>
    <filename>001.jpg</filename>
    <caption>01/04</caption>   
</image>
<image>
    <filename>002.jpg</filename>
    <caption>02/04</caption>   
</image>
<image>
    <filename>003.jpg</filename>
    <caption>03/04</caption>   
</image>
<image>
    <filename>004.jpg</filename>
    <caption>04/04</caption>   
</image>

</simpleviewerGallery>

--------------------------------------
If I have thumbnailColumns="0" thumbnailRows="0" then I dont see both Thumbs and Captions. I want to see only Caption.

Re: Move Caption to left bottom of the main image

Thanks. I'm giving up....

It doesn't work.

The captions will not show if have thumbnailColumns="0" thumbnailRows="0". Regardless if you delete thumbPath=""

I tried to set thumbnailColumns="1" thumbnailRows="1" and delete thumbPath="" - there will be X for the thumbs

Thanks for the help.....I wish this will be simpler....

Re: Move Caption to left bottom of the main image

I'm still trying to figure this out so any help on this from the moderators or experienced Flash coder will highly be appreciated.

Re: Move Caption to left bottom of the main image

With SV-PRO, you can show the captions and not thumbnails by doing this:

- Set thumbnailColumns="0" in gallery.xml to hide the thumbnails

- To show the caption, in StageManager.as, line 89, change this:

if &#40;Options.showCaptions && mThumbArea.pageSize > 0&#41;&#123;    

to this:

if &#40;Options.showCaptions &#41;&#123;    

- Republish your SWF (see http://www.airtightinteractive.com/simp … html#repub )

Felix Turner
SimpleViewer Support Team.

Re: Move Caption to left bottom of the main image

WORKS!!!!!!!!!!!!!!!!

Thanks a million.

Re: Move Caption to left bottom of the main image

Do you simply change the StageManager file and upload it or is there more to it than that

Re: Move Caption to left bottom of the main image

All you have to do is change the StageManage File and export to file from simpleviewer fla file. Adjust the location as you see fit.

Re: Move Caption to left bottom of the main image

All you have to do is change the StageManage File and export to file from simpleviewer fla file. Adjust the location as you see fit.

---------------------------------


What do you mean in the comment above do i edit the fla file or just the StageManager file?