How do I Allow User to Create Media Cast Members

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

  1. #1

    Default How do I Allow User to Create Media Cast Members

    Hi,

    I am new to the forum, my name is Kieron from Stafford, England. I am a full time Interactive Multimedia Communication degree student.

    Lingo is not my strongest subject, but I have three Director projects to complete over Christmas! A prototype for a game I have designed, an album with video clips, pics etc, and a team project of a training utility for deaf children. Not to mention a few web sites thrown in for good measure! Happy Christmas to me hey?

    As I occasionaly would like to see my wife and child, I am hoping to get some help off you kind people if you are not too busy enjoying yourselves throughout the festive season. Please feel free to throw any humour or Christmas cheer my way as I could do with some light hearted relief along the way.

    My first of probably many queries is this;

    In my album / diary how do I get a user to define a cast member?

    All my diary data is stored in lists and I know how to allow the user to add text entries, but I have yet to understand how to let them add media.

    My preset list entries have media (images and AVI files) which are linked to a sub folder "Media" in my directory and stored as cast members.

    On an add user movie clip / image option I am presuming I can;

    --open a dialog box using the FileIO or MUI Xtra and then
    --allow only specified file types
    --count the number of existing cast members
    --import the selected media as a cast member? OR link somehow
    --Am I on the right track?

    It's all volatile
    I dream of my user data being none volatile, as all of my applications so far are totaly useless! But to be honest it's not expected of me yet as we just haven't even touched on permanent databases yet. Unless there is a really easy way to export list and global data in Director 8.5 (that's what we're using) then as much as I would like to shine in my year - I just haven't got the time to go there or the money for Xtras.

    Thank you so kindly for taking the time to think about not helping me!

    Kieron




    kx10 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. cast members moved in cast - neet to get htem back!!!
      Hello I inadvertedly pasted a cast member into my cast and it bumped the rest of the members one number forward, screwing up my lingo all over the...
    2. lost cast members
      A whole set of internal cast members created in the paint window have disappeared. The names are still in the cast locations and the property...
    3. run one of cast members ?!!
      hi all, I want to run an *.exe file that has been placed in my cast member. for example I added "mario.exe" in my cast member, now I want to...
    4. changing cast members
      I hope you guys can understand what i'm about to write here: I created a button(I called it BUTTON A) and a display box(i called it DISPLAYBOX);i...
    5. Too many cast members
      what exactly is "too many"? as far as I know cast-size is unlimited and only constraint to memory and/or disk size. I remember having used...
  3. #2

    Default Re:How do I Allow User to Create Media Cast Members

    Welcome to the forum.


    What you can do instead of importing is to create a new member of the appropriate type using
    the new command:
    new(type, member whichCastMember of castLib whichCast)
    Don't forget to remember the number or id of this new member, because you need it along the way.
    (see director help for info on the types.)
    Then you do the dialog with fileio or filextra.
    You get the filename.
    Now you can set the filename of the member to the filename retreived from the dialog
    (member([x]).filename = [path]

    goodluck





    J O R I S webforumsuser@macromedia.com 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