mardi 29 novembre 2016

How can I use Event class from Starling and Flash both in the same class

While working with Starling, I am encountering this problem. It's important to use the flash Event sometimes.

    import starling.events.Event;
    import flash.events.Event ;

function someEventHandler(event:Event ):void
{
  .....
}

I tried to use the full specification

function someEventHandler(event:flash.events.Event ):void
{
  ....
}

But the above doesnot work, and shows compile time error. Then what's the way out ?

Aucun commentaire:

Enregistrer un commentaire