Flasher Archive

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


Subject: Re: FLASH: Help with increment
From: Gregg Caines
Date: Wed, 27 Dec 2000 19:37:23 GMT

It sounds like you've answered your own question! I'd put it in the first
frame of the main timeline (varname = 0;) so it can be accessed from
anywhere as _root.varname . Just put ++_root.varname anywhere you
want to increment it (like in your hittest handler) and you'll count the
pieces correctly.

HTH

---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesatneometrixsystems [dot] com

> Hi all
>
> I have a problem, I have a 24 piece jigsaw which all works fine with the
> bits snapping into place as the result of a hitTest. There is no problem
> with that. However I want to have an action caused by the last bit being
put
> into place. The bits can go in any order so the only way I can see to do
> this is to have a variable that increments everytime a bit is put into the
> correct position. Once in the correct position they cannot be moved again
so
> as soon as the variable reaches 24 I could have the movie goto the next
> scene or whatever. The problem is that I cannot seem to set this up. Where
> should the variable be declared, in the main timeline in the 1st frame?
then
> in the code for every dragable MC (puzzle bit) have it increment the
> variable by 1 on a true hitTest. If this is right so far then it is the
> syntax that I am having trouble with. Or is my idea the totally incorrect
> way to do this.
>
> Thanks for sparing the time to read this and thanks if you decide to help
>
> Andrew Le Sage



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save 200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Help with increment, Andrew Le Sage

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