Skip to main content
Inspiring
March 21, 2008
Question

Need help with scipting

  • March 21, 2008
  • 8 replies
  • 1005 views
Referring file: http://www.jdawgdesign.com/gd/employee.swf

This file is not complete by any menas, but gives the idea of what I want to accomplish. The photos will be fading in and out at random intervals. Each Photo needs to be "clickable." Once clicked a larger photo of the thumbnail will appear on top of the movie (in the middle) while the movie is playing in teh background. When the user clicks the photo "close button" it will close and movie never skips a beat.

I tried making each photo a button and adding an action to open a frame label with the large photo. However, I didn't get far. Desparately need some help. Thanks in advance!
This topic has been closed for replies.

8 replies

Inspiring
March 22, 2008
I know enough but not everything – I don’t need to hire someone and I don’t need someone to write the code for me - UNLESS you can privide a fair price. :D But I really want to learn....

Let’s try this again:
I have already scripted the fading – that’s easy.

I have a time line with frame labels – again easy.

I have already made all the photos into buttons – can I say easy?

What I need help with is applying an action to the photo so that when you click on the photo a large one pops up.

James, I DO appreciate your willingness to help. I will try to comprehend what you've written but I thought just maybe there was an easier way and is why I'm reposting.

Here is a screen shot of the hiearchy, maybe this will help??

http://www.jdawgdesign.com/gd/sshot.gif
Participating Frequently
March 22, 2008
By using the timeline I meant not having random animation, only a long loop. However, I do agree, it is quite a simple project, but all I posted were a few lines of drawing API code and event listeners - if you are confused by that you still need to learn the basics of ActionScript.
kglad
Community Expert
Community Expert
March 22, 2008
using the timeline for that would be even more complex. i can't feature how you could arrange for thumbs to appear at random grid positions using the timeline unless you had a main timeline keyframe for every grid arrangement possible. and that would be time-consuming beyond reason.

by comparison, coding for that effect is simple. actually, coding that entire project isn't difficult. but it's certainly beyond the ability of anyone that is overwhelmed by the code you left, Jamesabth.
Participating Frequently
March 22, 2008
Well - If you are using the timeline and not doing random animation it won't take much more code otherwise kglad is right - we can't just script your entire project!
kglad
Community Expert
Community Expert
March 22, 2008
the coding for the application you referenced with your link would need to be quite a bit more complex than the code supplied by Jamesabth.

you'll need to code for the fading and for the randomization of thumbnails appearing in each square. coding the randomization of thumbnails alone is significantly more complex than the code supplied by Jamesabth.

you should be prepared to spend considerable time learning actionscript or you should hire someone else to do this project.
Participating Frequently
March 22, 2008
>>Thanks, Jamesabth. But that's all greek to me.

PS - Sorry, I happen to speak ancient and modern Greek - perhaps that makes me go too fast sometimes! ;)
Inspiring
March 22, 2008
Thanks, Jamesabth. But that's all greek to me. I was hoping for a simple code to apply to each button and to be told where to put the scene's buttons and files, etc.. I'm sorry but don't even know what to do with this code or where to put it.
Participating Frequently
March 22, 2008
With this code all you should have to do is duplicate the three lines of code in the "DUPLICATE FOR ALL YOUR THUMBNAILS" section and make sure all of your thumbnails are movieclips.
kglad
Community Expert
Community Expert
March 22, 2008
where are the photos? inside your flash file or outside?
Inspiring
March 22, 2008
All photos (large ones not seen) are imported to my library. Each thumbnail photo (as seen) is a button symbol.
Participating Frequently
March 22, 2008
I would suggest making the buttons into movieclips so that you can add an imgURL property to store the url of the thumbnail's large image. See the following code for some ideas - i'm using thumbnail_btn as an example thumbnail.