swfobject.embedswf什么东西
答案:2 悬赏:50 手机版
解决时间 2021-03-16 20:32
- 提问者网友:温旧梦泪无声
- 2021-03-16 07:27
swfobject.embedswf什么东西
最佳答案
- 五星知识达人网友:撞了怀
- 2021-03-16 08:04
修改flax文件,编译:
//上传图片
private function uploadImageFile():void
{
var fileUpload:FileReference = FileReference(allFileList[imageIndex]);
progressUpload.setProgress(0, fileUpload.size);
var uc:UIComponent = allImageList[imageIndex];
uc.addChild(progressUpload);
progressUpload.x = 0;
progressUpload.width = uc.width;
progressUpload.y = uc.height - progressUpload.height;
fileUpload.addEventListener(Event.COMPLETE, file_complete); //当文件上载成功后生产状态码200时调用。
fileUpload.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, returnServerDate);//当文件上载操作成功后接收到服务器返回的数据时调用。
fileUpload.addEventListener(IOErrorEvent.IO_ERROR, uploadError);
fileUpload.addEventListener(SecurityErrorEvent.SECURITY_ERROR, uploadError);
fileUpload.addEventListener(ProgressEvent.PROGRESS, file_progress);
var request:URLRequest = new URLRequest(uploadServerUrl);
//mx.controls.Alert.show('上传文件地址:' + uploadServerUrl + ' 编译后地址'+request.url);
fileUpload.upload(request);
}
//上传完成后接收服务端返回数据
private function returnServerDate(e:DataEvent):void
{
var m :String = e.data
if(jsFunction != '')
{
ExternalInterface.call(jsFunction,m);
}
}
M为返回值
//上传图片
private function uploadImageFile():void
{
var fileUpload:FileReference = FileReference(allFileList[imageIndex]);
progressUpload.setProgress(0, fileUpload.size);
var uc:UIComponent = allImageList[imageIndex];
uc.addChild(progressUpload);
progressUpload.x = 0;
progressUpload.width = uc.width;
progressUpload.y = uc.height - progressUpload.height;
fileUpload.addEventListener(Event.COMPLETE, file_complete); //当文件上载成功后生产状态码200时调用。
fileUpload.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, returnServerDate);//当文件上载操作成功后接收到服务器返回的数据时调用。
fileUpload.addEventListener(IOErrorEvent.IO_ERROR, uploadError);
fileUpload.addEventListener(SecurityErrorEvent.SECURITY_ERROR, uploadError);
fileUpload.addEventListener(ProgressEvent.PROGRESS, file_progress);
var request:URLRequest = new URLRequest(uploadServerUrl);
//mx.controls.Alert.show('上传文件地址:' + uploadServerUrl + ' 编译后地址'+request.url);
fileUpload.upload(request);
}
//上传完成后接收服务端返回数据
private function returnServerDate(e:DataEvent):void
{
var m :String = e.data
if(jsFunction != '')
{
ExternalInterface.call(jsFunction,m);
}
}
M为返回值
全部回答
- 1楼网友:笑迎怀羞
- 2021-03-16 08:49
1.flash宽度
2.flash高度
3.指定你发布的swf对应的flash player版本(格式为:major.minor.release)
这里是指flash player9.。 一般格式应该为9.0.0
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯