Flash Control

Description

This control template allows you to incorporate Macromedia flash movies into your Clarion applications. Now you “About” splashes will look more better. Thousands of movies that may be founded in the Internet are available for you products.

Features

  • Appliable for two Clarion versions: 5.x and 6.x
  • Support both ABC and Legacy template sets
  • Support display flash movies on the regular windows
  • Support display flash movies inside MDI application
  • Support display flash movies directly from Internet
  • Support of flash menus (they must be created separately)

Structure

Product contents only single control template FlashCtl.tpl which can be simply registerd in Clarion IDE.

Using

Before template using, it needs to be registered in Clarion Template Registry. After you have finished product installation to your computer launch the Clarion IDE. Then select menu Setup and choose Template Registry item. Click Register button and you will see Open File dialog where you search for the following. file FlashCtl.TPL. Click him by mouse and press button Open. For a few seconds templates will be registerd. The first stage has completed.

Hint: I want to remind you that template will be displayed in the list of available templates only in 32-bit projects.
Thus, open your application where you want to append Flash Control support, then open Window Formatter. In the formatter choose menu Populate -> Control Template select control template FlashControl. After you have been finished you can see the result.

Settings

Flash Control settings could be accessed through the action tab of its properties or in window procedure extensions.

Click here to enlarge picture
  • Flash Directory - field for a enter directory where flash movies will be saved.
  • Use INI-file - checking on the checkbox allows your program to save flash directory inside ini-file and then you can change the ini-file if you’ll wish to remove your flash movies to other directory.
  • Flash Movie File - the main required parameter of Flash Control is the flash. In this field you can either use direct path (example: c:\flash\my.swf) or relative path (example: .\flash\my.swf) or variable path starting with exclamation (example: !loc:flashPathVariable) or even more difficult complex construction starting with exclamation too (ex.: !glo:flashPath & ‘\my1.swf’). You can also use INI-file for store flash directory.
  • Flash Player - just passes the basedoc property to Flash Control and is not used anywhere else.

Defaults

Click here to enlarge picture
  • Quality - setting indicates the movie quality. Possible values: Best, High, AutoHigh, Medium, AutoLow, Low.
  • Scale - setting sets the scale of Flash Control inside its OLE Container. Possible values: ShowAll, NoBorder, ExactFit.
  • Horizontal - used to set horisontal alignment of Flash Control inside OLE Container. Corresponding possible values are: Left, Center, Right.
  • Vertical alignment - used to set vertical alignment of Flash Control inside OLE Container. Corresponding possible values are: Top, Center, Bottom.
  • Background Color (HEX) - could be used to set the background color of Flash Control. Both variable and constant forms are allowed. The format is ‘#rrggbb’ where first, second and third pairs of hex digits are the hex equivalent of red, green and blue color respectively. If omitted (recommended) the default color defined in flash file will be used.
  • Play in Loop - checking this checkbox cause movie to play ini non-stop mode. Default is TRUE.
  • Display Menu - this parameter defines to display or not the flash menu. Default is FALSE.

Interaction

Click here to enlarge picture In this version one way interaction between Flash Control and owner window is possible. This realized with Flash’s FSCommand. FSCommand has commandName and commandParam passed into the handler. Each time when FSCommand is invoked in Flash it throughs an event to owner window. There is an embed point FSCommand invoked in Flash control which should be used to perform some action on FSCommand using built-in variables commandName and commandParam.

Hint! It is STRONGLY recommended not to use any interactivity or long time processing within FSCommand handling. If you need interactivity or long time processing you can send the user defined event to needed thread and process it as you like.

Internet

There is an ability to use flash files from the Internet by URL. Just specify the URL in movie file setting like this:
http://www.nikasoft.co.uk/images/swf/demo.swf

History

current version 1.3 (Aug 06, 2002)
[-]: The main problem solved: when the flash control is in the frame toolbar it was not refreshed automatically on some events (s.a. resized, moved, focus lost/gained aso). This problem occured in some other cases even when flash control was in client area of the window.

version 1.2 (Aug 02, 2002)
[+]: Added flash control settings: Play Loop and Display Menu.
[*]: Flash Control template settings restructured.
[-]: In case if flash was on the tab control sometimes it could be visible even if the desired tab is not selected. Fixed.
[*]: All demo applications converted to C55.

version 1.1 (Aug 01, 2002)
[-]: Flash file path determination did not occur in case of flash control is in the dll. Fixed.

version 1.0 (May 12, 2002)
[+]: The first released version.
[+]: Support SDI and MDI
[+]: Support loading movies from local hard drive and Internet
[+]: Support action menus

Purchase