Professional Web Applications Themes

2147196928 on loadFile - Macromedia Director 3D

I've done some googling and found out that error -2147196928 means you're trying to clone a model from a cast member that hasn't loaded yet -- but I don't even use that function, the error happens to me when I try and use the loadFile function to import external w3ds. What should I be doing to prevent this from happening?...

  1. #1

    Default 2147196928 on loadFile

    I've done some googling and found out that error -2147196928 means you're
    trying to clone a model from a cast member that hasn't loaded yet -- but I
    don't even use that function, the error happens to me when I try and use the
    loadFile function to import external w3ds. What should I be doing to prevent
    this from happening?

    RavenWorks Guest

  2. #2

    Default Re: 2147196928 on loadFile

    2147196928 means media not ready
    Check if state = 4 for each loaded / cloned / new member before use it.
    necromanthus Guest

  3. #3

    Default Re: 2147196928 on loadFile

    So, once I do 'member("universe").loacFile("external.w3d"), member("universe").state will be set to someting other than 4 until it's finished loading the new file?
    RavenWorks Guest

  4. #4

    Default Re: 2147196928 on loadFile

    you need to wait until member('universe') is at state 4 (or -1, error) before
    doing loadfile(). check out the loadFile() and state() pages in help.

    // wait until member is fully loaded
    if (member('universe').state != 4)
    {
    _movie.go(_movie.frame);
    }
    // do load
    member('universe').loadFile(.....);

    it's a good idea to put that if statement in all your w3d pieces. i always
    start with:

    // wait until member is fully loaded
    if (member('w3dmember').state != 4)
    {
    _movie.go(_movie.frame);
    }
    // reset member
    member('w3dmember).resetWorld();

    before i do anything else with the w3d member.

    Ex Malterra Guest

Similar Threads

  1. loadFile don't work??
    By MonopoliAlex in forum Macromedia Director 3D
    Replies: 3
    Last Post: September 29th, 09:48 AM
  2. loadfile error
    By mickybhai in forum Macromedia Director 3D
    Replies: 1
    Last Post: June 30th, 07:21 AM
  3. the nightmare that is loadfile()
    By mufc 1974 in forum Macromedia Director 3D
    Replies: 2
    Last Post: February 17th, 12:10 AM
  4. About loadfile()?
    By WrongAgain in forum Macromedia Director 3D
    Replies: 1
    Last Post: November 24th, 01:51 PM
  5. loadfile
    By olavi Lappalainen in forum Macromedia Director 3D
    Replies: 1
    Last Post: November 15th, 08:47 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