Announcement

Collapse
No announcement yet.

Web Browser object

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

  • Web Browser object

    :confused:
    For my students I'am building a interactive Cd-rom wich contains a lot of movie-scenes.
    At first they can read a document on the screen that discribes the history.
    In that document I want to make hyperlinks to switch to that page (in AMS) where a Media player object contains the specefic fragment.
    The text document is more than one page so I have to scroll.

    I want to make my text document in Word, translate it in Word to Web page, make in AMS a Web Browser Object containing this text.
    Fine, now I can scroll perfectly in AMS but is there a way to use hyperlinks of that Object to direct to the specific page where my Mpeg_1 fragment is located?
    May be there is a better solution.

    By the way: I'am using AMS for more than 2 years.
    There is one rule for me...
    Whenever something does not run as I want it, I made the mistake.

    Jan

  • #2
    Re: Web Browser object

    Hi

    Here is something Brett came up with that may work

    http://www.indigorose.com/ubbthreads...mp;o=&vc=1
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Web Browser object

      is there a way to use hyperlinks of that Object to direct to the specific page where my Mpeg_1 fragment is located?

      Yes there is but please be more specific when you say, "the specific page where my Mpeg_1 fragment is located?"... You mean HTML page(s) or application page?

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: Web Browser object

        Thank you Corey for responding so quickly to my question.
        The thing is,
        We have HTML (text)pages discribing the history of film on wich we want to make hyperlinks to point to pages in AMS.
        Those (AMS)pages contains Mediaplayer objects (with Mpeg-1 movie fragments).

        So what we actually want is: The students reads the HTML document in one page of AMS, they click on a certain (hyperlinked) phrase and then they switch to the belonging AMS page (and start the filmfragment
        As far as I know you can use a hyperlink to point to a URL but not to a AMS page.
        I did the trick before by making text objects and "hotspots" but then you have to make a lot of pages because you can't scroll.


        Sincerely


        Jan

        Comment


        • #5
          Re: Web Browser object

          Hi Jan,

          Forgive me if this is wrong but I *think* what you are trying to do can be solved by:

          on the web browser object on page x have the script on "On Navigate Complete"

          %command% = WebBrowserObject( BrowserName ).GetProperty ("URL")
          %command% = String.Right ("%command%",6)

          IF(%command% = MovieX )
          Page.Jump (" DestinationPageWithMovieX ")
          END IF

          The link on your HTML page will have the link #MovieX as the %command% << make sure you change the code to have the proper number of characters that are trimmed right...

          and then on DestinationPageWithMovieX have it play the movie on load....

          is this along the right track?

          It sounds like you have MUCH more experience than me but it might help...


          Cheers!

          --HAZ

          Comment


          • #6
            Re: Web Browser object

            Hi, Haz
            I'am sorry for responding so late to your message.
            I was abroad.

            I do understand the following construction:
            on the web browser object on page x have the script on "On Navigate Complete"

            Shows the text of te Webbrowser Oject


            %command% = String.Right ("%command%",6)


            But what about this:
            IF(%command% = MovieX )
            Page.Jump (" DestinationPageWithMovieX ")
            END IF

            I believe that MovieX is the code on the HTML page.
            But how do you add this code?
            Can yuo add the code in Word or Frontpage?

            As you can see I'am not the wizard you believed so I'am very greatful for yor help


            Comment


            • #7
              Re: Web Browser object

              in your html page that is loaded into your web browser have this line somewhere (this is just an example and obviously can be adapted to pictures etc.)

              <a href="#movieX">click here to view MovieX </a>



              in AMS go to the page that has your web browser object (the one a student will be using when they click on the above link to "view MovieX".

              double click on the web browser object

              go to the actions tab

              select from the event list dropdown menu "On Navigate Complete"

              add this line:

              IF (%command%=MovieX)
              Page.Jump("2")
              END IF

              Please note that "2" is the NAME of the page where the movie is....

              now, go to page "2" and insert a Media Player Object:

              double click on this object and tell it which file it should be playing...

              without leaving this screen go to the advanced options (right under the video window that is now displaying "moviex")

              make sure "automatically start playing media" is enabled...

              that's it...

              you have to put navigation for a user to get out of this page and whatever fixings you want... but the code will work...


              hope this helps!

              --HAZ

              Comment

              Working...
              X