[flexcoders] Flex Modules and external sources

2009-04-06 Thread thelordsince1984
Hi,

a little question for you..

i've a module that could load some images from an external directory.

The structure i use is:

projectname
---some sources classes
---imagedir
firstimage.jpg
secondimage.jpg
---modules
mymodule

So i create an mx:image tag into the module and i set the source property equal 
to the image file path (for example firstimage.jpg)..
this solution doesn't work..why?

any solutions?
thanks in advance

regards
Lorenzo





Re: [flexcoders] Flex Modules and external sources

2009-04-06 Thread Paresh M More
Lorenzo,
mx:Image source=@Embed('/imagedir/firstimage.jpg')  /

Use this it would work



-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Mon, Apr 6, 2009 at 7:07 PM, thelordsince1984 lore...@katamail.comwrote:

   Hi,

 a little question for you..

 i've a module that could load some images from an external directory.

 The structure i use is:

 projectname
 ---some sources classes
 ---imagedir
 firstimage.jpg
 secondimage.jpg
 ---modules
 mymodule

 So i create an mx:image tag into the module and i set the source property
 equal to the image file path (for example firstimage.jpg)..
 this solution doesn't work..why?

 any solutions?
 thanks in advance

 regards
 Lorenzo

  



RE: [flexcoders] Flex Modules and external sources

2009-04-06 Thread Alex Harui
Relative paths in modules are relative to the Application not the Module.  Make 
sure you're using the right path.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of thelordsince1984
Sent: Monday, April 06, 2009 6:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Modules and external sources


Hi,

a little question for you..

i've a module that could load some images from an external directory.

The structure i use is:

projectname
---some sources classes
---imagedir
firstimage.jpg
secondimage.jpg
---modules
mymodule

So i create an mx:image tag into the module and i set the source property equal 
to the image file path (for example firstimage.jpg)..
this solution doesn't work..why?

any solutions?
thanks in advance

regards
Lorenzo