Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Action script 2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=49)
-   -   Директива import не пашет =( (http://www.flasher.ru/forum/showthread.php?t=59666)

Eyfel 21.06.2004 13:59

Директива import не пашет =(
 
Всем доброго времени суток!
Есть вот такой код:

import com.xfactorstudio.xml.xpath.XPathDocument;

class com.eyfel.wof.engine.Action{

/**
* Констурктор класса
*/
function Action(){
}

public static function invokeAction():XPathDocument{
System.useCodepage=true;
var resultXML = new XPathDocument();
return resultXML;
}

}

При компиляции он мне выдает следующие ошибки:
**Error** D:\WorkFiles\OnLineGame\Flash\com\eyfel\wof\engine\Action.as: Line 17: The class 'com.xfactorstudio.xml.xpath.XPathDocument' could not be loaded.
public static function invokeAction():XPathDocument{

**Error** D:\WorkFiles\OnLineGame\Flash\com\eyfel\wof\engine\Action.as: Line 19: The class 'com.xfactorstudio.xml.xpath.XPathDocument' could not be loaded.
var resultXML = new XPathDocument();

**Error** D:\WorkFiles\OnLineGame\Flash\com\eyfel\wof\engine\Action.as: Line 23: The class 'com.xfactorstudio.xml.xpath.XPathDocument' could not be loaded.
}

**Error** D:\WorkFiles\OnLineGame\Flash\com\eyfel\wof\engine\Action.as: Line 19: There is no method with the name 'XPathDocument'.
var resultXML = new XPathDocument();

Total ActionScript Errors: 4 Reported Errors: 4


Хотелось бы узнать почему он не погеть найти этот самый
com.xfactorstudio.xml.xpath.XPathDocument =(

Eyfel 21.06.2004 14:33

сорри за ламерский вопрос.... забыл прописать classpath для AS =)


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

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