Topic: Rotating Thumbnails & Image With SimpleViewer pro

Hi there,

How would I go about setting all of the thumbnails in the gallery on an angle? I want the thumbnails in my gallery to tilt to the left a little, and I want the main image to tilt to the right a little. Is this even possible? I'm a bit of a novice, and can't seem to get it working via fiddling with the source code myself...

Re: Rotating Thumbnails & Image With SimpleViewer pro

i'm assuming that it's not possible then?

Re: Rotating Thumbnails & Image With SimpleViewer pro

Try adding this at the end of the Image.init() function

mClip_mc._rotation = 5;

and this at the end of the Thumbl.init() function

mClip_mc._rotation = -5;
Felix Turner
SimpleViewer Support Team.

Re: Rotating Thumbnails & Image With SimpleViewer pro

thankyou very much for your reply. much appreciated. great product you have here.

Instead of starting a new thread, im going to ask a question of the same vein here, and hope you can give me your input into the problem.

I'm trying to rotate a lot of things on the stage, including the title text. When I try to add 'mTitle_mc.txtText._rotation = -5; to Stagemanager in this block of code:

if (Options.showTitle && mThumbArea.pageSize > 0){            
            mTitle_mc = mClip_mc.attachMovie("Title","mcTitle",mClip_mc.getNextHighestDepth());        
            if (!Options.fixedLayout) mTitle_mc.txtText.autoSize = true;
            mTitle_mc.txtText.wordWrap = true;        
            mTitle_mc.txtText.htmlText =  mXMLManager.title;
            mTitle_mc.txtText._rotation = -5;
            var col3 = new Color(mTitle_mc);
            col3.setRGB(mXMLManager.titleTextColor);
            
        }

The text dissapears altogether. Is the process for rotating the text different?

Re: Rotating Thumbnails & Image With SimpleViewer pro

just adding to the question. research leads me to believe that you must first embed dynamic text font before it will successfully rotate. However, I did this and the text still dissapeared...which makes me think it *does* have something to do with where I set the rotate on the text. Thoughts?


*edit*

Okay, sorry...narrowed it down to the fact that bold fonts wont embed properly. I was using bradly itc, bold. and it wasnt showing up. as soon as I unclicked bold, it showed up. alas! i want rotated, bold text  lol When testing embed with a independant flash file with no accosiation to simpleviewer - it worked with bold checked. So my question has now morphed into: what in simpleviewer would be blocking bold, embedded text from showing up? Something to do with htmlText?

Re: Rotating Thumbnails & Image With SimpleViewer pro

Okay, just a follow up in case anyone has this problem in the future. I solved it (hurray). It's nothing to do with simpleviewer strictly speaking.

Add the code thats got a comment above it into stagemanager:



 if (Options.showTitle && mThumbArea.pageSize > 0){            
            mTitle_mc = mClip_mc.attachMovie("Title","mcTitle",mClip_mc.getNextHighestDepth());        
            if (!Options.fixedLayout) mTitle_mc.txtText.autoSize = true;
            mTitle_mc.txtText.wordWrap = true;        
            mTitle_mc.txtText.htmlText =  mXMLManager.title;
            
            //This rotates the text
            mTitle_mc.txtText._rotation = -2.8;
            
            //This allows our text to be bold & embedded
            var fooTextFormat = new TextFormat();
            fooTextFormat.bold = true;
            mTitle_mc.txtText.setTextFormat(fooTextFormat);
            
            var col3 = new Color(mTitle_mc);
            col3.setRGB(mXMLManager.titleTextColor);
            
        }

Re: Rotating Thumbnails & Image With SimpleViewer pro

Thanks for the update. Glad you figured it out.

Felix Turner
SimpleViewer Support Team.