Flasher Archive

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


Subject: Re: FLASH: Flash4: more efficient method?
From: Cheri Harder
Date: Thu, 16 Mar 2000 01:30:53 GMT

Hi, Bob.

I didn't exactly make it very clear here, did I. Sorry. Yes, n is just a
counter, and we're using it to give the new duplicated mc's their own,
unique instance names so we can tell-target and change their properties,
etc.

In the code:

> > > Set Variable: "/:n" = /:n+1
> > > Duplicate Movie Clip ("/mcCell", "cell"&/:n, n)
> > > Set Property ("cell"&/:n, Rotation) = Random (360)
> > > Set Property ("cell"&/:n, Alpha) = Random (30)+70


the old movie clip is named mcCell
the new one is named cell1 and it's z-order is 1
when you are setting it's properties of Rotation and Alpha, etc., you need
to do so by referring to its name as an expression - ie. "cell"&/:n

You'll need a loop and a stopping place, too. It would be easier if the
action were in a little two-frame movie clip, if it's not too hard to move,
then you can simply add an action to frame two that says "go to and play
frame 1" and there will be your loop. As for the end, the sample I was
pulling from was a starfield/planet simulation and simply re-set n to 0 when
it reached 1000, because it was an on-going thing, and the stars and planets
were going off screen so we always needed new ones. In your case, you might
want to have something like

If n > 100
stop
end if

Not only was my prior post unclear, but the expressions, etc., were
downright wrong! I hope they're ok now above. If you need me to look at
your code, shoot it to me off line & I'll look at it. I'm much better at
"de-bugging" than "telling"


~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
www.awsolution.com
----- Original Message -----
From: "Merrill, Bob" <merrillratuthscsa [dot] edu>
To: <flasheratchinwag [dot] com>
Sent: Wednesday, March 15, 2000 12:47 PM
Subject: RE: FLASH: Flash4: more efficient method?


> Sorry for being so thick today. I've duplicated the movie clip and set
> different properties for each instance. That part works fine. Exactly how
am
> I to use the variable /:n though? What is n? I see it gets incremented by
1
> everytime it is used. Is that like repeat with i?
>



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
  RE: FLASH: Flash4: more efficient method, Merrill, Bob

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