Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2005, 11:33 AM
mr5 mr5 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 2
Default Problem with getURL

Hello,

After covert to exe, I can not open my file using getURL in FLash:

getURL("file.txt","_sefl") because swfkit open

"http://agreement.pdf"

Anyone can resolve this problem?

Regards
Reply With Quote
  #2 (permalink)  
Old 12-17-2005, 12:52 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Problem with getURL

The flash player cannot find your files, please use setBasePath method to resolve this problem.

If you files are in the same folder of the exe file, insert the following code into the "initialize" script
Code:
Application.setBasePath(getAppDir());
If your files are added into the attachment list,
Code:
var path = getAdditionalFile();
Application.setBasePath(path);
Reply With Quote
  #3 (permalink)  
Old 12-31-2005, 10:27 AM
mr5 mr5 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 2
Default Re:Problem with getURL

Hello,

I have tried your code but it does not solve the problem. This time, no window opened.

Regards,
Reply With Quote
  #4 (permalink)  
Old 07-20-2009, 09:41 AM
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default Resolved?

Hi

I am having a same problem. Swfkit add the "http://" in front of my path name so rendering it broken. But I am using Swfkit 3 Pro. is there a solution to the problem already?

thanks!
Reply With Quote
  #5 (permalink)  
Old 07-20-2009, 09:51 AM
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default

Opps tried the code Application.setBasePath(getAppDir());

and it works! tx!
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 02:08 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.