This content has been marked as final. Show 4 replies
Why not having a ViewStack controlled by a ToggleButtonBar ?
This is the way the Flex Store v2.0 is organized.
You would have a view for each screen and you would certainly get rid of this problem.
Thanks for your quick reply.
I'm not sure this will help, because actually, what I'm developing is more an application architecture than juste an application.
People using it would have to set in a config file the swf files of the screens they want to see in the application.
So, even with a view stack, at launch I would have to check this config file, and to load in the stack each of the swf.
So the point is, at launch, I don't know in advance which swf I will have to load.
Actually, it seems that the "mouse up" event isn't thrown while dragging. So drag never ends.
While not dragging, "mouse up" event is launched correctly.
Is it possible the drag, initiated within the loaded swf, is waiting for a "mouse up" from this swf, but that actually the only "mouse up" event raised comes from the main application, and is not detected by the inner swf?
I'm quite confused about this. And it's really important I solve this quickly.
Any help or trail would be greatly appreciated.
Using stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp), the mouse up event is fired during drag ... 3 times. I don't know if this is normal, but this seems weird to me, it should fire only one time, I think.
Whatever, now that I have this mouse up event, how can I stop the drag process? I found nothing useful in the DragManager interface, but a stopDrag() function on the item I'm dragging (which extends Box).
The following doesn't work:
private function mouseUp(event:MouseEvent):void
Any idea how to stop the drag process, with what I get here?
Also, any idea why the mouse event is triggered 3 times?