[flexcoders] Using RemoteObject with Flash

2009-04-08 Thread zootpeet

I have a Flash/ActionScript project that needs start connection to a backend 
database, as I need to start tracking and recording mouse clicks to do some 
metrics.

To start, I am trying to instantiate an instance of a RemoteObject 
(mx.rpc.remoting.RemoteObject). I get no compilation errors, but when I go to 
run it, I get no output to the console, and it hangs somewhere on startup. When 
I try to run it in the debugger, I get an error saying that I cannot debug the 
SWF because it does not contain ActionScript.


Any help or suggestions about this would be greatly appreciated.

thanks

Charlie Peet



[flexcoders] Drag and Drop question

2008-09-16 Thread zootpeet
I am trying to implement drag and drop onto a tree. In the dropDrop
handler, I want to be able to deny the drop from happening, based on
which element of the tree is being dropped on. 

  // r is the visible index in the tree
  var dropTarget:Tree = Tree(event.currentTarget);
  var r:int = dropTarget.calculateDropIndex(event);
  dstXmlTree.selectedIndex = r;
  var node:XML = dstXmlTree.selectedItem as XML;

  if (node.toXMLSting == whatever) {
 // Allow drop  -- HOW?
  } else {
 // Do NOT allow drop  -- HOW?
  }

How do I deny the drop?

thanks!