This content has been marked as final. Show 6 replies
make sure the *.gif is in the same folder as your source. Assuming you are using only the images name.
No my friend,
I have given absolute path of .gif image.Anyway ,we browse the .gif file naa ..........
<mx:Panel titleIcon="@Embed('/filename.gif')" ... >
Where filename.gif is the name of the image file. I used / to indicate an absolute path from the main source directory of the project (the directory where the main Application file is located). You can also use a path that is relative to the file.
My application directory is C:MyApp
Image is placed in :E:Images is there anyway I can include this.......
or if I hav a folder with name 'images' under MyApp at a certain level,how can I include that???in mxml page which is absolutely in 'MyApp' folder..
syntax seems tricky,I am played with error ,I know I am doing a very simple mistake .............
Ideally your images should be copied into your Flex project folder to keep everything together and I'm not certain it is possible to do otherwise. But you can try this if you are using Flex Builder 2:
open the project properties and select Build Path. You'll see a tab labeled "Source Path" and a "Add Folder" button. Use that button to add E:/Images to the path. I do not know if this will affect the embed process.
If you are not using Flex Builder 2 and are using the SDK 2 mxmlc compiler, there is an equivalent <source-path> in the configuration file.
"Source Path" is not doing good ................but the other alternative is doing good
Thanks for the responses.........