MBS FileMaker Plugin Example Databases

AVPlayer

All examples are included with download of MBS FileMaker Plugin.

AVPlayer.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts7
Value Lists0
Custom Functions0
Custom Menus33
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
AVPlayer
5 fields defined, 1 record
AVPlayer

Fields

Table Name: AVPlayer - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ContainerNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      DurationNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          FilePathNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              RateNormal, NumberAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  VolumeNormal, NumberAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                      Layout Objects: AVPlayer

                      Regular Fields

                      Field Name: AVPlayer::Container
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        Object Name:
                      • MovieView
                      • Top: 24 pt
                      • Left: 138 pt
                      • Bottom: 149 pt
                      • Right: 391 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      No

                      Field Name: AVPlayer::Duration
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 180 pt
                      • Left: 138 pt
                      • Bottom: 194 pt
                      • Right: 217 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      Yes

                      Field Name: AVPlayer::FilePath
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 156 pt
                      • Left: 138 pt
                      • Bottom: 170 pt
                      • Right: 391 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      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
                      Yes

                      Field Name: AVPlayer::Rate
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 294 pt
                      • Left: 138 pt
                      • Bottom: 308 pt
                      • Right: 217 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      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
                      Yes

                      Field Name: AVPlayer::Volume
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 330 pt
                      • Left: 138 pt
                      • Bottom: 344 pt
                      • Right: 217 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      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
                      Yes

                      Group Buttons

                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Open Player
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 124 pt
                      • Left: 408 pt
                      • Bottom: 149 pt
                      • Right: 548 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Load Audio Player” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Play
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 204 pt
                      • Left: 408 pt
                      • Bottom: 229 pt
                      • Right: 548 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Play” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Pause
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 234 pt
                      • Left: 408 pt
                      • Bottom: 259 pt
                      • Right: 547 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Pause” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Set Rate
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 289 pt
                      • Left: 408 pt
                      • Bottom: 314 pt
                      • Right: 547 pt
                      • Anchoring: Left, Top
                      Perform Script [ “SetRate” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Set Volume
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 324 pt
                      • Left: 409 pt
                      • Bottom: 349 pt
                      • Right: 548 pt
                      • Anchoring: Left, Top
                      Perform Script [ “SetVolume” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Close
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 155 pt
                      • Left: 409 pt
                      • Bottom: 180 pt
                      • Right: 549 pt
                      • Anchoring: Left, Top
                      Perform Script [ “CloseMovie” ]

                      Scripts:


                      Script Hierarchy

                      Load Audio Player
                      CloseMovie
                      Play
                      Pause
                      SetVolume
                      SetRate
                      Clear

                      Next Script: [CloseMovie]
                      Script NameLoad Audio Player
                      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("Trace") ]
                        • Perform Script [ “CloseMovie” ]
                        • If [ IsEmpty(AVPlayer::Container) ]
                        • Set Variable [ $player; Value:MBS("AVPlayer.OpenFile"; AVPlayer::FilePath) ]
                        • Else
                        • Set Variable [ $player; Value:MBS("AVPlayer.OpenContainer"; AVPlayer::Container) ]
                        • End If
                        • If [ MBS("IsError") ]
                        • Show Custom Dialog [ Title: "Error loading audio file."; Message: $player; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                        • Exit Script [ ]
                        • End If
                        • // Pause/Resume Script [ Duration (seconds): ,1 ]
                        • Set Field [ AVPlayer::Duration; MBS("AVPlayer.GetDuration"; $player) ]
                        • Set Field [ AVPlayer::Rate; MBS("AVPlayer.GetRate"; $Player) ]
                        • Set Field [ AVPlayer::Volume; MBS("AVPlayer.GetVolume"; $Player) ]
                        • Set Variable [ $$player; Value:$player ]
                        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: [Load Audio Player]Next Script: [Play]
                              Script NameCloseMovie
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                              Scripts that use this script
                              Script Definition
                              Script Steps
                              • #Close last movie if it was open.
                              • If [ Length($$Player)>0 ]
                              • Set Variable [ $r; Value:MBS("AVPlayer.Release"; $$Player) ]
                              • Set Variable [ $$Player; Value:"" ]
                              • End If
                              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: [CloseMovie]Next Script: [Pause]
                                            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
                                              • If [ $$Player ≠ "" ]
                                              • Set Variable [ $r; Value:MBS("AVPlayer.Play"; $$Player) ]
                                              • Else
                                              • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                              • End If
                                              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: [SetVolume]
                                                            Script NamePause
                                                            Run script with full access privilegesOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • If [ Length($$Player)>0 ]
                                                              • Set Variable [ $r; Value:MBS("AVPlayer.Pause"; $$Player) ]
                                                              • Else
                                                              • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                              • End If
                                                              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: [Pause]Next Script: [SetRate]
                                                                            Script NameSetVolume
                                                                            Run script with full access privilegesOff
                                                                            Include In MenuYes
                                                                            Layouts that use this script
                                                                            Scripts that use this script
                                                                              Script Definition
                                                                              Script Steps
                                                                              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: [SetVolume]Next Script: [Clear]
                                                                                      Script NameSetRate
                                                                                      Run script with full access privilegesOff
                                                                                      Include In MenuYes
                                                                                      Layouts that use this script
                                                                                      Scripts that use this script
                                                                                        Script Definition
                                                                                        Script Steps
                                                                                        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: [SetRate]
                                                                                                Script NameClear
                                                                                                Run script with full access privilegesOff
                                                                                                Include In MenuYes
                                                                                                Layouts that use this script
                                                                                                  Scripts that use this script
                                                                                                    Script Definition
                                                                                                    Script Steps
                                                                                                    • Set Field [ AVPlayer::Container; "" ]
                                                                                                    • Set Field [ AVPlayer::Duration; "" ]
                                                                                                    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: AVPlayer

                                                                                                            Used functions:




                                                                                                            Links
                                                                                                            MBS Xojo Plugins