Answer to Question #3088 in Action Script | Flash | Flex | ColdFusion for Marina

Question #3088
I have flex 3 application with loaded swf file. How can I simalate mouse click on my loaded swf on x y coordinates ?? On this x y point my loaded swf has a button. I need sumalate to click this button without real mouse click.
My code :<mx:SWFLoader id="content" ..../>
var newEv:MouseEvent = new MouseEvent(MouseEvent.CLICK, true, false, x0 , y0) ;
content.addEventListener(MouseEvent.CLICK, onMouseClick);
content.dispatchEvent(newEv);

function onMouseClick executed but my button on swf is not clicked !!!!

Thank you very much for any help.
1
Expert's answer
2011-06-07T06:05:23-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS