To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-23-2007, 09:44 AM   #1
adamcrohill
Senior Member
 
Join Date: Jul 2005
Location: Birmingham, England
Posts: 124
[F8] cant think of a suitable title but i need some help

I have a few movie clips on the stage that on rollover play to the end of the clip and then stop.

once the user has rolled over all the movie clips, i want the user to automatically be sent to frame 10 (for example)

the thing is - i want the original movie clips to be rolled over in any order and once the final one has been rolled over - then the next action happens.

I imagine that what i need to do is have each movie clip send a "signal" out and have a listener that waits until its heard all the "signals" (in any order) before its action is triggered.

can anyone provide me with a solution to this?
adamcrohill is offline   Reply With Quote
Old 04-23-2007, 12:17 PM   #2
layerburn
Senior Member
 
layerburn's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 541
I'm sure there's an easier/better way to do this with actionscript, but here is a rough way to do it without too much script. I've attached an example .fla file for you. I didn't know what version of flash you're running, I'm using
Flash 8. Let me know if you need me to save out to an earlier version. Hope this helps with your project.
__________________
This is your brain. This is your brain on script.

Last edited by layerburn; 08-28-2007 at 07:16 PM.
layerburn is offline   Reply With Quote
Old 04-23-2007, 01:01 PM   #3
adamcrohill
Senior Member
 
Join Date: Jul 2005
Location: Birmingham, England
Posts: 124
cool, and thanks very much - i will et you know how i get on. I am using flash 8 too - [F8]
adamcrohill is offline   Reply With Quote
Old 04-23-2007, 01:13 PM   #4
adamcrohill
Senior Member
 
Join Date: Jul 2005
Location: Birmingham, England
Posts: 124
i had a look at your proceed.fla and it is not quite how i need it to work - in your example it forces you to roll over the shapes in a set order. I want the user to be able to roll over the shapes in any order and for the last shape they roll over to send them to frame ten.

I adapted your proceed.fla to allow the shapes to be rolled over in any order, but as soon as you roll over the green square it sends you to frame 10. i need the last square you roll over to send you to frame 10, regardless of which one it is....
adamcrohill is offline   Reply With Quote
Old 04-23-2007, 02:03 PM   #5
layerburn
Senior Member
 
layerburn's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 541
Ok, i got it figured out. Sorry bout that, i misunderstood that you wanted to be able to rollover them in any order. This should be what you're looking for hopefully.
__________________
This is your brain. This is your brain on script.

Last edited by layerburn; 08-28-2007 at 07:16 PM.
layerburn is offline   Reply With Quote
Old 04-23-2007, 03:05 PM   #6
adamcrohill
Senior Member
 
Join Date: Jul 2005
Location: Birmingham, England
Posts: 124
brilliant - that looks like just the ticket - although i havn't got time to try it out for myself at the moment. Thank you so much for your help!!
adamcrohill is offline   Reply With Quote
Old 04-23-2007, 07:38 PM   #7
adamcrohill
Senior Member
 
Join Date: Jul 2005
Location: Birmingham, England
Posts: 124
works like a dream
adamcrohill is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:25 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.