Article View: alt.pl.programy.flash-5
Article #471Re: Problem with defining variable in FLASH 5
From: P.W. te Lintel Hekkert
Date: Wed, 09 Jan 2002 11:56
Date: Wed, 09 Jan 2002 11:56
50 lines
2184 bytes
2184 bytes
Yeah!
Thanx! It works great know!
I am still a newbie you know! :-)
Greetz,
Peter
"Hubert Muller" <hubert@hubertmuller.com> schreef in bericht
news:3c39ef1e@news.vogel.pl...
> 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:
<a1hb60$gmm$1@reader06.wxs.nl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!skynet.be!skynet.be!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!newsfeed.wxs.nl!not-for-mailReferences:
<a1cpqq$q1m$1@reader05.wxs.nl> <3c39ef1e@news.vogel.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!skynet.be!skynet.be!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!newsfeed.wxs.nl!not-for-mail From: "P.W. te Lintel Hekkert" <peter.te.lintel.hekkert@planet.nl> Newsgroups: alt.pl.programy.flash-5 Subject: Re: Problem with defining variable in FLASH 5 Date: Wed, 9 Jan 2002 12:56:47 +0100 Organization: Planet Internet Lines: 52 Message-ID: <a1hb60$gmm$1@reader06.wxs.nl> References: <a1cpqq$q1m$1@reader05.wxs.nl> <3c39ef1e@news.vogel.pl> NNTP-Posting-Host: ip3e83ab4b.speed.planet.nl X-Trace: reader06.wxs.nl 1010577408 17110 62.131.171.75 (9 Jan 2002 11:56:48 GMT) X-Complaints-To: abuse@planet.nl NNTP-Posting-Date: 9 Jan 2002 11:56:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit