Announcement

Collapse
No announcement yet.

Page.HideAllObjects [well, some of them anyway!]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Page.HideAllObjects [well, some of them anyway!]

    I have 4 WMP Objects all set to the same Grid position. All must be hidden upon Page.Show and in turn, Page.ShowObject > Play

    I am to hide approx. 18 Objects [total] on Page.Show.
    If I create a list hiding each Object individually, it works well. However, I find Page.HideAllObjects is not working as I expect it to. I am getting a black box where WMP is instead of the page background and then receive an error msg saying MediaPlayer1 cannot be found on the page.
    Actions are thus:

    (Page - OnShow)
    Page.HideAllObjects
    Application.Sleep ["2"]
    Page.ShowObject ["MediaPlayer1"]
    Application.Sleep [".25"]
    MediaPlayerObject["MediaPlayer1"].Play


    Perhaps someone can point out what I can't see!
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  • #2
    Re: Page.HideAllObjects [well, some of them anyway!]

    Which action is generating the error?

    Instead of inserting pauses, you might want to use the Media Player Object's events like On Stream Opened instead. If you don't want that object playing every time something is loading in it, just use a variable like %MediaPlayer1_AllowPlay% as a flag.
    --[[ Indigo Rose Software Developer ]]

    Comment

    Working...
    X