2

我昨天开始使用 Adob​​e Stratus,做了一个简单的聊天应用程序。今天,我要学习如何使用群组功能。

但是当我尝试实例化一个 GroupSpecifier 变量时,我得到了这个错误:

1046: Type was not found or was not a compile-time constant: GroupSpecifier.    P2P.mxml

早些时候,我在使用 NetStream(代替 GroupSpecifier)时遇到了类似的错误。

我有 Flex 4.1,它设置为 Flash Player 10.1。

我究竟做错了什么?我怎样才能解决这个问题?

4

2 回答 2

1

只是确保,你做对了import flash.net.GroupSpecifier;吗?

于 2011-01-23T22:04:59.473 回答
0

尝试从此处下载 Flash Player swc 文件,并将“-target-player=11”添加到 Flash Builder 中的编译器参数。

于 2011-09-23T10:00:39.290 回答