Hi again
I have fixed this problem. Basically I was moving the UIloader but when i
tried to move the container which contains the UIloader then it is moving
wherever i want to. Actually I have the main stage which contains the
container of type Sprite and that container contains UILoader which contains
external SWF. Little tricky :-).
Thus there was problem in moving the whole content. But Now I fixed one
problem and came up with another . While dragging and dropping sometimes my
program gives me the following error
"
ArgumentError: Error #2025: The supplied DisplayObject must be a child of
the caller.
    at flash.display::DisplayObjectContainer/getChildIndex()
    at MethodInfo-1092()"
I am tracking the number of children using getChildIndex. Anyone has any
idea how would i fix this error.
Any help will be highly appreciated.
Thanks
Anuj

On Tue, Feb 26, 2008 at 3:15 PM, anuj sharma <[EMAIL PROTECTED]> wrote:

> Hi All
> I am dragging the UI loader component containing external SWfs in them. On
> Mouse Release I use stop drag, and on stop drag- I am using
> myUIloader.move(mouseX,mouseY). However the output is little bouncy, the
> stage is taking the topleft corner of UIloader as main point and on stop
> drag it is moving the top left corner of the UIloader to the point where I
> left my mouse which gives the bouncy effect.(In short it is not dropping
> UIloader where I am leaving my mouse but dropping the top left corner of
> UIloader where I left the mouse.)
>
> I came up with the weird temporary solution where I use 
> myUIloader.move(mouseX-200,mouseY-200)
> which is not genuine way of solving this problem.
> Can you please help me out for figuring this thing out? All I need is to
> drop my UILoader wherever I left my mouse.
> Guys,I highly appreciate your help in this matter .
> Thanks
> Anuj
>
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to