[Gambas-user] Flash (.swf) on form

Sebastian Kulesz sebikul at ...626...
Fri Jul 20 00:12:21 CEST 2012


On Thu, Jul 19, 2012 at 6:59 PM, abbat <abbat.81 at ...787...> wrote:
>
> I cant understand it, because I have not where to start.
> The "WebBrowser" is not very good as example, because I cant send URL to
> "TabBrowser"
> Is any example how to display web content on a form?
> Thanks
>
>
> Sebi-6 wrote:
>>
>> Go to this webpage
>> http://gambasdoc.org/help/comp/gb.qt4.webkit/webview?v3
>>
>> You should find everything you need there.
>>
>>
>>
>> On Wed, Jul 18, 2012 at 6:07 PM, abbat <abbat.81 at ...787...> wrote:
>>>
>>> Please, what the control should I use for playing flash?
>>>
>>>
>>> Sebi-6 wrote:
>>>>
>>>> You could load it using a webkit object, provided that the user has
>>>> flashplayer.so installed. IMO just referencing the local (or remote)
>>>> flash
>>>> file on a really simple html page should work.
>>>>
>>>> Hope this helps you!
>>>>
>>>> -----Original Message-----
>>>> From: abbat <abbat.81 at ...787...>
>>>> Date: Wed, 18 Jul 2012 13:39:46
>>>> To: <gambas-user at lists.sourceforge.net>
>>>> Reply-To: mailing list for gambas users
>>>> <gambas-user at lists.sourceforge.net>
>>>> Subject: [Gambas-user]  Flash (.swf) on form
>>>>
>>>>
>>>> Is it possible to play flash (.swf) on form.
>>>> I could not find any example.
>>>> Thanks
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Flash-%28.swf%29-on-form-tp34181536p34181536.html
>>>> Sent from the gambas-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Gambas-user mailing list
>>>> Gambas-user at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Gambas-user mailing list
>>>> Gambas-user at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Flash-%28.swf%29-on-form-tp34181536p34181658.html
>>> Sent from the gambas-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Flash-%28.swf%29-on-form-tp34181536p34187143.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


You can't wait to find an example for every problem you will face
while programming a project. The solution i gave you is a raw idea i
had, not the unique solution.

If you look at the WebView, you will find it has an HTML property [0],
so you don't need to load an url, but rather a REALLY simple webpage
that contains the swf object

This is just how the code should look like, not a functional example!
(also note that i have not tested this, it may or may not work)

Path = "file:///home/ME/website/object.swf"
WebView.HTML= "<embed src=\"" & Path & "\" />"

note that the / dir should be translated to file:/// and the /home to
file:///home/ and so on


[0] http://gambasdoc.org/help/comp/gb.qt4.webkit/webview/html?v3




More information about the User mailing list