Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Visual Basic and Flash
From: Brian McHarg
Date: Tue, 16 Nov 1999 09:44:50 GMT

Paul,

You should be able to pass variables back to VB using FSCommand. Here is a
piece of code that I wrote to open up an Acrobat PDF file from within a
Flash movie. This uses the shell command to use the appropriate registered
application to open the document. The important thing for you is that
within the If command = "pdf" section, the variable args is exactly what is
passed from the Flash movie, so it would be possible to parse the string
that is passed to make as many variables as you require (in this case just
the one, namely the filename of the PDF file).

Private Sub Flash1_FSCommand(ByVal command As String, ByVal args As String)

If command = "exit" Then
Flash1.Stop
Form1.Hide
End
End If

If command = "pdf" Then
args = CStr(CurDir) + args
retval = ShellExecute(Form1.hwnd, "open", args, "",
"c:\",sw_showmaximized)
End If

End Sub

Hope this helps.

One thing that I was wondering though, is if there is a way to emebed the
Flash movie fully into the Visual Basic program. So much so that, when you
compile the VB program to program.exe, the Flash movie is contained inside
the exe, rather than having to distribute a SWF file along with the EXE.
Does anyone know if this is possible, and if so, how?

TIA

B.


-----Original Message-----
From: Paul Watson [Paulatretailradio [dot] co [dot] za (mailto:Paulatretailradio [dot] co [dot] za)]
Sent: 16 November 1999 07:38
To: 'flasheratchinwag [dot] com'
Subject: FLASH: Visual Basic and Flash


Ok this is a slightly strange question but here goes

Seeing as Flash is just so incredible I have been itching to incorporate
it into more than just websites and corporate intranets. I would like to
basically implement flash screen's within Visual Basic applications. I
could use the web functionality of VB6 and receive variables back from
flash but this requires that the user either has IIS/PWS on their
machine or runs my application through a browser window and use DHTML
which is not what I want at all.

So if anyone knows how to take variables from a flash project and send
them to a visual basic project please tell me. I already know how to
insert a flash object into VB - very easy with Macromedia's supplied
ActiveX control's - but I want to take it a step further.

Thank you

Paul Watson

Radio Retail
Cape Town
South Africa

Love is a belief, I am a believer and a sinner...

Tel(w) :+27 21 982 2227
Tel(cell) : +27 83 475 4729
Fax :+27 21 982 2225
Email : InfoatRadioRetail [dot] co [dot] za
Visit www.RadioRetail.co.za for more information


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]