Ask a Question related to Macromedia Flash Player, Design and Development.
-
Semishigure #1
How to retrieve Coordination of Button
Hello!!
I'm developing application hosting WebBrowser Control.
When I navigate the WebSite that has flash contents, I want to retrieve the
coordinates
of bottons in the flash contents.
( ex. url : [url]http://www.yohjiyamamoto.co.jp/top.html[/url] )
Question1.
In the source of ex url, HTML tag <OBJECT> show the flash contents .
so I can get the IHTMLObjectElement interface and get IShockwaveFlash
interface like codes below,
then I want to retrieve the coordinates of buttons.
Please advice me how to retrieve them using IShockwaveFlash interface.
Or are there any other ways to get them ?
****** Code *****
/* pElem : IHTMLElement of <Object> Tag */
static CLSID const clsid = { 0xD27CDB6C, 0xAE6D, 0x11CF, { 0x96, 0xB8, 0x44,
0x45, 0x53, 0x54, 0x0, 0x0 } } ;
CComBSTR bsTag, bsMov, bsScale;
CString csTag;
pElem->get_tagName(&bsTag);
csTag = bsTag ;
CComPtr<Flash::IShockwaveFlash> pSwf;
CComPtr<IUnknown> pUnk;
long lfrmNum;
if( SUCCEEDED(csTag.Find(_T("OBJECT"))) ){
CComPtr<IHTMLObjectElement> pObj;
CComPtr<IDispatch> pObjDsp;
pElem->QueryInterface(IID_IHTMLObjectElement, (void**)&pObj );
pObj->get_object(&pObjDsp);
hr = pObjDsp->QueryInterface(clsid, (void**)&pSwf );
}
Question2.
After Navigating ex url using Internet Explorer, push the tab key, the
button in the flash contents is sorrounded by the yellow rectangle box. I
understand this means sorrounded botton is focused.
After retrieving the coordinates in Question 1, I want to move focus ( yellow
rectangle box ) according to the key : up, down, left, right .
When I push up key, focus move nearest upper button .
So I want to know how to move yellow rectangle. Pls advice me how to focus on
specified button.
Semishigure Guest
-
Two Sites Datasource coordination
I need to coordinate updates in two differents sites. They both are run with a dinamic template, with MySQL. How can i link one datasource with... -
HELP:Swapping spirtes for a button & Randomly activating a button [ newbie ]
Hi - I have two questions - hope the cross posting is acceptable. 1. I have made some buttons using the mouseenter and leave behaviours that... -
dselect apt-get coordination
How do you coordinate apt-get and dselect so that they "want" the same packages? If I understand the apt-get man page running "apt-get... -
after logout, how to retrieve an expired page if user click 'back' button?
hi everyone, i've made a login and logout page, after user have logout, i want to retrieve an expired page if user click the 'back' button to... -
JavaScript Access to Button in form tags (webcontrol or html button)
Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of...



Reply With Quote

