Skip to Content
author's profile photo Former Member
Former Member

Problem with image loading in flex (with web dynpro ABAP integration)

Hi,

I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.

By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.

Regards

Prashant Chauhan

Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 17, 2011 at 11:02 AM

    You should place the images in an /assets/images folder in your flex project folder. Then you can reference the images with a relative url in your flex application, like this

    	[Embed(source="../assets/images/exclamation.png")]
    	[Bindable]
    	public var imgCls:Class;
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2011 at 04:12 AM

    Hello Prashant,

    you need to mention the full path as source for the image in flex.

    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as

    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg

    Hope this solves your problem.

    BR, Saravanan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.