Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2009, 05:48 PM
cck cck is offline
Junior Member
 
Join Date: Dec 2008
Posts: 1
Default Import file after using swfkit

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. ^^
Reply With Quote
  #2 (permalink)  
Old 01-06-2009, 09:22 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

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
will be the path of your resource file.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:34 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.