Flasher Archive

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


Subject: FLASH: Endless Loop w/two MC's (action script)
From: Jason White
Date: Tue, 20 Jun 2000 21:38:40 +0100

Eric,

>Have the button start the movie clip, then on the movies clips 22
frame inse
>rt a keyframe and have that keyframe start the last movie Clip. The
reason y
>our getting the error is that your computer is running the while
loop tens o
.f thousands of times a second. It wasn't written to support what you
are trying to do.

I don't want to do that (considered it), because I don't want to
'hardwire' this movie clip like that. In other words, I don't always
want frame 22 to back up and look for another target. I want it more
re-useable than that. After all, that's part of the appeal of
Flash...the re-usability of symbols. If I hard code a frame action
like that, I lose that. I've done it in other instances like you
suggest, but I don't want that here.

Mark,


>why not just put a tell target on frame 22 of the clip you just
started to
>tell target the other clip?

See above...

>I don't understand the loop while thing totaly, but I dont think
your
>variable will be getting updated the way it sits in this one
frame...

>maybe if you split the actionscript into two frames..

>one frame: labeled loop
> Set Variable: "a" = GetProperty ( "/page1", _currentframe )

>next frame
> if a <= 22 GoTo and play loop
>else
> Begin TellTarget blah blah
> Play

That's what I also thought of doing and will most likely do. It's
the programmer in me that asks why this doesn't work. From a logical
standpoint I still don't see why it shouldn't...That would lead me to
ask then...(and maybe someone from MM can best answer this), where
when and how would the 'loop while' be best used if not in watching
frames increment on a target movie clip?

I once used while to wait for a value to return from a
cgi/authentication script. I cleared a variable or preset it to
something obfuscated and then loaded variables into location. While
that value was blank/obfuscated..the script just sat there and waited
in a while loop. When a value was returned from the cgi (success or
failure), it hit an if and forked off accordingly. Don't know why
this doesn't work now. Wish I had that sample in front of me (on my
computer which is currently in storage). Anyway...

Thanks guys,

Jason

"Everything that is wrong with training can be summed up in just four
words...*It's just like school*"
--Roger Schank

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 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


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