Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
What I did was extend containerController to allow me to pass in the contextmenu for the textflow here is that simple class:
package classes.Email
{
import flash.display.Sprite;
import flashx.textLayout.container.ContainerController;
import flash.ui.ContextMenu;
public class CustomController extends ContainerController
{
public var cm:ContextMenu;
public function CustomController(container:Sprite, con:ContextMenu, compositionWidth:Number=100, compositionHeight:Number=100)
{
cm = con;
super(container, compositionWidth, compositionHeight);
}
protected override function createContextMenu():ContextMenu{
cm.clipboardMenu = true;
return cm;
}
}
}
This seems to work perfect!
Copy link to clipboard
Copied
hi can u tell me with an mxml example, how to create a new context menu? or add some items in the existing context menu?