This content has been marked as final. Show 4 replies
strange. any sandbox error?
No, I'm not seeing any errors at all. :(
use the trace function so you'll see if Flex really gets the x and y properties you are trying to set.
Thank you my friend, for your advice...
I got it working, but the cause is still a mystery.
I tested out a new application just for moving around stuff and it was working fine, so I went back and tested it again in my main application, and it worked with a test button that I placed on the canvas and it worked... so I looked a little deeper, and the linkbutton that I was first using to call the function had other functions in the click event, e.g. click = "function1(); function2(some parms, some parms); movePanel();"
The above didn't work... went into pulling hair out mode, testing all kinds of different configs like I stated in the above posts, then tried the click="movePanel();" by itself, and it worked.
Ok... so then I try click = "movePanel(); function1(); functon2 ... etc", and it works.
Soooo, now the behaviour of the click is calling the movePanel function first, and it's setting the x/y with no problem, and the other functions are still working as before. No idea why. No errors reported either.
Anyway, thanks again for the advice.