1

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

Constantiner
  • 14,231
  • 4
  • 27
  • 34

1 Answers1

0

Here's how you can derive class from HBox and make it implement interface:

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox
    implements="com.interfaces.IBindingClient"
>
<mx:Script>
<![CDATA[
     //and code goes here
]]>
</mx:Script>
</mx:HBox>

Note that interface must be specified with full path, imports have no effect on it.

alxx
  • 9,897
  • 4
  • 26
  • 41