FlashPlayerWrapper "ALPHA Release"
Playing Flash files has been possible, since the release of the WebBrowser Library, but we could not Control the Movie being played...
I found a very interesting piece of code, wich wrapped a Flash Movie Player, and took a peak at it...
The result is my FlashPlayerWrapper...
This DESKTOP wrapper consist of 3 seperate dlls, that must all be in the same Folder...
You only need to add as a component the FlashWrapper.dll...
With the very usefull sugestions from marathon332, Here's what IS DONE:
ALPHA RELEASE 0.1
The constructor now has a new syntax:
New(FormName) were FormName is the Form To host the FlashPlayer Control
Author - Returns my Nickname...
DllVersion - Returns "0.1"
Left - sets/gets the corresponding value
Top - sets/gets the corresponding value
Width - sets/gets the corresponding value
Height - sets/gets the corresponding value
Movie - The FileName of the file to be played. * Usualy the movie plays automatically after this line.
Enabled - sets/gets the corresponding value
TotalFrames - GETS the total number of frames in the current file
MenuEnabled - sets/gets the corresponding value, this being the context menu..
MovieLoop - sets/gets the corresponding value, Had to add the prefix "Movie" because the IDE was having some issues with it..
BackColor - sets/gets the corresponding value
Mode - sets/gets the corresponding value, possible values are "Window", "Opaque" and "Transparent"
Quality - sets/gets the corresponding value. possible most common values are "Low", "Medium" and "Best"
CurrentFrame - returns the current Frame number.
Play - Starts the file.
Stop - hugh, Stops the file.
Foward - Speeds up the file playing
Back - Not sure about this one, I need a biggers swf to test...
Rewind - Same as a video player I guess..
Focus - Sets the focus to the player, if possible
GotoFrame(Frame) - Jumps to a specific frame, the playing gets stopped...
Zoom - Cool feature but a bit confusing...It does zomm the movie, but i cant make sense of the range...Play a bit with it...
Dispose - Well, disposes of the control
Since this is still an alpha releas, this IS the help file..
When I release V1.0, I will also provide the cs and chm files.
I will also try to combine this 3 parts dll into a single dll, but this may take some time to acomplish...
Playing Flash files has been possible, since the release of the WebBrowser Library, but we could not Control the Movie being played...
I found a very interesting piece of code, wich wrapped a Flash Movie Player, and took a peak at it...
The result is my FlashPlayerWrapper...
This DESKTOP wrapper consist of 3 seperate dlls, that must all be in the same Folder...
You only need to add as a component the FlashWrapper.dll...
With the very usefull sugestions from marathon332, Here's what IS DONE:
ALPHA RELEASE 0.1
The constructor now has a new syntax:
New(FormName) were FormName is the Form To host the FlashPlayer Control
Author - Returns my Nickname...
DllVersion - Returns "0.1"
Left - sets/gets the corresponding value
Top - sets/gets the corresponding value
Width - sets/gets the corresponding value
Height - sets/gets the corresponding value
Movie - The FileName of the file to be played. * Usualy the movie plays automatically after this line.
Enabled - sets/gets the corresponding value
TotalFrames - GETS the total number of frames in the current file
MenuEnabled - sets/gets the corresponding value, this being the context menu..
MovieLoop - sets/gets the corresponding value, Had to add the prefix "Movie" because the IDE was having some issues with it..
BackColor - sets/gets the corresponding value
Mode - sets/gets the corresponding value, possible values are "Window", "Opaque" and "Transparent"
Quality - sets/gets the corresponding value. possible most common values are "Low", "Medium" and "Best"
CurrentFrame - returns the current Frame number.
Play - Starts the file.
Stop - hugh, Stops the file.
Foward - Speeds up the file playing
Back - Not sure about this one, I need a biggers swf to test...
Rewind - Same as a video player I guess..
Focus - Sets the focus to the player, if possible
GotoFrame(Frame) - Jumps to a specific frame, the playing gets stopped...
Zoom - Cool feature but a bit confusing...It does zomm the movie, but i cant make sense of the range...Play a bit with it...
Dispose - Well, disposes of the control
Since this is still an alpha releas, this IS the help file..
When I release V1.0, I will also provide the cs and chm files.
I will also try to combine this 3 parts dll into a single dll, but this may take some time to acomplish...
Attachments
Last edited: