Hi Guys,
Am working on this site at the moment…
[URL=“http://www.mwis-web.co.uk/newz/”]
http://www.mwis-web.co.uk/newz/
If you make your way to the celebs tab, you will see a list of celebs which by clicking on change the image alongside - sample of this code is below…
_root.image_cont.contentMain.c0.text_hold.text = "Shane Filan (Westlife)";
_root.image_cont.contentMain.c0.onRollOver = function() {
_root.image_cont.contentMain.c0.gotoAndPlay("off");
_root.image_cont.contentMain.c0.onRollOut = function() {
_root.image_cont.contentMain.c0.gotoAndPlay("on");
};
_root.image_cont.contentMain.c0.onPress = function() {
_root.image_cont.gotoAndPlay(109);
_root.image_cont.celeb.img.loadMovie("img/celeb/c0.jpg");
_root.image_cont.celeb.lineani.gotoAndPlay(1);
};
};
pretty simple AS, the celeb names are just a movieclip duplicated and given an instance name… then all hardcoded into the AS.
The client now wants this area updatable via a PHP/MYSQL CMS…I know the logic but am really going to struggle with the AS.
My logic is…
- Import Variables via a PHP file
- Create An Array of the celebs (image name and celeb name)
- Create a blank movie clip to hold a single celeb
- Create a loop which duplicates the celeb name movie clip and places it under itself, using my as from above in the loop as well…
Am i right and where the hell do i start!?
ta muchly.