Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Need help placing images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JohnnyBighead - 03 Jul 2008 02:30 GMT
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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.