PDA

View Full Version : thumbnail gallery component help! [MX]



liquidac
August 18th, 2003, 10:41 PM
Hi everyone, first thanks to take the time to read this message! :)

Now the problem, i am using this gallery component
http://www.mr10.net/components/gallery/


what im trying to do is, when you click on the large image or on a button it open this image in a pop-up.

What they say on the site


c. Optional: you can assign a clickHandler to the large pictures for enabling pop-ups or download options:

01 function clickMe(id) {
02 //get imagenode for this thumbnail
03 //'id' counts from 1, XML counts from 0: hence the '-1'
04 var imageNode = myGallery.getXMLNode().firstChild.childNodes[id - 1];
05 trace(imageNode);
06 }
07 myGallery.setClickHandler('clickMe', _root);

this is only example code and will do nothing more than display the xml node assigned the clicked picture in the output box.


http://www.mr10.net/components/gallery/manual/

Please help me!
thanks!

liquidac
August 19th, 2003, 02:24 AM
my problem is resolved

jpixel
June 15th, 2006, 11:12 AM
Please tell me how you did this? I need the pop-up code also?

Thank you

liquidac
June 15th, 2006, 04:07 PM
Please tell me how you did this? I need the pop-up code also?

Thank you


function setGlobalStyleFormat() {
// globalStyleFormat.face = 0xEFEFEF;
globalStyleFormat.background = 0xCCCCCC;
globalStyleFormat.arrow = 0xAAAAAA;
globalStyleFormat.darkshadow = 0xAAAAAA;
globalStyleFormat.shadow = 0xEFEFEF;
globalStyleFormat.highlight = 0xEFEFEF;
globalStyleFormat.highlight3D = 0xAAAAAA;
globalStyleFormat.scrollTrack = 0xFFFFFF;
globalStyleFormat.selection = 0xAFAFAF;
globalStyleFormat.textSelected = 0x000000;
globalStyleFormat.textColor = 0x666666;
globalStyleFormat.textFont = "_sans";
globalStyleFormat.embedFonts = true;
globalStyleFormat.textSize = 13;
globalStyleFormat.applyChanges();
}
setGlobalStyleFormat();
g1.setXMLFile('11mars05.xml');
g1.setTnStageSide('left');
g1.setColumns(4);
g1.setTnSize(84, 84);
g1.setSize(755, 265);
function clickLiens(id) {
// get imagenode for this thumbnail
// 'id' counts from 1, XML counts from 0: hence the '-1'
var imageNode = g1.getXMLNode().firstChild.childNodes[id-1].attributes.jpegURL;
trace(imageNode);
getURL("http://www.wellpub.com/gallery/11mars05"+imageNode, "_blank");
}
g1.setClickHandler('clickLiens', _root.content);
stop();

jpixel
June 15th, 2006, 05:03 PM
thank you kind sir, this works but then it says the server cannot allow access to this directory...Any ways around this???

jpixel
June 15th, 2006, 06:02 PM
imagenode doesn't get the filename, there must be something wrong in your

var imageNode = g1.getXMLNode().firstChild.childNodes[id-1].attributes.jpegURL;

liquidac
June 15th, 2006, 06:05 PM
imagenode doesn't get the filename, there must be something wrong in your

var imageNode = g1.getXMLNode().firstChild.childNodes[id-1].attributes.jpegURL;

sorry I can't help you more, I used this script long time ago, I suggest you slide show pro for something easier to use...

maybe Flash 8 doesn't work with this script...