Professional Web Applications Themes

how to use Flash animation as overlay? - Macromedia Director 3D

I am trying to make a kaleidoscope appear in an overlay when the user clicks on a model in my 3D world. The kaleidoscope is an animation I created in Flash. Everything works except that the Flash movie, "egg_1" in the code below, is static rather than rotating as it should. This is the code I've tried: on mouseUp me clickLocation = the mouseLoc - point(sprite(me.spriteNum).left, sprite(me.spriteNum).top) clickedModel = sprite(me.spriteNum).camera.modelUnderLoc(clickLoc ation) case clickedModel of wallModel: kaleidoscope1 = gWorld.newTexture("kaleidoscope1", #fromCastMember, member("egg_1")) gWorld.camera[2].addOverlay(kaleidoscope1, point(100,15),0) Can anyone suggest a way to get the Flash movie to play? Thanks in advance for your help....

  1. #1

    Default how to use Flash animation as overlay?

    I am trying to make a kaleidoscope appear in an overlay when the user clicks on
    a model in my 3D world. The kaleidoscope is an animation I created in Flash.
    Everything works except that the Flash movie, "egg_1" in the code below, is
    static rather than rotating as it should. This is the code I've tried:

    on mouseUp me

    clickLocation = the mouseLoc - point(sprite(me.spriteNum).left,
    sprite(me.spriteNum).top)
    clickedModel = sprite(me.spriteNum).camera.modelUnderLoc(clickLoc ation)

    case clickedModel of
    wallModel:

    kaleidoscope1 = gWorld.newTexture("kaleidoscope1", #fromCastMember,
    member("egg_1"))
    gWorld.camera[2].addOverlay(kaleidoscope1, point(100,15),0)


    Can anyone suggest a way to get the Flash movie to play? Thanks in advance
    for your help.

    sojourner146 Guest

  2. #2

    Default Re: how to use Flash animation as overlay?

    You have to put the Flash-Member on the Stage, set it's directtostage property
    to false, and copypixels the image from the stage. When you make the Flash
    Sprite 128x128 it can work quite fast.

    Generate a new texture with #fromimageobject and then assign to this texture
    the new image that you get via copypixels from the stage. You can put the
    flash-sprite behind the 3D-Sprite to make it invisible.

    hondo3000 Guest

  3. #3

    Default Re: how to use Flash animation as overlay?

    This sounds good to me but I'm still a little shaky about using imaging Lingo
    so It'll take me a bit more time to check it out properly. Thank you for
    providing me with a direction to go in.

    I did check out MIAWs in the meantime as an alternative way to do what I
    wanted and got that to work. Is there any major advantage to overlays versus
    MIAWs in this kind of use? Offhand it seems as if MIAWs can 'talk' to the main
    movie more readily.

    sojourner146 Guest

Similar Threads

  1. How do i close a flash overlay ?
    By vron55 in forum Macromedia Flash Ad Development
    Replies: 2
    Last Post: August 21st, 10:07 PM
  2. Flash overlay question
    By Richard.B in forum Macromedia Director 3D
    Replies: 2
    Last Post: May 17th, 09:57 AM
  3. Quictime and flash overlay
    By I R Godzilla webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 3
    Last Post: October 30th, 03:53 PM
  4. Drag/Drop with transparent Flash animation (flash 5 vs mx)
    By Niel Drummond in forum Macromedia Flash
    Replies: 0
    Last Post: October 14th, 09:28 PM
  5. Replies: 2
    Last Post: September 25th, 06:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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