Apache flex ConnectSessionContainer';声明必须包含在<;声明>;标签
我试着效仿这个例子:但在网上搜索了几个小时后,仍然会出现错误 我正在使用Adobe Flash Builder 4.6和Flex 4.5.1 SDK,我还安装了生命周期协作服务,并将lccs.swf添加到我的项目构建路径中Apache flex ConnectSessionContainer';声明必须包含在<;声明>;标签,apache-flex,lccs,Apache Flex,Lccs,我试着效仿这个例子:但在网上搜索了几个小时后,仍然会出现错误 我正在使用Adobe Flash Builder 4.6和Flex 4.5.1 SDK,我还安装了生命周期协作服务,并将lccs.swf添加到我的项目构建路径中 <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:rtc="http://ns.adobe.com/rtc" currentState="logon" fontSize="28">
<fx:Script>
[Bindable] private var roomURL:String = "URL HERE!";
protected function connect():void {
auth.userName = userName.text;
currentState = "default";
session.login();
}
</fx:Script>
<s:states>
<s:State name="default"/>
<s:State name="logon"/>
</s:states>
<fx:Declarations>
<rtc:AdobeHSAuthenticator id="auth"/>
</fx:Declarations>
<s:TextInput id="userName" includeIn="logon" top="200" horizontalCenter="0"/>
<s:Button label="Connect" click="connect()" includeIn="logon" top="250" horizontalCenter="0" height="50" width="150"/>
<rtc:ConnectSessionContainer id="session" roomURL="{roomURL}" authenticator="{auth}" autoLogin="false" width="100%" height="100%" includeIn="default">
<rtc:WebCamera top="10" left="10" bottom="10" right="10"/>
</rtc:ConnectSessionContainer>
</s:Application>
[Bindable]private var roomURL:String=“URL HERE!”;
受保护的函数connect():void{
auth.userName=userName.text;
currentState=“默认”;
session.login();
}
编译程序如下所示:
“ConnectSessionContainer”声明必须包含在
标记,因为它不可分配给默认值
属性的元素类型“mx.core.IVisualElement”
我对Flex完全是新手,所以如果有一个简单的解决方案,请不要杀了我。提前谢谢 根标签呢
更新:
请尝试检查,可能您还有空白。根标记如何
更新:
请尝试检查,可能您还有空白。哦,对不起,我在Flash Builder中有该标记。当我创建此线程时,似乎有些忘记了它。@opous然后请您编辑您的代码片段,就像在Flash Builder中一样吗?哦,对不起,我在Flash Builder中有这个标记。当我创建这个线程时,我似乎忘记了它。@opous您能不能像在Flash Builder中那样编辑您的代码片段?