MBS FileMaker Plugin Example Databases

Control Interactive Container Movie

All examples are included with download of MBS FileMaker Plugin.

Control Interactive Container Movie.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts7
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Control Interactive Container Movie
1 field defined, 1 record
Control Interactive Container Movie

Fields

Table Name: Control Interactive Container Movie - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
MovieContainerNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1

        Layout Objects: Control Interactive Container Movie

        Regular Fields

        Field Name: Control Interactive Container Movie::MovieContainer
        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          Object Name:
        • MovieView
        • Top: 64 pt
        • Left: 168 pt
        • Bottom: 328 pt
        • Right: 644 pt
        • Anchoring: Left, Top
        Field Format:
        • Edit Box
        • Optimized for interactive content
        Field Behavior:
        • Allow field to be entered: In Find mode, In Browse mode
        • Touch keyboard type: Default for Data Type
        • Go to next field using: Tab key
        No

        Buttons

        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Play
        • Top: 66 pt
        • Left: 657 pt
        • Bottom: 98 pt
        • Right: 804 pt
        • Anchoring: Left, Top
        Perform Script [ “play” ]

        Scripts:


        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Stop
        • Top: 111 pt
        • Left: 657 pt
        • Bottom: 143 pt
        • Right: 804 pt
        • Anchoring: Left, Top
        Perform Script [ “stop” ]

        Scripts:


        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Get Position
        • Top: 156 pt
        • Left: 657 pt
        • Bottom: 188 pt
        • Right: 804 pt
        • Anchoring: Left, Top
        Perform Script [ “get position and duration” ]

        Scripts:


        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Forward 10 seconds
        • Top: 201 pt
        • Left: 657 pt
        • Bottom: 233 pt
        • Right: 804 pt
        • Anchoring: Left, Top
        Perform Script [ “jump forward 10 seconds” ]

        Scripts:


        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Forward one frame
        • Top: 246 pt
        • Left: 657 pt
        • Bottom: 278 pt
        • Right: 804 pt
        • Anchoring: Left, Top
        Perform Script [ “jump forward one frame” ]

        Scripts:


        Script Hierarchy

        play
        stop
        get position and duration
        jump forward 10 seconds
        jump forward one frame
        HideControls
        ShowControls

        Next Script: [stop]
        Script Nameplay
        Run script with full access privilegesOff
        Include In MenuYes
        Layouts that use this script
        Scripts that use this script
          Script Definition
          Script Steps
          • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').play();" ) ]
          Fields used in this script
            Scripts used in this script
              Layouts used in this script
                Tables used in this script
                  Table occurrences used by this script
                    Custom Functions used by this script
                      Custom menu set used by this script

                        Previous Script: [play]Next Script: [get position and duration]
                        Script Namestop
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                        Scripts that use this script
                          Script Definition
                          Script Steps
                          • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').pause();" ) ]
                          Fields used in this script
                            Scripts used in this script
                              Layouts used in this script
                                Tables used in this script
                                  Table occurrences used by this script
                                    Custom Functions used by this script
                                      Custom menu set used by this script

                                        Previous Script: [stop]Next Script: [jump forward 10 seconds]
                                        Script Nameget position and duration
                                        Run script with full access privilegesOff
                                        Include In MenuYes
                                        Layouts that use this script
                                        Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • Set Variable [ $duration; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').duration;" ) ]
                                          • Set Variable [ $currentTime; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').currentTime;" ) ]
                                          • Show Custom Dialog [ Title: "Position"; Message: $currentTime & " of " & $duration; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                          Fields used in this script
                                            Scripts used in this script
                                              Layouts used in this script
                                                Tables used in this script
                                                  Table occurrences used by this script
                                                    Custom Functions used by this script
                                                      Custom menu set used by this script

                                                        Previous Script: [get position and duration]Next Script: [jump forward one frame]
                                                        Script Namejump forward 10 seconds
                                                        Run script with full access privilegesOff
                                                        Include In MenuYes
                                                        Layouts that use this script
                                                        Scripts that use this script
                                                          Script Definition
                                                          Script Steps
                                                          • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').currentTime += 10;" ) ]
                                                          Fields used in this script
                                                            Scripts used in this script
                                                              Layouts used in this script
                                                                Tables used in this script
                                                                  Table occurrences used by this script
                                                                    Custom Functions used by this script
                                                                      Custom menu set used by this script

                                                                        Previous Script: [jump forward 10 seconds]Next Script: [HideControls]
                                                                        Script Namejump forward one frame
                                                                        Run script with full access privilegesOff
                                                                        Include In MenuYes
                                                                        Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • #moves by 1/25 second
                                                                          • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').currentTime += 0.04;" ) ]
                                                                          Fields used in this script
                                                                            Scripts used in this script
                                                                              Layouts used in this script
                                                                                Tables used in this script
                                                                                  Table occurrences used by this script
                                                                                    Custom Functions used by this script
                                                                                      Custom menu set used by this script

                                                                                        Previous Script: [jump forward one frame]Next Script: [ShowControls]
                                                                                        Script NameHideControls
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                          Scripts that use this script
                                                                                            Script Definition
                                                                                            Script Steps
                                                                                            • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').controls = false;" ) ]
                                                                                            Fields used in this script
                                                                                              Scripts used in this script
                                                                                                Layouts used in this script
                                                                                                  Tables used in this script
                                                                                                    Table occurrences used by this script
                                                                                                      Custom Functions used by this script
                                                                                                        Custom menu set used by this script

                                                                                                          Previous Script: [HideControls]
                                                                                                          Script NameShowControls
                                                                                                          Run script with full access privilegesOff
                                                                                                          Include In MenuYes
                                                                                                          Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript"; "MovieView"; "document.getElementById('fm-player').controls = true;" ) ]
                                                                                                              Fields used in this script
                                                                                                                Scripts used in this script
                                                                                                                  Layouts used in this script
                                                                                                                    Tables used in this script
                                                                                                                      Table occurrences used by this script
                                                                                                                        Custom Functions used by this script
                                                                                                                          Custom menu set used by this script

                                                                                                                            Download example: Control Interactive Container Movie

                                                                                                                            Used functions:




                                                                                                                            Links
                                                                                                                            MBS Xojo Plugins