Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Общие вопросы о Flash (не затрагивающие ActionScript) (http://www.flasher.ru/forum/forumdisplay.php?f=60)
-   -   XML на JSFL (http://www.flasher.ru/forum/showthread.php?t=152198)

tofflife 13.03.2011 16:54

XML на JSFL
 
ответьте кто-нибудь пожалуйста, возможно ли на JSFL открыть файл XMl и распарсить его?
Если можно, примерчик небольшой... спасибо.

i.o. 13.03.2011 18:08

Не тестил, но по описанию подходит:

document.xmlPanel()
Availability
Flash MX 2004.
Usage
document.xmlPanel(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the path to the XML file defining the controls in the panel.
The full path is required.
Returns
An object that has properties defined for all controls defined in the XML file. All properties are returned as strings. The
"dismiss" that will have the string value "accept" or
returned object will have one predefined property named
"cancel".
Description
Method; posts an XMLUI dialog box. See fl.xmlui.
Example
The following example loads the Test.xml file and displays each property contained within it:
Код:

var obj = fl.getDocumentDOM().xmlPanel(fl.configURI + "Commands/Test.xml"); 
 for (var prop in obj) { 
  fl.trace("property " + prop + " = " + obj[prop]); 
 }



Часовой пояс GMT +4, время: 10:15.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.