Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

./myfolder/

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

/home/myuser/Desktop/myapp/myfolder/

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

file:///myapp.swf

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

flashplayer.exe myapp.swf

Is there an equivalent in Linux?

In general: any ideas for workarounds?

share|improve this question

closed as too localized by bodhi.zazen, Bruno Pereira Apr 2 '12 at 12:32

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Hello, this question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards –  Bruno Pereira Apr 2 '12 at 12:32

Browse other questions tagged or ask your own question.