|
|||
|
After I pack a part of resources (eg. jpg, mp3, flv) and create exe by swfkit, I can import these resources and use it(eg. import flv and play it). But if I import another resources which are not pack into the exe and just put it into the same folder, it cannot be imported. How can I import it?
Thank you. ^^ |
|
|||
|
Do you mean you would like to play a file in the same folder of the exe file? If so, you can use the "getAppDir" method to get the path name of the file. The "getAppDir" method returns the path of the exe file, so
Code:
getAppDir() + myfilename |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|