Hi, i found the problem. There was a empty image property in my xml file, and the result was, that no other image was loaded. I inserted a dummy image for the nodes without an given image. Now it works fine. The only thing that i haven't solved is that the images are not placed in the middle under the text for the node. There are all left aligned.But thats not really a probem.
Thanks for your help. And sorry for the late answer... > Hi. Here's a couple of experiments to try; this may help isolate the > problem. > > 1. in your image tag, put the actual URL, like this: > > <mx:Image id="image" > source="http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg > <http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg>"/> > > 2. add the same image tag to your application *outside* the > SpringGraph component. > > Let me know what happens... > > Mark Shepherd > Adobe Flex Builder Engineering > > --- In [email protected] > <mailto:flexcomponents%40yahoogroups.com>, "fsawitzki" > <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > is there someone using SpringGraph from > > http://mark-shepherd.com/blog/springgraph-flex-component/ > <http://mark-shepherd.com/blog/springgraph-flex-component/> ? > > > > I try to add a Image inside the itemRenderer > > > > <adobe:itemRenderer> > > <mx:Component> > > <mx:VBox> > > <mx:Label fontSize="14" text="[EMAIL PROTECTED]" color="#ffffff"/> > > <mx:Image id="image" source="[EMAIL PROTECTED]"/> > > --> > > </mx:VBox> > > </mx:Component> > > </adobe:itemRenderer> > > > > but if i do this, i get an error: > > > > Error: Unable to load ''. > > at mx.controls::SWFLoader/::loadContent() > > at mx.controls::SWFLoader/load() > > at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties() > > at mx.core::UIComponent/validateProperties() > > at mx.managers::LayoutManager/::validateProperties() > > at mx.managers::LayoutManager/::doPhasedInstantiation() > > at Function/http://adobe.com/AS3/2006/builtin::apply > <http://adobe.com/AS3/2006/builtin::apply>() > > at mx.core::UIComponent/::callLaterDispatcher2() > > > > If i comment out the Image Renderer the Label will be shown correctly. > > And if i use the [EMAIL PROTECTED] value as textsource for the > > label, it shows me a correct url. > > > > The used XML File: > > <graph> > > <Node id="p1" prop="Bonaparte" > > > imageUrl="http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg > > <http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg>"/> > > >Node id="e1" prop="Robespierre" > > > imageUrl="http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg > > <http://ec1.images-amazon.com/images/P/B000IJVETY.01._SCTHUMBZZZ_.jpg>"/> > > <Edge fromID="p1" toID="e1"/> > > </graph> > > > >
