Have you tried using a resources? I believe you can parameterize a resource. Probably the most natural thing to do is make a resource with several frames that represent the states and then display the appropriate frame.

On 2007-02-08, at 10:31 EST, Jeff wrote:



In a SOLO app, I have a view that I'm trying to do a rollover effect where the graphics are fetched via http, not from a resource. My client wants to be able to change the graphics in the future, so I load the urls via an xml file. Anyway, the problem is that the view flickers when updating the graphic. I've tracked this down to an HTTP request to fetch the image. Is
there any way to cache the rollover images, while still loading them
dynamically?



Code:



<image name="pic" datapath="[EMAIL PROTECTED]'services']"
    align="center" valign="middle"
clickable="true" visible="true"
clip="false"

    src="$path{'@image'}">

    <attribute name="normal"
value="$path{'@image'}" />

    <attribute name="active"
value="$path{'@activeimage'}" />

    <handler name="onmouseover" >

        this.setAttribute('src',
this.active);

    </handler>

    <handler name="onmouseout" >

        this.setAttribute('src',
this.normal);

    </handler>

</image>





--



Reply via email to