Hey everybody hows it going? Any help you could give me would be greatly
appreciated!
Here is my problem. I am working off a template and have been able to do
everything I want so far but ive run into a problem. Check my site to follow
along Shine MediaHouse. Whenever the user clicks on About, Services or Contact
a random image appears along with the background on the corresponding page. I
need to be able to link it to a specific image. I found the action for the
random sequence and it reads as follow,
(_root.link !== 3) {
_root.pic_num = (Math.ceil(Math.random()*105));
Anybody know a way to fix my problem? It probably is really simple I just have
no clue.
Any help would be greatly appreciated!!!
whodeee05 - 03 Jul 2008 20:09 GMT
you would change this line:
_root.pic_num = (Math.ceil(Math.random()*105));
to:
_root.pic_num = *whatever pic number you want to show*
There must be an xml file or movieclips in your library that are being
accessed by the variable pic_num
JohnnyBighead - 03 Jul 2008 22:11 GMT
This is a perfect answer. I am now able to specify what number image from an
array of images. Now, is there a way to specify different photos for the three
different buttons?
I am thinking that is what the
if (_root.link !== 3)
piece is about.
Any thing would be great!!!
Thanks!
I can post the fla file somewhere if that would help!