|
|
 |
RE: FN-FORUM flash 5 question
date posted 11th September 2002 15:49
put "_root.button=2" to set the button variable at the root level.
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] Behalf Of Luke Cooper
Sent: 11 September 2002 15:04
To: [EMAIL REMOVED]
Subject: FN-FORUM flash 5 question
Could any body help ,this is driving me crazy.
I want to control one MC using buttons in another MC both placed on the
main movie timeline.
The MC I want to control is a series of text blocks which go from 0%
alpha to 100% and back to 0% each one running one after the other on the
MC timeline.
The first part of the MC has a stop where the first block is 100% , from
this point I want the buttons in the other MC to start the MC playing
from this 100% alpha point, ( I can do that) go to the 0% point (I can
do that) and then DEPENDING of which button was pressed then go to the
appropriate place in the timeline where another text block will fade up
from.
I haven't been using actionscript for long but what I have put in the
button is
on (release) {
_root.otherMC.play();
button = 2;
}
I have multiple buttons each setting a different value ( or that's the
intention anyway) so hopefully the targeted MC will go to different
labels .
then in the frame on the text block MC where the text block has faded
to 0% I have put
if (button=2) {
gotoAndPlay ("web");
} else if (button=3) {
gotoAndPlay ("domain");
}
the desired effect being the text block fades out then the mc begins
playing at the appropriate key frame where a different text block will
fade in from 0% to 100%.
Amongst other problems I don't think I'm getting the text block MC to
recognise variables created on other timelines.
Please Help if you can I will gladly email a FLA if somebody knows how
to sort this.
I realise I could create this effect by loading and unloading SWFs, but
having got this far I would like to find out how I finish it off.
Cheers
Luke
============================================================
= Advanced web hosting solutions from Saffas. =
= Unix, PHP, mySQL, SSL, Perl, Control Panel, 24/7 access. =
= Why pay more for less? http://www.saffas.com =
============================================================
Sponsor the forum for as little as #1 at:
http://www.freelancers.net/cgi/sponsor.cgi?action=show
Advertise with Freelancers.net +Additions+
http://www.freelancers.net/advert.php
Freelancers and Freelance Jobs:
http://www.freelancers.net
Forum FAQs:
http://freelancers.netrickery.com
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
|
 |
|