|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Trying to Dynamically Create Thumbnails...Help...
I have a problem.. What I am trying to accomplish is to load the images to copies of thumbMC on the root timeline. I can make the thumbnails with the following script:
// Just placeholder until I get the reading from textfile down.. image1 = "fa14.jpg"; image2 = "fa24.jpg"; image3 = "fa138.jpg"; totimage = 3; // Duplicate thumbnail as long as there are image variables i = 1; while (i<=totimage) { duplicateMovieClip("thumbMC", "t"+i, i); this["t"+i].loadMovie("icon_"+eval("image"+i)); // Position this["t"+i]._x = ((i*200)+20); i++; The thumbMC is a instance on the stage of a movie clip with a button already embedded in it. The button has script attached to load an emptyMovieClip "Container" on the stage. (This code is not included in the above). The problem is when I use loadMovie to place the thumbnail image into the thumbMC, it erases the button that was in the orignal thumbMC. Is there anyway to keep the invisible button in the movieclip after I load the jpg thumbnail to it? Or will I have to load a copy of the button separately (using similar code from above) to another level? Thanks in advance for any help you can give. DJCheetah |
|
#2
|
|||
|
|||
|
I thought loadMovie replaced the contents of the target movie with whatever you load. You can deal with this by adding another layer to your animation and place a blank movie in there. Then replace that movie with loadMovie instead. Make sure to place this new layer underneath the invisible button layer so that the button is still clickable/reachable.
hope this helps -Tann |
|
#3
|
|||
|
|||
|
Thanks for the help...
It works by adding another empty movie clip "holder" and loading the jpg into thumbMC.holder.loadMovie("image1.jpg). Works good. Thanks, DjCheetah |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Trying to Dynamically Create Thumbnails...Help... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|