3.14
05-07-2004, 12:03 PM
i'm trying to build a component library but i have a bunch of problems with paths...
in fact, some of my components include graphic stuff and when i want to set a resource in my class file i do:
resource="./mycomponent_pictures/pic.swf"
(the current class file is located in a folder named 'mylibrary')
i want to be able to use my library by a simple call to:
<include href="path/to/my/library/mylibrary.lzx">
(with path/to.... as ../../../mylibrary for example)
but when i put this in a lzx file located in foo/bar/blah, i get an error such as:
{urlofthelaszloserver}/foo/bar/blah/./mycomponents_pictures/pic.swf: 404 not found, which is logic...
hence my question:
how can i set up paths to avoid these problems i.e. to be able to include graphics into my library without 'including' troubles ?
in fact, some of my components include graphic stuff and when i want to set a resource in my class file i do:
resource="./mycomponent_pictures/pic.swf"
(the current class file is located in a folder named 'mylibrary')
i want to be able to use my library by a simple call to:
<include href="path/to/my/library/mylibrary.lzx">
(with path/to.... as ../../../mylibrary for example)
but when i put this in a lzx file located in foo/bar/blah, i get an error such as:
{urlofthelaszloserver}/foo/bar/blah/./mycomponents_pictures/pic.swf: 404 not found, which is logic...
hence my question:
how can i set up paths to avoid these problems i.e. to be able to include graphics into my library without 'including' troubles ?