Article View: alt.pl.programy.flash-5
Article #470Re: Problem with defining variable in FLASH 5
From: Hubert Muller
Date: Mon, 07 Jan 2002 18:51
Date: Mon, 07 Jan 2002 18:51
33 lines
1773 bytes
1773 bytes
Użytkownik "P.W. te Lintel Hekkert" <peter.te.lintel.hekkert@planet.nl>
napisał w wiadomości news:a1cpqq$q1m$1@reader05.wxs.nl...
> Hello!
>
> I want to create the following:
>
> I have 5 buttons in my menu. When button 1 is pressed, the variable
"choice"
> must become 1. The other 4 buttons result in "choice" is 2,3,4 or 5.
>
> Then further down the movie I want to check the value of "choice" --> if
> "choice" is 1 then a certain then gotoandplay goes to the label "choice1"
> and so on for 2,3,4 and 5.
EHLO,
Look at this:
button =5;
if (button = 1) trace ('*');
trace (button)
And this:
button =5;
if (button == 1) trace ('*');
trace (button)
:-) You must use == (two times =) for logical equation and =(one =) for
assignment. This is fundamental rule of all modern languages :-)
regards,
mrv
Moze i angielski nie najlepszy ale chyba skumal o co chodzi :-)
Technical Details
Message-ID:
<3c39ef1e@news.vogel.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.vogel.pl!nnrpReferences:
<a1cpqq$q1m$1@reader05.wxs.nl>Show Full Headers
Complete Article Headers
From: "Hubert Muller" <hubert@hubertmuller.com> Newsgroups: alt.pl.programy.flash-5 References: <a1cpqq$q1m$1@reader05.wxs.nl> Subject: Re: Problem with defining variable in FLASH 5 Date: Mon, 7 Jan 2002 19:51:57 +0100 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: pa9.nowa-wies.sdi.tpnet.pl X-Original-NNTP-Posting-Host: pa9.nowa-wies.sdi.tpnet.pl Message-ID: <3c39ef1e@news.vogel.pl> X-Trace: news.vogel.pl 1010429726 pa9.nowa-wies.sdi.tpnet.pl (7 Jan 2002 19:55:26 +0100) X-Complaints-To: Usenet@news.vogel.pl Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.vogel.pl!nnrp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit