all groups > flash (macromedia) > december 2006 >
You're in the

flash (macromedia)

group:

Dynamically Display Symbol


Dynamically Display Symbol Donjworks
12/7/2006 9:50:40 PM
flash (macromedia): Hello,

Ive been trying, and trying but it wont work. I have some actionscript, and
when a user presses a button, some text appears dynamically on the stage, and I
want an image to go along with it. I don't want the button to go to another
frame inwhich the image appears, because there are multiple buttons, and
multiple images.... to many combinations. So, how can i do this?

Thanks,

Donald
Re: Dynamically Display Symbol finalcutexpress
12/8/2006 12:00:00 AM
I would do it this way ...

this.createEmptyMovieClip("myMovieClip_mc", getNextHighestDepth());

if (txtbx1 == "Scissors") {
myMovieClip_mc.loadMovie("nameOfImageToLoad");
}

// nameOfImageToLoad is the file that you are calling into the newly created
// movie clip "myMovieClip". The file to be called in must reside in the root
// folder of your movie or you must alter the path to direct Flash to it
// ie subFolder/subSubFolder/nameOfImageToLoad

Re: Dynamically Display Symbol Donjworks
12/8/2006 2:58:25 AM
Update here,

I want the image displayed depending on a dynamic text box's content,

EX:
if (txtbx1 == "Scissors") {
Display the Image
}

AddThis Social Bookmark Button