cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

saravanan_narayanan
Active Contributor
0 Kudos

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

frank_stdle
Participant
0 Kudos

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;