director layers and flash

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default director layers and flash

    hi guys,

    this is probably really easy but I have a little problem.

    I have a director mx movie with a flash movie on layer 1. I have put some
    script on a director button to tell flash to go to a particular place, thus:

    on mouseUp me
    sprite("speakers_note").goToFrame("help03")
    end

    This works fine, but I want to move it to another layer so it appears
    between different elements of the director file, but if it's on any other
    layer than 1, I doesn't work and throws up the error:

    script error: Handler not found in object

    sprite("speakers_notes").goToFrame("Help03")

    #goToFrame

    Please can someone help as it's driving me mad!! all suggestions
    appreciated.

    Cheers,

    Mark.


    Mark Gibson Guest

  2. Similar Questions and Discussions

    1. Layers: Overlapping Layer with Flash over Flash, HELP!
      I am having a bit of a problem trying to overlap flash over flash with layers in dreamweaver. With layers, I can easily overlap html and images with...
    2. Flash and Layers
      Hi, I have a Flash movie in my page which is just below a scrolling layer on my page. This works fine until I go to edit the page in Contribute...
    3. Div layers and flash movies
      Hi on my html page i have a flash movie in a div layer, with its z-index set to 1, i have another div layer with a higher z-index value, but with...
    4. trying to open psd in director and keep layers ??
      hi. i am trying to open a photoshop file in director while preserving the layers as cast members. i cant afford photocaster but i found a solution...
    5. Layers and Flash
      Okay I need help bad. I have a site created with layers to organize the different areas. The top layer is the title of the page, and its 760x180....
  3. #2

    Default Re: director layers and flash

    I'm surprised your line:
    sprite("speakers_note").goToFrame("help03")
    works at all, as the goToFrame method is listed as working with sprite
    numbers, and neither sprite layers nor sprites themselves have names in
    Director (The cast member does). You should use:
    sprite(gFlashSpriteNum).goToFrame("help03")
    and make sure you set the gFlashSpriteNum variable to the layer number your
    flash movie is on - and then set it every time you change the sprite layer
    where your flash is.

    EdMX Guest

  4. #3

    Default Re: director layers and flash

    Mark,
    Do you mean you are using Director MX 2K4? Director MX doesn't support
    sprite naming. You could put the sprite number for the flash sprite into a
    variable if you are using MX. Like:
    global myFlashSpriteNum=4
    on mouseUp me
    Sprite(myflashSpriteNum).goToFrame("help03")
    end mouseUp me

    hth,
    Doug
    "Mark Gibson" <mail@frontside-nm.com> wrote in message
    news:c78d51$gbq$1@forums.macromedia.com...
    > hi guys,
    >
    > this is probably really easy but I have a little problem.
    >
    > I have a director mx movie with a flash movie on layer 1. I have put some
    > script on a director button to tell flash to go to a particular place,
    thus:
    >
    > on mouseUp me
    > sprite("speakers_note").goToFrame("help03")
    > end
    >
    > This works fine, but I want to move it to another layer so it appears
    > between different elements of the director file, but if it's on any other
    > layer than 1, I doesn't work and throws up the error:
    >
    > script error: Handler not found in object
    >
    > sprite("speakers_notes").goToFrame("Help03")
    >
    > #goToFrame
    >
    > Please can someone help as it's driving me mad!! all suggestions
    > appreciated.
    >
    > Cheers,
    >
    > Mark.
    >
    >

    Doug Golenski 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