Hi Andriy, I'm not quite sure why this isn't working for you, and I don't believe there is anywhere in TBE that we create an image in the way you have. You can try calling Image.load() (which is what I do) on your image (say in the creationComplete method or your component); at least that way you could add even listeners (Event.COMPLETE and IOErrorEvent.IO_ERROR) on the image to check whether it loads correctly.
On Tue, Aug 30, 2011 at 2:46 PM, Andriy Sokolov <[email protected]>wrote: > Hello, dear TBC-team! > > I'm trying to access an image, stored in the workspace in a project > "myProject": the path is "myProject/tbl-www/pic.jpg". > > Navigating to it in the browser by using a link " > http://localhost:8083/tbl/data/myProject/pic.jpg" works fine. Also, using > this link by a custom swf (run in stand-alone swf-player as regular swf > Application) works.The application.mxml includes a test.mxml: > > <mx:Canvas > xmlns:mx="http://www.adobe.com/2006/mxml" > xmlns="http://www.degrafa.com/2007" > > > <mx:Image source="http://localhost:8083/tbl/data/myProject/pic.jpg"/> > </mx:Canvas> > > > When I try to deploy a component to the server, by including the test.mxml > into my TBL component, the picture does not load, without any error > messages! > > If I use any other contents (e.g. Box with a background), they are shown, > so it is nothing wrong with the component itself. > > I tried to put a crossdomain.xml into the "myProject/tbl-www/": > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE cross-domain-policy SYSTEM "tbl-www/cross-domain-policy.dtd" > > <cross-domain-policy> > <allow-access-from domain="localhost" /> > </cross-domain-policy> > > but it changes nothing. > > Do you have any ideas? > > Thanks and best regards > Andriy > > -- > You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include TopBraid > Composer, > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en > -- Willie Milnor Sr. Semantic Solutions Developer TopQuadrant, Inc. 330 John Carlyle Street Suite 180 Alexandria, VA 22314 703.299.9330 www.topquadrant.com <http://www.topquadrant.com> Cell: 410.971.7788 -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
