Ask a Question related to Macromedia Director Basics, Design and Development.
-
Jason Wolfe #1
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
-
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... -
.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... -
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... -
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... -
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).... -
Andrew Morton #2
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
-
Mark A. Boyd #3
Re: Changing image on screen
"Jason Wolfe" <jason@infuselabs.com> wrote in news:bv3ccb$98h$1
@forums.macromedia.com:
An alternative method would be to import the "NoPhoto" image as linked.> 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...
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



Reply With Quote

