闪客动漫天地
欢迎 游客 , 注册 | 登录 | 会员 | 界面 | 简洁版本 | 在线 | 帮助
闪客动漫天地论坛

发表新主题 回复该主题
本主题被查看2037次, 共1个帖子, 1页, 当前为第1页     选择页数: 1      跳转到第   上一主题   下一主题
标题: 载入asp出现的问题
新手上路
UID: 120402
来自:
精华: 0
积分: 5
帖子: 5
注册: 2007-6-13 13:01:00
状态: 离线
威望: 0.00
金钱: 1.10 元
只看楼主 2009-11-21 20:47
载入asp出现的问题
AS2.0

以下是我的as类文件代码



class FrontofEntry {
// Properties
private var entryLoader:LoadVars;
// Constructor
public function FrontofEntry(id:Number) {
  entryLoader = new LoadVars();
  entryLoader.onLoad = function(success:Boolean) {
  if (success) {
    _level0.entryID = "ID of Entry: "+this.ID;
    _level0.vocSpeech = "Part of Speech: "+this.Speech;
    _level0.vocWord = "Word to Learn: "+this.Word;
    _level0.vocContext = "Context: \n"+this.Context;
    _level0.vocSource = "Source: "+this.Source;
    _level0.vocDate = "Date of Entry: "+this.Date;
  } else {
    _level0.entryID = "Error - Loading Failed!";
  }
  };
  entryLoader.load("GetDetails.asp?Entry="+id);
}
}


以下是fla文件代码:



var firstEntry:FrontofEntry = new FrontofEntry(0);


本人系统win xp pro sp3 with iis 5.1

为什么用Flash测试的时候output总是提示:

Error opening URL 'file:///D|/Websites/VocabularyPool/GetDetails.asp?Entry=0'

但在localhost上测试的时候却比较正常。

之所以是“比较”正常,原因如下:

每对fla或as文件进行一些改动后刷新localhost页面,页面里面的swf并不相应的变化,而是要退出浏览器后重启程序,才能看到相应的变化,为什么?



注,鄙人首次用asp+as,所以有N多哩不懂,还望大虾指点!!!!
#1  
发表新主题 回复该主题
本主题被查看2037次, 共1个帖子, 1页, 当前为第1页     选择页数: 1      跳转到第







现在的时间是 2010-07-30 07:12:43
沪ICP备05003105号

版权所有 闪客俱乐部  
         Powered by Discuz!NT 1.0.6666    Copyright © 2001-2010 Comsenz Inc.
Processed in 0.384 seconds