Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK some props to Gabriel there for getting my mind out of a rut and back into this problem in full mode. I had to go through a few steps to get to my answer</p> <p>1)remove the listeners for rollOver, rollOut, and mouseUp from the mxml and add rollOver and rollOut through the addEventListener method in AS</p> <p>2) add the listener dragComplete to the mxml and assign the function previously assigned to mouseUP to it</p> <p>3) change the main function to this:</p> <pre><code>public function over(evt:Event):void{ //on mouse over, added with AS CursorManager.removeAllCursors(); CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,-7,-7); var styleSheet:CSSStyleDeclaration = StyleManager.getStyleDeclaration("DragManager"); styleSheet.setStyle("moveCursor",grabbingCursor); //style set for the drag cursor } public function down(evt:Event):void{ // on mouse down CursorManager.removeAllCursors(); CursorManager.setCursor(grabbingCursor,CursorManagerPriority.LOW,-7,-7); sectQuestionsDG.removeEventListener(MouseEvent.ROLL_OVER,over); sectQuestionsDG.removeEventListener(MouseEvent.ROLL_OUT,out); //this is why I had to take it off the mxml, can only remove listeners //added with the addEventListener, I don't remember where I read that. } public function up(evt:Event):void{ CursorManager.removeAllCursors(); CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,-7,-7); sectQuestionsDG.addEventListener(MouseEvent.ROLL_OVER,over); sectQuestionsDG.addEventListener(MouseEvent.ROLL_OUT,out); } public function out(evt:Event):void{ CursorManager.removeAllCursors(); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload