Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2004, 09:02 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default A problem about FileStream.write

e.g.
... ...
file_stream = new FileStream("c:\\demo.xml","w");
file_stream.writeUnicodeString(xml_str);

Through this method,I got a demo.xml.
The codes of demo.xml are correct.
But this demo.xml can't be loaded successfully by XML Object of Flash.
Saved as the demo.xml without altering its codes and format.
It worked well.

Why? ???
__________________
- = Vista = -
Reply With Quote
  #2 (permalink)  
Old 04-30-2004, 09:16 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:A problem about FileStream.write

Please try the "write" method. The writeUnicodeString method treats each character in the string as 16-bits unicode character.
Reply With Quote
  #3 (permalink)  
Old 05-02-2004, 02:40 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default Re:A problem about FileStream.write

Quote:
Originally Posted by Vista
e.g.
... ...
file_stream = new FileStream("c:\\demo.xml","w");
file_stream.writeUnicodeString(xml_str);

... ...
It's can't work. ???
__________________
- = Vista = -
Reply With Quote
  #4 (permalink)  
Old 05-02-2004, 07:49 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:A problem about FileStream.write

Please try
Code:
file_stream = new FileStream("c:\\demo.xml","w");
file_stream.write(xml_str);
Reply With Quote
  #5 (permalink)  
Old 06-04-2004, 03:12 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default Re:A problem about FileStream.write

Quote:
Originally Posted by Vista
e.g.
... ...
file_stream = new FileStream("c:\\demo.xml","w");
file_stream.writeUnicodeString(xml_str);

Through this method,I got a demo.xml.
The codes of demo.xml are correct.
But this demo.xml can't be loaded successfully by XML Object of Flash.
Saved as the demo.xml without altering its codes and format.
It worked well.

Why? ???
If the demo.xml includes some Chinese characters,it'll not be loaded successfully by XML Object of SWF file.
How can I put the axe in the helve?
Thanks.

__________________
- = Vista = -
Reply With Quote
  #6 (permalink)  
Old 06-06-2004, 03:42 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:A problem about FileStream.write

Could you send us a sample to test it?
Thanks.
Reply With Quote
  #7 (permalink)  
Old 06-17-2004, 09:52 AM
Junior Member
 
Join Date: Mar 2003
Posts: 13
Default Re:A problem about FileStream.write

Hi,
I've solved the problem.
It's all because of a third-party class named Wddx I used it to manipulate XML in Flash.

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:12 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.