Hi there,
I’ve built a photography portfolio-site for my boss, using Flash 8 and XML.
You start out with a list of categories. Pick one and get a filmstrip with thumbnails, and a grey square (placeholder kinda thingy). Click on a thumbnail and the grey square is replace by a picture.
The grey square is inside a MovieClip together with a “loading…” movie. Both are centered on the 0,0 mark of the MovieClip. The MovieClip is centered to the stage (a bit higher though). The picture is loaded instead of the grey square, but ends up with it’s upper left corner on the 0,0 mark of the MovieClip. So I added the following code:
_root.picMovie.pic._x = -(_root.picMovie.pic._width)/2;
_root.picMovie.pic._y = -(_root.picMovie.pic._height)/2;
And this worked fine, until tested it on a MAC. Both Internet Explorer and Safari simply do not excecute the code, or at least so it seems. The images end up with their upper left corner on the 0,0 mark of the MovieClip.
Can anyone tell me what to do? You can look at it at www.eurovoice.nl/foto or download the files at [url=“http://www.eurovoice.nl/foto/photoalbum.zip”]www.eurovoice.nl/foto/photoalbum.zip.
The code is in the FotoButtonMovie clip in the library. Then find the code on the button on the top most layer.
It fades the grey square or the previous image out, loads the new image, when it is fully loaded move it to the center and start fading it in.
Any other comments are very welcome, by the way. I’m still pretty new at this, and can use all the help I can get.
Thanks in advance!
Yours,
Andra