View Full Version : ActiveX Methods / interfaces
neocryptica
04-29-2002, 05:23 AM
Does anyone know how to communicate with a flash activex object in a c++ app???
This is very important....
Thanks:confused:
hangalot
05-02-2002, 10:30 AM
well if it exposes the com interface(iUnknown etc.) shouldn't be a prob.
but how did you get it compiled as an activeX obj??:confused:
neocryptica
05-02-2002, 02:29 PM
Well, I have already looked into the IUnknown interface, but it still only allowed me to access the ambient properties (some of them that is). Flash installs an activex control for the flash player when you install it. I found some of the methods that javascript can call from a webpage:
GetVariable(varName)
GotoFrame(frameNumber)
IsPlaying()
LoadMovie(layerNumber, URL)
Pan(x, y)
PercentLoaded()
Play()
Rewind()
SetVariable(variableName, value)
SetZoomRect(left, top, right, bottom)
StopPlay()
TotalFrames()
Zoom(percent)
TCallFrame(target, frameNumber)
TCallLabel(target, label)
TCurrentFrame(target)
TCurrentLabel(target)
TGetProperty(target, property)
TGetPropertyAsNumber(target, property)
TGotoLabel(target, label)
TPlay(target)
TSetProperty(target, property, value)
TStopPlay(target)
OnProgress(percent)
OnReadyState(state)
FSCommand(command, args)
and it is called with:
var movie = window.document.movie
What I am looking for is a way to achieve the same effect in a C++ environment without having to use the browser control for IE...
hangalot
05-02-2002, 02:49 PM
just checked it out quickly
the lib namespace = flashctl
obj=movie
no, interface there however so...
:(
neocryptica
05-02-2002, 08:45 PM
If you insert the ShockwaveFlash activex component into your C++ app, then drop a control onto a dialog box, go to classwizard and associate a variable with the flash control (i.e. IDC_FLASH1) you can send information to flash through the control...
This is using Visual C++ 6 BTW...
I am sending info to flash as we speak....=-)
to send info you use the associated variable with the dot syntax..
i.e.
m_Flash1 (variable associated with IDC_FLASH1)
m_Flash1.SetVariable("fileName", "whatever");
This will tell the variable "fileName" inside of flash to that it has a value of "whatever".
Haven't figured out how to turn the tables yet (call the C++ program from flash), but I am working on that as we speak as well...=-)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.