time, otherwise it wont be requested in the cache.
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
On 2/02/12 8:06 PM, chubby_blade@hotmail.com wrote:
> Ok, I feel I'm getting closer now.
> Now when I move my slider the whole image goes blank, so I presume
> that it can't find the graphics.
> I've tried adding back the "images" prefix to the image I'm referring
> to. I've tried using images straight out of the main folder where my
> GUI file is located
>
> Any ideas?
>
>
> Thanks for all your help, I feel I've nearly cracked this
>
> Rob
>
> On Feb 1, 10:25 pm, Steve<vald...@gmail.com> wrote:
>> Also, the else if's never fire as you are ending each with a semi
>> colon. Remove those as well.
>>
>> On Feb 1, 12:29 pm, Florent Pillet<fpil...@gmail.com> wrote:
>>
>>
>>
>>> Several basic mistakes in your code: you forgot the 'function' keyword,
>>> you don't enclose strings in "", you didn't terminate the last test with
>>> a closing } nor the function with another closing }.
>>> 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
>>> On Feb 1, 2012, at 5:40 PM, chubby_bl...@hotmail.com wrote:
>>>> onSliderChanged(a1, value) {if (value == 0) { CF.setJoin("s100",
>>>> images/icons/lighting/icon-light-01.png)}
>>>> else if (value == 1) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-02.png);
>>>> else if (value == 2) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-03.png);
>>>> else if (value == 3) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-04.png);
>>>> else if (value == 4) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-05.png);
>>>> else if (value == 5) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-06.png);
>>>> else if (value == 6) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-07.png);
>>>> else if (value == 7) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-08.png);
>>>> else if (value == 8) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-09.png);
>>>> else if (value == 9) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-10.png);
>>>> else if (value == 10) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-11.png);
>>>> else if (value == 11) { CF.setJoin("s100", images/icons/lighting/icon-
>>>> light-12.png);
>>> --
>>> Florent Pillet - Software Engineering Leadwww.commandfusion.com- Hide quoted text -
>> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.



0 comments:
Post a Comment