3

When I drag and drop images in flash library, the path is sometimes relative (./somefolder/someimage.png), and sometimes it is absolute (D:\blah\somefolder\someimage.png).

How can I use only relative paths in flash library in order to be able to update all images from any computer and/or from any folder ?

Thank you in advance.

  • are images giving absolute paths outside the swf's root folder? – Amarghosh Dec 6 '09 at 12:58
  • my images are in a folder inside fla's root folder, I always put them inside fla's folder, but sometimes they have absolute path. – a.s.t.r.o Dec 6 '09 at 22:55
0

I've got CS5, project saved as uncompressed *.xfl, my project directory structure:

  • "/" root project dir, (i.e. c:\MyApp) contains main *xfl project file and other system folders /bin /META-INF and so on

  • /images - all art there, pngs, jpgs and so on

I go to IDE, File->Import->Import to stage, then I select couple images (using shift) from /images folder

They appear in Library. Also they automatically copied to system /LIBRARY folder

In main project XML file (DOMDocument.xml), there are lines such as (cleaned):

<DOMBitmapItem name="Buttons/menu-button!.png" ....... sourceExternalFilepath=".\LIBRARY\Buttons\menu-button!.png" ......./>

As you can see paths are relative. I do not use *.fla projects, but you can try this scheme! My project path does not contain spaces.

Hope this help

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.