#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chicago, IL
    Posts
    5
    Rep Power
    0

    FLASH Button ctrls QuickTime by using JavaScript


    Hi I am Mel!
    Its works very well for Netscape 4.7. It doesn't work for Explorer 5.x and 6 and also Netscape 6.x and 7.

    FLASH, Quicktime, and Javascript.

    >>Flash (Play button and stop button)
    on (release) {
    getURL ("javascript:document.movie1.Stop();", "_self");
    }

    ----------------------------------------------------------------------------------

    >>Quicktime
    Export: Movie to Quicktime movie as standard (My.mov and Myother.mov).

    ----------------------------------------------------------------------------------

    >>Javascript
    <html>
    <head>
    <title>Quicktime Movie is used by JS</title>

    <script language ="JavaScript1.3">

    <html>
    <head>
    </head>
    <body bgcolor="#999999">
    <OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="180" height="160" id="movie1">
    <PARAM name="src" value="My.mov">
    <EMBED width="320" height="260" src="My.mov" name="movie1" enablejavascript="true">
    </EMBED>
    <br>
    <embed src="clickbuttonmovie.swf" width="318" height="102" background="#999999"><br>
    </OBJECT>
    <a href="javascript:document.movie1.Play();">Play</a><br>
    <a href="javascript:document.movie1.Stop();">Stop</a><br>
    </body>
    </html>

    which script that works on all browswers (I.E. 5.x and Netscape 6.x and 7 as well as Opera, Mozorilla, and OmniWeb)

    please visit http://www.applelinks.net/deafmickey/click_movie.html

    your help would be greatly appreciate!!!
    THANKS!

    Mel
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    San Francisco, CA
    Posts
    226
    Rep Power
    13
    This could be totally off because I don't use Flash, but I noticed that in your code you wrote "java script" while I'm used to using "javascript" without the space. Also, you have the opening call to SCRIPT but I don't see any ending tag:

    <script language ="JavaScript1.3">

    // there's no </script>

    Like I said, I am not familiar with this, but since no one else answered, you could give it a try. If I am totally off base, please correct me.
    -Samantha
  4. #3
  5. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    For nn6+: document.getElementsByName('movie1').item(0).Stop()
    For ie4+: document.all['movie1'].Stop()

    I'm not sure if that will work, but it's a start.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chicago, IL
    Posts
    5
    Rep Power
    0

    Couldn't find a solution yet..


    //please copy and paste into your HTML editor. Then test it to find out why its doesn't work. I try to figure it out but ... please help me. Thank you.

    please visit: http://www.applelinks.net/deafmickey/click_movie.html


    <html>
    <head>
    </head>
    <body bgcolor="#666666" link="white" alink="red" vlink="yellow" text="yellow">
    <font face="arial">
    <OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="180" height="160" id="movie1">
    <PARAM name="src" value="My.mov">
    <EMBED src="My.mov" name="movie1" width="320" height="260" background="#666666" enablejavascript="true">
    </EMBED>
    <br><br><br>
    <embed src="clickbuttonmovie.swf" width="318" height="102" background="#666666"><br>
    </OBJECT>
    <br><br>
    Netscape 4.7 (Mac OS 9.2) Work excellent.<br>
    <a href="java script:document.movie1.Play();">Play</a><br>
    <a href="java script:document.movie1.Stop();">Stop</a><br>
    <br>
    Netscape 6x I don't know but Netscape 7.0 fail.<br>
    <a href="java script:document.getElementsByName('movie1').item(1).Play();">Play</a><br>
    <a href="java script:document.getElementsByName('movie1').item(1).Stop();">Stop</a><br>
    <br>
    Internet Explorer 5x fail.<br>
    <a href="java script:document.all['movie1'].Play;">Play</a><br>
    <a href="java script:document.all['movie1'].Stop();">Stop</a><br>
    <br><br>

    </font>
    </body>
    </html>
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    NJ
    Posts
    428
    Rep Power
    16
    i see that you still haven't put your links to javascript. That is what they should be. javascript is ONE word.

    Also look at your tags. You didn't end your second embed tag.
  10. #6
  11. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    vBulletin breaks up "javascript" in link tags so that it comes out "java script". It's a security feature.

IMN logo majestic logo threadwatch logo seochat tools logo