I'm a Flash developer. I developed a Flash app which I want to distribute on all platforms. I recently installed Ubuntu and I'm using the Adobe Flash Player 10 to generate a stand-alone linux projector from my .swf file.
However, the generated projector seems to have problems dealing with relative paths. The app needs to load a lot of content dynamically from the disk (images, sound files). Normally, I use relative path names such as
to tell my app where to find those files. This ceases to work with the stand-alone player. The app can't find the files specified this way. It will find the files if I specify them in an absolute fashion such as
But this is out of the question for something that needs to be distributed.
Am I doing something wrong? Is there a syntax for relative paths I'm not aware of? The projector seems to think it's being executed in the path
that doesn't sound right. Is there a way to tell an executable in which base-directory it should be executed?
Is there a way around it? For example, launching the universal Flash player and loading the swf manually seems to work. Can I create a shortcut for this? On Windows I could create a shortcut to something like
Is there an equivalent in Linux?
In general: any ideas for workarounds?