我正在尝试在pageLoad上加载一些内容,而不是作为可点击的事件(但仍保留菜单上的可点击事件)。
这是动作脚本:
import mx.utils.Delegate;
/**
* This is the menu that comes up at the bottom with various analysis and navigation options when a thumbnail is selected.
*/
class imagegal.BottomMenu extends MovieClip
{
public var bg_mc:MovieClip;
public var btns1_mc:MovieClip;
public function BottomMenu()
{
btns1_mc.prev_mc.label_txt.text = "PREVIOUS IMAGE"
btns1_mc.next_mc.label_txt.text = "NEXT IMAGE";
btns1_mc.info_mc.label_txt.text = "INFO";
btns1_mc.thumbs_mc.label_txt.text = "THUMBNAILS";
btns1_mc.menu_mc.label_txt.text = "MAIN MENU";
btns1_mc.prev_mc.onRelease = Delegate.create(this, function() {
_parent.loadPrevious();
});
btns1_mc.next_mc.onRelease = Delegate.create(this, function() {
_parent.loadNext();
});
btns1_mc.info_mc.onRelease = Delegate.create(this, function() {
_parent.toggleInfo();
});
btns1_mc.thumbs_mc.onRelease = Delegate.create(this, function() {
_parent.showThumbs();
});
btns1_mc.menu_mc.onRelease = Delegate.create(this, function() {
_parent.showMenu();
});
}
public function resize(w:Number) {
//mask_mc._width = w;
//bg_mc._width = w;
}
}
_parent.toggleInfo()函数具有我想要显示的内容。我的问题是,当这个相应的文件被SWF触发时,我可以触发该功能吗?
答案 0 :(得分:-1)
您可以向要显示blob的图像添加eventlistener,或使用this.onLoad添加eventlistener。