Using Actionscript 2.0, Flash CS3 (don't know 3.0 and it's not necessary for this project, unless someone tells me otherwise). Zip file is attached.
Client wanted an image that would swap out for another image when the site user clicked on a thumbnail. I'm sure that it could have been created using Javascript, but I don't know JS; I do know how to do this in Flash.
I created a Flash file to the dimensions of the large image, then created six MovieClips with instructions similar to the Actionscript below:
createEmptyMovieClip("Photo01", 1);
Photo01.loadMovie("Photo01.jpg");
The "Photo01" text was changed as required for each MovieClip.
Three of them were "Photo" clips, three of them were "Thumbnail" clips. The idea was to load the images dynamically. This way, images could be changed by the client without having to re-create the Flash file. It also saves on file size, as embedding the images tends to bloat the Flash file horribly.
After placing the MovieClips in their proper places on the Stage, creating the buttons and other Actionscript, I tested it and it worked. I then duplicated the resulting .swf file ("Display.swf") and placed it into each directory intended to serve as data for each node, adding the three "Photo.jpg" and three "Thumb.jpg" files to the directories. Then I uploaded the directories to sites/default/files/galleries/.
I attempted to use SWF tools to place the files. The shape of the Flash file would appear (400x600) as an empty white box, but the animation would not.
I also attempted to place the SWF file using the Flash buttons in both TinyMCE and FCK Editor. I had to define the dimensions (advantage, SWF Tools), and still got the white box.
Just to make sure that it was an Actionscript issue, I uploaded a flat Flash file (no Actionscript) and placed it in a node, using SWF Tools. It worked.
It's possible I've put this issue in the wrong place, as this appears to be more of a core issue. But I'm hoping that someone inclined towards Flash will be more likely to offer me a solution here; or perhaps a module update will address this problem.
Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| hmt3design_Display.zip | 121.57 KB | hmt3design |