Manish,

> What happens if you set 'source' directly instead of using 
> binding?  Try it.

Unfortunately, because of the way the data is fetched from the server,
the data required (i.e. the thumbnail URL) may not be back before the
component is initialised, hence the binding.  But your suggestion did
point me in the direction of a fix...

It seems that there was a problem initially setting the source as
effectively a non-existant image and then overwriting that when the
"proper" URL was actually retrieved.  What I ended up doing was not
initially specifying a source for the <mx:Image> tag, but then when the
appropriate asset data had been retrieved from the server, using an
explicit img.load() call to load the thumbnail.

So now the image source gets (re)set when and only when the effective
"source" is both a non-empty string and is different to the current
source.  Seems to be doing the job!

Cheers,

Tim.

--
-------------------------------------------------------
Badpen Tech - CF and web-tech: http://tech.badpen.com/
-------------------------------------------------------
    RAWNET LTD - independent digital media agency
    "We are big, we are funny and we are clever!"
     New site launched at http://www.rawnet.com/
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to