Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Loop within MC?
From: Jonathan Kemp
Date: Fri, 10 Mar 2000 17:26:47 GMT

You wrote:

> I am trying to set an MC to loop 3 times but not all the frames.
>
> I have a label at frame 5 labelled "blue" and a loop action at frame 15
> would like it to loop for 3 times and then go to the next frame which has
> a stop action [frame 16].
>
> Is this possible?
>
> The action I've written so far doesn't seem to work:
>
> Set Variable: "count" = "1"
> Loop While (count <=3)
> Set Variable: "count" = "count +1"
> Go to and Play ("blue")
> End Loop

The problem with your original script was that you have quotation marks
around the number 1 and count + 1. Quotations around a value indicate a
string literal. The values for the variables you are setting should be
numbers therefore need to be expressions instead of string literals. Leaving
out the quotations identifies them as expressions. Does that make sense?

So the fix I suggested originally fixes that part of the problem. This leads
me to believe that the real problem lies elsewhere. The problem is that
every time it reaches frame 15 it resets the count variable to 1 and never
plays frame 16. This is what you need:

Set Variable: "counter" = counter + 1
If (counter <= 3)
Go to and Play ("blue")
End If

That should work.

HTH,

Jonathan


----- Original Message -----
From: "Jefferis" <Jefferisatpathway [dot] net>
To: "Flash MailList" <flasheratchinwag [dot] com>
Sent: Friday, March 10, 2000 1:14 AM
Subject: Re: FLASH: Loop within MC?


> Jonathan Kemp
>
> >Try this:
> >
> >Set Variable: "count" = 1
> >Loop While (count <=3)
> > Set Variable: "count" = count +1
> > Go to and Play ("blue")
> >End Loop
> >
> >You have expressions set as string literals.
> >
> >----- Original Message -----
>
> I tried it but it became and endless loop:
> Set Variable: "count" = 1
> Loop While (count <=3)
> Set Variable: "count" = count +1
> Go to and Play ("blue")
> End Loop
>
>
>
> Jefferis Peterson, Pres.
> Web Design and Marketing
> http://www.PetersonSales.net
> Tel & Fax. 724-458-7169
>
> ICQ 19112253
>
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World's Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
> -Register before Feb 25 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
>
>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Timer To Play If Next Button Not , JGL

Replies
  Re: FLASH: Loop within MC?, Jefferis

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]