Flasher Archive

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


Subject: RE: FLASH: take a peek
From: Branden Hall
Date: Thu, 30 Dec 1999 15:43:43 GMT

Yes, but its not ready for distro yet...
when it is, along with a write up, I will let everyone know.

The basic idea behind the zero energy system is that you have multiple
pieces all of which always attempt to return to their zero energy state,
wether that be scale, position, whatever. In the case of the slinky, there
is a single controller MC that controls all of the boxes. Each box has a
speed variable associated with it, for example, speed1 refers to box1. The
speed of each box is constantly updated so that it equals a percentage of
what its speed was (so that the box eventually slows down and stops) added
to a factor of how far away from its zero energy state the object is. For
example, in the slinky speed is calculated as follows:
Set Variable: "/:speed"&temp =
Eval("/:speed"&temp)*.75+((100-GetProperty("/block"&temp&"/box",_xscale))/20
)

Then the actual property of each MC is changed according to the speed(making
sure that we never have a negative scale in this case):
Set Variable: "size" =
Eval("/:speed"&temp)+GetProperty("/block"&temp&"/box", _xscale)
If (size<=0)
Set Variable: "size" = .01
End If
Set Property ("/block"&temp&"/box", X Scale) = size

Now, that makes the actual blocks move, but you still have to make them
always touch.. that is done by the following line of code:
Set Property ("/block"&temp, X Position) = GetProperty("/block"&(temp-1),
_x)+GetProperty("/block"&(temp-1)&"/box", _width)

If you notice I am changing only the MC box inside of the MC /blockX this is
so that I can have text, and other info inside of blockX that won't get
stretched as this whole thing squishes around...

Obviously there is more to this thing than just what I have said above.. for
example the actual triggering of the expanding... thats actually not that
difficult the idea is that to keep every thing the same size if you have X
boxes and you want to increase the speed by Y you increase that one boxes
speed by Y then decrease the rest by (X-1)/Y

-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software



-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of micah
Cordes
Sent: Friday, December 10, 1999 7:49 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: take a peek


brandon got a source on this?
-----Original Message-----
From: Branden Hall <bhallatfigleaf [dot] com>
To: flasheratchinwag [dot] com <flasheratchinwag [dot] com>
Date: Friday, December 10, 1999 11:11 AM
Subject: RE: FLASH: take a peek


>I really like it! especially how the scales at the bottom kinda breathe...
>thats really organic... One thing you may want to do is implement
something
>like what I did for a friend of mine for the site
>www.trailheadoutfitters.com site... check out the nav bar at the bottom...
>:-) That way you always have the scrolly bar to play with...
>
>Oh, and btw, I will be releasing a new technique soon... "Zero Energy
>Systems" the actual size of parts of an object can change but only in
>relation to each other so the size of the whole never changes... check out
>an example at
>www.figleaf.com/development/flash4/slinky.swf
>
>Keep up the great work!
>
>--
>Branden J. Hall
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>Multimedia Developer/Instructor | Multimedia Developer
>Fig Leaf Software | Kimmuli.com
>bhallatfigleaf [dot] com | brandenatkimmuli [dot] com
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=--=-=-=-=-=-=-=-=-=-=-
>
>
>-----Original Message-----
>From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Lisa
>Broussard
>Sent: Friday, December 10, 1999 11:29 AM
>To: flasheratchinwag [dot] com
>Subject: FLASH: take a peek
>
>
>hi all--
>
>i'm building my new flashsite and would love for you all
>to give me some feedback on speed. www.guigrrl.com
>
>btw...implemented some of branden's code to build the nav bar.
>branden...you are the best...love that brain!!!
>
>
>lisa
>
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
>Reserve your space today at http://www.streamingmedia.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...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
>Reserve your space today at http://www.streamingmedia.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...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.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...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.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...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: take a peek, illogic

Replies
  Re: FLASH: take a peek, micah Cordes

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