Changing image on screen

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

  1. #1

    Default Changing image on screen

    Hello,

    I have a place holder image on the screen (in the score) called "noPhoto".

    I have a folder with about 10000 images in it. when the user selects
    certain criteria, I need to display the correct image. there are obviousle
    to many images to import all of them, so I was thinking that the following
    command would be most appropriate...

    importFileInto member "NoPhoto",the MoviePath&newImageName

    this works once, but then the member name is changed from "NoPhoto" to
    whatever the new image name is, then I get cast member not found next
    time...

    what is the proper way to handle this? Please help, as this project is due
    and I'm not understanding what is the best way to solve this problem.


    --



    Jason Wolfe
    InfuseLabs



    Jason Wolfe Guest

  2. Similar Questions and Discussions

    1. Background color keeps changing in full screen view
      I have created an interactive catalogue with pseudo off-page navigation in InDesign. I have made the Indesign background colour black to blend...
    2. .eps image looks awful on screen.
      I'm mostly an InDesign and Photoshop user. I dabble in Illustrator on occasion. Here is my problem. I have created a logo in Illustrator and...
    3. changing screen res
      Hi, I am using an Xtra for changing the screen res of a user's machine. The Xtra has always worked well but on this occasion I need to jump to...
    4. Changing Screen Resolution
      Hi, I want my project to change the resolution of the computer it is being viewed on to the resolution it looks best in. I have been told about xtras...
    5. Changing Solaris 7 Splash screen...
      Hi, We are trying to change the Solaris 7 splash screen (CDE) to something of our own choosing (in this case, a government warning screen)....
  3. #2

    Default Re: Changing image on screen

    Store the name and reset it once the image is imported:-

    mem=member("NoPhoto")
    memName=mem.name
    mem.fileName=the MoviePath & newImageName
    mem.centerRegPoint=true
    mem.name=memName

    I set centerRegPoint because it can "wander". Well, maybe it's been fixed since
    D7.0.2 but I'd rather not trust to luck. I found with D7.0.2 that the member's
    name was only changed in authoring mode; there is a sort of sense in that.

    Andrew

    Andrew Morton Guest

  4. #3

    Default Re: Changing image on screen

    "Jason Wolfe" <jason@infuselabs.com> wrote in news:bv3ccb$98h$1
    @forums.macromedia.com:
    > importFileInto member "NoPhoto",the MoviePath&newImageName
    >
    > this works once, but then the member name is changed from "NoPhoto" to
    > whatever the new image name is, then I get cast member not found next
    > time...
    An alternative method would be to import the "NoPhoto" image as linked.
    Then you can simply set the fileName property of the image as needed:

    member("noPhoto").fileName = the moviePath &"whatever.jpg"

    Andrew's centerRegPoint advice may apply here, too.


    --
    Mark A. Boyd
    Keep-On-Learnin'
    Mark A. Boyd 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