10 Replies Latest reply on Oct 12, 2011 10:33 AM by Flex harUI

    What does "=" mean?

    horndinkle

      I mean, I know what it means in the usual sense, like:

       

      var thing:String = new String();

       

      I copied the code in: Using Flex 4.5 / Enhancing the user interface / Drag and drop / Manually adding drag-and-drop support

       

      but I didn't know what this line meant:

       

      var dragInitiator:Canvas=Canvas(event.currentTarget);

       

      I don't think it's a constructor, because the object Canvas doesn't take any arguments in its constructor.  I'm just not sure what that is.  Can anyone help?