Professional Web Applications Themes

backdrops URGENT - Macromedia Director 3D

Hi, I have the scripting: on startmovie t3 = member("sound").newTexture("backdrop7", #fromCastMember, member("blue backdrop")) t4 = member("back").newTexture("backdrop8", #fromCastMember, member("blue backdrop")) t5 = member("quit").newTexture("backdrop9", #fromCastMember, member("blue backdrop")) member("sound").camera[1].addBackdrop(t3, point(0, 0), 0) member("back").camera[1].addBackdrop(t4, point(0, 0), 0) member("quit").camera[1].addBackdrop(t5, point(0, 0), 0) end to add a backdrop to my 3d sprite castmember, but it's causing playback problems. this is currently attatched to the startmovie handler, but this means it comes up with an error everytime i stop and start it (unless i close the project and re-open it). The projector file wont even attempt to open it! Can anyone tell me where i should be ...

  1. #1

    Default backdrops URGENT

    Hi, I have the scripting:
    on startmovie
    t3 = member("sound").newTexture("backdrop7", #fromCastMember, member("blue backdrop"))
    t4 = member("back").newTexture("backdrop8", #fromCastMember, member("blue backdrop"))
    t5 = member("quit").newTexture("backdrop9", #fromCastMember, member("blue backdrop"))
    member("sound").camera[1].addBackdrop(t3, point(0, 0), 0)
    member("back").camera[1].addBackdrop(t4, point(0, 0), 0)
    member("quit").camera[1].addBackdrop(t5, point(0, 0), 0)
    end

    to add a backdrop to my 3d sprite castmember, but it's causing playback problems. this is currently attatched to the startmovie handler, but this means it comes up with an error everytime i stop and start it (unless i close the project and re-open it). The projector file wont even attempt to open it!
    Can anyone tell me where i should be pasting this scripting, or have any other ideas on what may help. Many thanks. I need this really soon......


    jellyfishjam webforumsuser@macromedia.com Guest

  2. #2

    Default Re: backdrops URGENT


    Hello,

    For instance, the error you get has nothing to do with the location of your code.

    Actually, the existing code tries and create textures that already exist because they are still in the W3D when you restart. You must check for the existence of a texture before creating it. If it does exist, you reference it. If it doesn't, you create it:

    if voidP(member("scene").texture("name")) then
    texture1 = member("scene").newTexture("name", #fromCastMember, member("name"))
    else
    texture1 = member("scene").texture("name")
    end if

    Best regards,
    Karl.



    Newt99 webforumsuser@macromedia.com Guest

Similar Threads

  1. backdrops
    By John_Everist in forum Macromedia Director 3D
    Replies: 3
    Last Post: October 12th, 10:01 PM
  2. Need Help Most Urgent
    By wicrd in forum Web Design
    Replies: 5
    Last Post: August 13th, 12:49 PM
  3. need urgent php help lz help me
    By richarro123 in forum PHP Development
    Replies: 2
    Last Post: May 24th, 02:25 PM
  4. Urgent Help Please
    By kunju webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 8
    Last Post: November 13th, 02:21 PM
  5. Animating Backdrops
    By Zafada webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: August 17th, 10:46 PM

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