Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2004, 07:27 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default A problem about path

I got an XML file's path by the method getAdditionalFile.

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\{6DF5B23F-6785-43F2-B47D-BB3F9F87AEEF}\Config\demo.xml

Then I sent the path to the embedded swf file.
It is a pity,swf file couldn't load this XML file by this path. ???

Error URL "C:\OCUME~1\DMINI~1\OCALS~1\emp\6DF5B23F-6785-43F2-B47D-BB3F9F87AEEF}\onfig\emo.xml"

But,if the path can be converted to another format, C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/{6DF5B23F-6785-43F2-B47D-BB3F9F87AEEF}/Config/demo.xml,
it'll work well.

How can I convert the path's format in Ffish script? ???

Thanks.
__________________
- = Vista = -
Reply With Quote
  #2 (permalink)  
Old 04-20-2004, 03:31 AM
Junior Member
 
Join Date: Feb 2003
Posts: 12
Default Re:A problem about path

give this a try.
Code:
function ConvertPath(strPath)
    {
    return strPath.replace(/\\/g,"/");
    }
FilePath = getAppDir();
NewFilePath = ConvertPath(FilePath);
Reply With Quote
  #3 (permalink)  
Old 04-22-2004, 01:51 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default Re:A problem about path

Thanks
__________________
- = Vista = -
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 06:02 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.