JavaScript and Flash

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default JavaScript and Flash

    Please, please, please......
    Can someone show me HOW (if it is at all possible) to have a
    Javascript coded drop-down menu appear ONTOP of a Flash (.swf) image?
    All iterations I've tried always force the Flash image to cover up the
    drop-down menu items. There doesn't appear to be anyway to set a
    priority. Flash always seems to be the upper most layer.
    This always happens with Mozilla and Opera and usually (though on
    occasion it will appear to work) with IE5.5 and IE6.
    Basically the question is: how do you get something to lay onTOP of a
    flash movie if it isn't alreay built into the .fla?
    Thank you.

    ft Guest

  2. Similar Questions and Discussions

    1. javascript & flash
      Hello, the javascript is from an affiliate site and it displays templates, i want the templates to load into a empty_mc on my flash site within 1...
    2. Javascript news ticker + Flash = shaking Flash inFirefox?
      I'm moving content (which I didn't develop) from an old site to my new design. I've run across a strange issue where a javascript menu appears to be...
    3. Javascript in Flash
      Hi Am I able to add javascript in a flash website. I have a game written in javascript and I would like to contain it within my flash website....
    4. Flash & Javascript
      Hi everyone. Here's a short script that I think came from this ng. on (release) { // This example is set to evaluate half a second pause...
    5. Talking to Flash with Javascript
      here is my situation. i have a site with frames (yes, shame on me). the top frame contains the header (flash movie). there is a link in another...
  3. #2

    Default Javascript and Flash

    Good Evening all

    I'm trying to call my flash with javascript and tell it to go to a specific
    frame and play? I'm using

    window.document.Navigation.GotoFrame(5)
    o
    window.document.Navigation.GotoFrame("AddFavorite" )

    But this doesn't work. Why? If I use Play() it works fine, but I need it to to
    a specific frame? Any Ideas
    Here is the code

    <script
    function add2Favorites(id)
    window.document.Navigation.SetVariable("PerformURL ", "ID="+id)
    window.document.Navigation.GotoFrame(5)
    window.document.Navigation.Play(

    </script

    Twistercell36 Guest

  4. #3

    Default Re: Javascript and Flash


    "Twistercell36" <twister36@comcast.net> wrote in message
    news:c09ohc$6a$1@forums.macromedia.com...
    > Good Evening all
    >
    > I'm trying to call my flash with javascript and tell it to go to a
    specific
    > frame and play? I'm using
    >
    > window.document.Navigation.GotoFrame(5)
    > o
    > window.document.Navigation.GotoFrame("AddFavorite" )
    >
    > But this doesn't work. Why? If I use Play() it works fine, but I need it
    to to
    > a specific frame? Any Ideas
    > Here is the code
    >
    > <script
    > function add2Favorites(id)
    > window.document.Navigation.SetVariable("PerformURL ", "ID="+id)
    > window.document.Navigation.GotoFrame(5)
    > window.document.Navigation.Play(
    >
    > </script

    To my knowledge there is no such javascript property under the document
    object called "Navigator". To my knowledge there is no way of controlling a
    flash animation with javascript. Actionscript, flash's built-in sripting
    language--yes, but not with javascript--at least I don't think. If there is
    I'd like to know about it too.


    TheKeith Guest

  5. #4

    Default Re: Javascript and Flash

    Javascript does work with Flash, for example these two work with Flas

    window.document.Navigation.SetVariable("PerformURL ", "ID="+id)
    window.document.Navigation.Play(

    Only this one I can't get to work
    window.document.Navigation.GotoFrame(5)


    Twistercell36 Guest

  6. #5

    Default Re: Javascript and Flash

    There is no sence in your script. You must use fscommand to interact Flash with javascript. Take a look at Flash help and you will find an example of such interaction.
    johnny_XP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139