Than use CF.setJoin to set the path for your image. Your function would
probaly look something like this :
onSliderChanged(join, value) {
if (value = 1) { CF.setJoin("s1", *path for your first image here*); // set
first image here } else if (value = 2) { CF.setJoin("s1", *path for your
second image here*); // set second image here } and etc.
CF.watch(CF.JoinChangeEvent, "a1", onSliderChanged)
etc
Thanks
Rob
--
You received this message because you are subscribed to the Google Groups
"CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to
commandfusio...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/commandfusion?hl=en.
Jarrod
Jarrod
Also, since you are not using a full blown URL, I assume you are referring
to images in your Assets subfolder. I'll assume that you already set your
assets folder to "images" in the project. If you did so, the images/
prefix folder is redundant.
Finally, you could optimize this code by intelligently building the
URL string, like this:
function onSliderChanged(join, value) {
if (value < 10) {
CF.setJoin("s100", "icons/lighting/icon-light-0"+value+".png");
} else {
CF.setJoin("s100", "icons/lighting/icon-light-"+value+".png");
}
}
Florent
--
Florent Pillet - Software Engineering Lead
www.commandfusion.com
Make sure you validate the actual image url being requested using CF.log
and the web browser debugger connected to iViewer.
See the API docs for debugging details.
Jarrod
To load pictures from subfolder within the GUI file's folder : use
CF.setJoin("s100", "/image/Picture1.png"). The path of the file will of
course depends on the folder's tree structure itself.
-----Original Message-----
From: comman...@googlegroups.com [mailto:comman...@googlegroups.com]
Jarrod
--