|
|
 |
Re: FN-FORUM flash 5 question
date posted 11th September 2002 15:47
Also if you are using Flash MX keep all your scripts in the first frame of
the top layer and direct them, so for example:
button.onPress = function{
variable = this
}
----- Original Message -----
From: "Chris Dawson" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Wednesday, September 11, 2002 3:36 PM
Subject: Re: FN-FORUM flash 5 question
> have you tried always referencing all your variables from the _root?
>
> it sounds like your variables only exist within *some* of your MCs but
> you're trying to reference those from other MCs.
>
> e.g. instead of "set button=3" always use "set _root.button=3"
>
> chris
> _______________________
>
> chris dawson
> ...[web design, concepts, consultancy, flash animation and scripting]
> http://www.tallhat.com
> phone 01225 445505
> mobile 07719 918251
> _______________________
>
> > From: Luke Cooper [EMAIL REMOVED]
> > Reply-To: [EMAIL REMOVED]
> > Date: Wed, 11 Sep 2002 15:04:00 +0100
> > 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]
>
>
> ============================================================
> = 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]
>
|
 |
|