Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 com.adobe.indesign::IDSWFFile:加载swf文件时出现Null异常_Actionscript 3_Flash_Adobe Indesign - Fatal编程技术网

Actionscript 3 com.adobe.indesign::IDSWFFile:加载swf文件时出现Null异常

Actionscript 3 com.adobe.indesign::IDSWFFile:加载swf文件时出现Null异常,actionscript-3,flash,adobe-indesign,Actionscript 3,Flash,Adobe Indesign,这本质上是我的课 import mx.controls.Image; public class ImageFrameView extends Image { //Model. Contains x, y, z and z. Url for the png/jpg or swf-file private var m_imageFrame:ImageFrame; public function ImageFrameView(imageFrame:ImageFrame)

这本质上是我的课

import mx.controls.Image;
public class ImageFrameView extends Image
{
    //Model. Contains x, y, z and z. Url for the png/jpg or swf-file
    private var m_imageFrame:ImageFrame;

    public function ImageFrameView(imageFrame:ImageFrame)
    {
        super();
        m_imageFrame = imageFrame;
        initFrameView();
    }

    private function initFrameView():void
    {
         maintainAspectRatio = false;
         width    = m_imageFrame.width;
         height   = m_imageFrame.height;
         x        = m_imageFrame.x;
         y        = m_imageFrame.y;
         rotation = m_imageFrame.rotation;           
         source   = m_imageFrame.url; //Url points to a handler on the same server which serves images and/or swf-files.
    }
}
它在扩展UIComponent的类SpreadView中是这样使用的

var imageFrameView:ImageFrameView = new ImageFrameView(contentFrame as ImageFrame);
addChild(imageFrameView);
Png和Jpeg很好用。我从Indesign CS4或Indesign CS5导出的swf文件也可以正常工作。但最近,使用相同的方法和参数导出的旧swf文件(在Indesign CS4中)和以前的工作文件突然拒绝加载,当为ImageFrameView调用UpdateDisplayList时,我收到以下错误:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.adobe.indesign::IDSWFFile/readConfigurationData()
    at com.adobe.indesign::IDSWFFile()
发生的情况是,加载的swf文件在尝试读取自己的配置时引发异常

我过去和现在创建的所有swf文件仍然有效。客户创建的所有swf文件都是过去和现在创建的,即使它们在过去工作得很艰难,也无法正常工作。据我所知,swf文件是使用相同的方法和参数创建的


Adobe Flash中会有我不知道的突然变化吗?我和我的客户正在使用Flash 10.1或更高版本。错误从何而来?

似乎是页面转换和/或页面卷曲是罪魁祸首。我不知道为什么,但当我勾选页面转换选项时,错误在加载pdf时消失了。由于这些功能在我的应用程序中毫无意义,我将确保当客户端从indesign导出swf文件时,不允许使用这些选项