C++/VB - VB6 and Flash ExternalInterface?
Asked By Steve Ricketts
15-Jan-10 11:13 AM
Does anyone have an example of VB6 communicating with Flash 8+ through the
ExternalInterface? I need to send the Flash component information and it
needs to call functions in VB. I have embedded the Flash component in a form
and am able to acknowledge a Flash event with private sub
StreamViewer_FlashCall(ByVal request as String) but I do not know how to
return a value to that call. I also do not know how to call a function
within the Flash (AS3) component from VB and pass parameters.
If anyone could point me in the right direction, I'd greatly appreciate it.
Thanks,
Steve
IXMLDOMElement
(1)
StreamViewer.SetReturnValue
(1)
StreamViewer.FlashVars
(1)
StreamViewer.Movie
(1)
VB
(1)
ReqXml.loadXML
(1)
DOMDocument
(1)
Debug.Print
(1)
Steve Ricketts replied to Steve Ricketts
Ok, found the solution myself...
StreamViewer.FlashVars = did not work so I had to use:
StreamViewer.Movie = "file://" & strExe & "\streamViewer.swf?appUrl=" &
rtmpPath & "&streamId=" & rtmpSession
Private Sub StreamViewer_FlashCall(ByVal request As String)
Debug.Print request '<invoke name="isReady"
returntype="xml"><arguments></arguments></invoke>
Dim reqXml As New DOMDocument
Dim sAry() As String
reqXml.loadXML request
Dim elem As IXMLDOMElement
Set elem = reqXml.selectSingleNode("invoke")
Dim funcName As String
funcName = elem.getAttribute("name")
Dim ret As String
Select Case funcName
Case "isReady"
Call StreamViewer.SetReturnValue("<true/>")
End Select
End Sub

Nothing C++ / VB Sub Include(ByVal includefile) Dim fso, s, f Set fso = CreateObject("Scripting.FileSystemObject") If fso not also 'Set fso = Nothing'? VBScript Discussions Routine (1) Bytes (1) Bit (1) VBA (1) VB (1) CreateObject (1) Application (1) FileExists (1) JJ presented the following explanation : Well, if this should get explicitly destroyed. 2. If I implicitly create an object, I leave it to VB to implicitly destroy when it runs out of scope. (ie: Dim oColl As New Collection use explecit. Note that anything left to be done implicitly ALWAYS requires extra processing by VB / A / Script, adding to runtime overhead. There is more disadvantages to implicitly creating objects and http: / / www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion That's it??? After serious thinking JJ wrote : Where is the rest of http: / / www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion I am with Garry, but it is "controversial". People have different opinions. I http: / / www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion Sorry, I believe you are misreading his "famous" rant. Explanations #3 and #4 http: / / www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion Oops! Typo. . . I used to thinK along the same lines as Eric once
Definitely a Newbie- -Need an example C++ / VB I am told VBS comes with MS OSes, and that if I had an example can carry about 240, 000 pounds. . . John There are exactly four ways to launch a VB Script: a) Right-click the shortcut. This is common for all shortcuts, not just VB Script. b) Typing the script name at the command prompt (which is the same as between c) and d) which you will come to appreciate as you dig deeper into VB Scripting. What is strange about downloading the tutor / intro file? Which file is it, in way is Visual Basic. By almost luck, when a friend moved, he gave me two VB 5 books, and the compiler (Interpreter?) Why VB. I am using a scientific app that allows one to extend facilities of the app other program the app works with. No need to even run the app. Just use VB. Still curious about VBS. My guess is that it is nowhere as powerful as using VB, but is not really used for of with html. - - Wayne Watson (Watson Adventures, Prop., Nevada
MVP Award. . . C++ / VB From an email received last week, from Amit Mohindra, of the VC++ team: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = There are flounder.com / mvp_tips.htm VC MFC Discussions Visual Studio (1) Windows 7 (1) Office (1) VB.NET (1) VBA (1) VB (1) UploadFile (1) JavaScript (1) Joe: Congratulations to you and Mike! - - David Wilkinson Visual C en-US / Vsexpressvc / threads - - David Wilkinson Visual C++ MVP There are more VC++ developers than VB or C#. Again, unclassified industry data. (Actually, this surprised me, because about ten years ago www.flounder.com / mvp_tips.htm stry data. s quite That doesnt sound right. I believe VB developers easily surpassed C++ 10 years ago. I would be surprised if thats not the the lead over C++. - - Ajay My mistake, according to this index, at least in 1985 (?) Vb was more popular than C++ - - Cholo Lennon Bs.As. ARG Most of the Microsoft forums make it go away :o) I'd be more scared to invest in learning much VB at this point. Not that it is going away or anything, but whenever I hear suspect that will continue to be the most growing syntax. Of course, C++ / CLI and VB and all the other #'s get the benefit of .NET improvements. Tom That may be
x3206 implicit truncation of vector type C++ / VB Ever since upgrading to the February 2010 Slimdx and equivalent DirectX SDK I have been messages anymore for some reason. Anybody else having this issue? Richard Win32 DirectX Graphics Discussions VB.NET (1) FromFile (1) DirectX (1) February (1) Graphics (1) Slimdx (1) Truncat (1) Vector throws up lots of similar errors as a result of this one Richy D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(703, 40): warning X3206: implicit truncation of vector type D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(753 39): warning X3206: implicit truncation of vector type D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(755, 18): warning X3206: 'mul': implicit truncation of vecto r type D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(755 11): warning X3206: implicit truncation of vector type D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(757, 23): warning X3206: 'mul': implicit truncation of vecto r type D: \ Backup \ VB.NET \ DirectX10 \ MyEditor \ bin \ x86 \ Debug \ Projects \ Terrain Test 2 \ Effect s \ TerrainOriginal.fx(757
CComQIPtr and XML question C++ / VB Hi all! On VC6 this code worked perfectly: MSXML::IXMLDOMDocumentPtr CXMLDocItem::GetXMLNode() { CComQIPtr<MSXML::IXMLDOMDocument left of '-> QueryInterface' must point to class / struct / union / generic type 1> type is 'MSXML::IXMLDOMElement * *' 1> c: \ program files \ microsoft visual studio 9.0 \ vc \ include \ comip.h(243) : see _com_ptr_t<_IIID> ::_QueryInterface<_InterfaceType*> (_InterfacePtr) throw()' being compiled 1> with 1> [ 1> _IIID = 3D_com_IIID<MSXML::IXMLDOMElement, & _GUID_2933bf86_7b36_11d2_b20e_00c04f983e60> , 1> _InterfaceType = 3DMSXML::IXMLDOMElement *, 1> _InterfacePtr = 3DMSXML::IXMLDOMElement * * 1> ] 1> d: \ cm_projects \ spark manager \ spark manager \ xml \ xmlwrapper.cpp(647) : see reference to _com_ptr_t<_IIID> ::operator = 3D<T*> (_InterfaceType *)' being compiled 1> with 1> [ 1> _IIID = 3D_com_IIID<MSXML::IXMLDOMElement, & _GUID_2933bf86_7b36_11d2_b20e_00c04f983e60> , 1> T = 3DMSXML::IXMLDOMElement, 1> _InterfaceType = 3DMSXML::IXMLDOMElement * 1> ] The issue here is that these are not classes that I wrote, but I