`
skzr.org
  • 浏览: 355020 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

[flex]ubuntu下flex的开发环境配置

阅读更多

 

目录

  1. flex开发环境
    1. ubuntu
    2. windows
  2. flex blazeDS
    1. 配置
    2. 问题
      1. flex可能无法访问服务BlazeDS
      2. ubuntu 64调试flex

flex开发环境

 

=== swf无显示 ===

 1. 打开swf文件时无显示:因为权限问题。

  * flashplayer中右键选择全局设置,在《高级》选项卡中添加信任的位置为WebRoot就可以了。

ubuntu

  1. eclipse plugins: http://code.google.com/p/fb4linux/

    • 注意FB4Linux4.5比Burrito4Linux版本高

 

windows

 

flex blazeDS

 

配置

  1. 根文件夹:.../WebRoot

  2. 根URL:http://localhost:8080/demo或者http://localhost:8080/demo/

  3. 上下文根目录:/demo或者demo
  4. 输出文件夹: .../WebRoot/flex

 

问题

 

flex可能无法访问服务BlazeDS

  1. 使用抓包或其他工具,如chrome的开发者工具,查看网络调用,是不是没调用服务器
    • 如果没调用服务器,说明flex项目配置有问题,按上面的配置使用另外一种形式的《根URL》和《上下文根目录》 配置BlazeDS,然后再验证
  2. 最新消息,上一点不正确(删除线部分),正确做法是:
    1. 在FB插件或执行mxmlc时,RemoteObject的默认channel是通过读取remoting-config.xml文件,根据destination的配置来寻找的(如果没配置,将导致运行时异常)
    2. 所以如果此id的RemoteObject在文件remoting-config中不存在,在运行时将报找不到channel,导致通讯失败
    3. 故障现象:
      远程调用失败: [FaultEvent fault=[RPC Fault faultString="[MessagingError message='Destination 'hello' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'hello'"] messageId="422EE04F-8AE9-ECD8-7B22-EE5EA1274F84" type="fault" bubbles=false cancelable=true eventPhase=2]
       

ubuntu 64调试flex

  1. #flex开发环境下载flash独立调试器

  2. eclipse配置:window->Preferences->Flash builder->debugger:独立调试框中添加独立调试器程序

  3. 调试一个mxml文件,打开debug configurations:在《要启动的URL或路径》中配置swf文件的位置即可。重新debug mxml发现可以调试了。
2
0
分享到:
评论
2 楼 skzr.org 2012-03-08  
FaultEvent fault=[RPC Fault faultString="[MessagingError message='Destination 'hello' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'hello'"] messageId="422EE04F-8AE9-ECD8-7B22-EE5EA1274F84" type="fault" bubbles=false cancelable=true eventPhase=2


因为使用了spring-flex,导致remote-config中未配置任何remoteobject,所以mxmlc执行时人为没有合适的channel,故导致此现象。
1 楼 skzr.org 2011-10-25  
flex在ubuntu下的调试解决了,真的非常吊。

切记这里配置swf文件的位置,可以是文件位置即:file:///这样的位置
也可以是url位置如:http://....swf这样的url。

相关推荐

Global site tag (gtag.js) - Google Analytics