如何在mmxl组件中使用actionscript组件代码
我如何在mmxl组件中使用actionscript组件代码,就像在actionscript组件中我们使用类一样,但是在mmxl组件中我们不能使用类函数,那么我如何在mmxl组件
示例中使用actionscript组件代码,
这是actionscript组件代码,
package components
{
import assets.*;
import flash.events.*;
import flash.utils.*;
import mx.binding.*;
import mx.containers.*;
import mx.controls.*;
import mx.core.*;
import mx.events.*;
import mx.styles.*;
public class DialogTitle extends HBox implements IBindingClient
{
private var title:String = "TitleDialog";
public var DialogTitle1Image1:Image;
public var DialogTitle2Image2:Image;
public var DialogTitle3Label1:Label;
var _bindingsBeginWithWord:Object;
private var showCloseButton:Boolean = false;
var _bindingsByDestination:Object;
var _watchers:Array;
var _bindings:Array;
private var _documentDescriptor_:UIComponentDescriptor;
private static var _watcherSetupUtil:IWatcherSetupUtil;
但是我无法在mmxl组件中使用此代码如何使用公共类DialogTitle扩展HBox在mmxl组件代码中实现IBindingClient,使用它的方法是什么,抱歉我是新手,如果这是一个愚蠢的问题
how i can use actionscript component code in mmxl components,as in actionscript components we use classes ,but in mmxl component we can not use classes function, so how i can use actionscript component code in mmxl component
example,,
this is actionscript component code
package components
{
import assets.*;
import flash.events.*;
import flash.utils.*;
import mx.binding.*;
import mx.containers.*;
import mx.controls.*;
import mx.core.*;
import mx.events.*;
import mx.styles.*;
public class DialogTitle extends HBox implements IBindingClient
{
private var title:String = "TitleDialog";
public var DialogTitle1Image1:Image;
public var DialogTitle2Image2:Image;
public var DialogTitle3Label1:Label;
var _bindingsBeginWithWord:Object;
private var showCloseButton:Boolean = false;
var _bindingsByDestination:Object;
var _watchers:Array;
var _bindings:Array;
private var _documentDescriptor_:UIComponentDescriptor;
private static var _watcherSetupUtil:IWatcherSetupUtil;
but i cant use this code in mmxl components how i can use public class DialogTitle extends HBox implements IBindingClient in mmxl component code,what are the way to use it,sorry i am newbie if it is silly question
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是如何从 HBox 派生类并使其实现接口:
请注意,接口必须指定完整路径,导入对其没有影响。
Here's how you can derive class from HBox and make it implement interface:
Note that interface must be specified with full path, imports have no effect on it.