これは本質的に私のクラスです
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 ファイルも問題なく動作します。しかし最近、(Indesign CS4 で) 同じメソッドとパラメーターを使用してエクスポートされ、以前は機能していた古い swf ファイルが突然ロードを拒否され、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 以降を使用しています。エラーはどこから発生しますか?