[flexcoders] Drag move or copy depending on SOURCE's container
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What is the best way to tell a drag-and-drop operation to move OR copy, depending on where the drag starts? I have an area whith 'source' images that are dragged (copied) to other containers from where these images rest until the are _moved_. I came up with attaching a new mouseMove event handler on the copied images, adding a special object to the dragSource (containing the information that we want a move operation next time). The dragDrop event handler then reads this information and creates a new item or uses the dragged one accordingly. I haven't worked with drag and drop a lot, and this feels like a hack to me. Is there a more standard way to specify the drap operation according to the drag source instead of drop target? thanks, best regards, Christoph -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkm6MOwACgkQZwp0O/P7cZuFxwCeOdJGLRED09FidBs4dLxgscdL zgsAnRfoL/aPuG8Sy7Rg/7rYIwq/oQWY =BT63 -END PGP SIGNATURE-
[flexcoders] Digest Authentification in Flex
Hello, I'm trying to wrap my head around digest authentification in Flex. The point is, using a proxy is not an option. Using the HTTPService object, Base authentification is straightforward, I just add the required headers. Now, in the case of Digest auth, the problem is that the Server first sends an 401 unauthorized message, together with some initial values (nonce, qop) that have to be used later on in negotiating. The big question: how do I access these values? There are Flash/Flex classes that support digest authentification (although via proxy), so that shouldn't be a fundamental problem. However, I don't know how, and some posts on the web seem to imply that the Flash player *can't* access HTTP headers - but I can't believe this, since digest auth (by any flash or mx class) simply requires access to the nonce and qop values in the HTTP headers. May someone please shed some light on this issue. TIA, best regards, Christoph