How to use relative path for assets in Flash library?

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

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

Thanks in advance.

+3
source share
1 answer

I have CS5, the project is saved as uncompressed * .xfl, the structure of my project:

  • "/" (.. c:\MyApp) * xfl /bin /META-INF ..

  • /images - , pngs, jpg ..

IDE, File- > Import- > Import to stage, ( shift) /images

. system/LIBRARY

XML (DOMDocument.xml) , ():

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

, . *.fla, ! .

0

Source: https://habr.com/ru/post/1724860/


All Articles