View Flash file using html area

Hi,

I would like to view a flash file in a html area.

I have the following code working in a regular ‘.html’ file working in firefox

<html>
 <body>
<EMBED src='FlipClock.swf' quality=high bgcolor=#FFFFFF WIDTH='100' HEIGHT='100'NAME='myMovieName' ALIGN='' TYPE='application/x-shockwave-flash'></EMBED>
 </body>
</html>

But when i use the same code and change the path to the flash file now stored in the media folder. It doesn’t display in the html area

<html>
 <body>
<EMBED src='media:///FlipClock.swf' quality=high bgcolor=#FFFFFF WIDTH='100' HEIGHT='100'NAME='myMovieName' ALIGN='' TYPE='application/x-shockwave-flash'></EMBED>
 </body>
</html>

Any help would be appreciated. Is there some additional code needed to get it working in the html_area

Regards
jdcunha

The html area has a very limited subset of html.

You could test our browser bean. A totally new version for Servoy 4 is on the way…
You can read more here: http://www.it2be.com/index.php/beans-fo … owser-bean

Hi,

Thanks for the information.

Besides using the browser bean, Is there any other way to view flash files, videos in Servoy smart client and web client.

Regards
James Dcunha

Hmm, not as far as I know but search the forum.
It has been discussed before…

You could find a Java Flash Player (google for “java flash player”) and try it as a bean for smart client purposes.

To get it to work on the web, you can use an HTML area in which you place the proper HTML to display flash files in HMTL.

Based on the type of client you either initialize the bean or the HTML area and hide the other one.

Searching this forum for “flash” gives you also this http://forum.servoy.com/viewtopic.php?f=22&t=11381

Hope this gets you started.

Paul

I was having the same problem - hopefully this will shed some light…

viewtopic.php?f=22&t=11381&p=58396&hilit=silverlight#p58396

Forgot to mention, I got it working by placing the Flash file in…

Servoy/application_server/server/webappps/ROOT/servoy-web-client

and referring to it…

<object data="data:application/x-silverlight,"; type="application/x-silverlight-2" width="100%" height="100%"><param name="source" value="../../../servoy-webclient/SILVERLIGHTFILE.xap"/></object></html>

Hi all,

Thanks a lot for everyone helping me out. I got it to work on the web client.

I was getting the error in the html area ‘Movie not loaded’. When I used the following in the html area

    <object data="data:application/x-shockwave-flash,"; type="application/x-shockwave-flash" width="100%" height="100%"><param name="source" value="../../../servoy-webclient/Flip_Clock.swf"/></object></html>

It started to work When i changed it to the following

<EMBED src='../../../servoy-webclient/Flip_Clock.swf' quality=high bgcolor=#FFFFFF WIDTH='100' HEIGHT='100'NAME='myMovieName' ALIGN='' TYPE='application/x-shockwave-flash'></EMBED>

Will now work on getting it to work on Smart Client using a bean

Once again thanks a lot.

Regards
jdcunha