Flasher Archive

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


Subject: Re: FLASH: Thousand of objects?
From: Helen Triolo
Date: Wed, 3 Jan 2001 15:12:27 GMT

Oliver,

Not sure I understand what you're asking, but I'll take a shot. If you
put the assignment of new Date() to a variable inside an
onClipEvent(enterFrame) routine, it'll assign the current (new) date
value to that variable. And if you delete the variable before assigning
a new value, you'll always start with a new variable (object) which will
have a new unique value, as in this code snippet from Branden's clock
example from http://www.figleaf.com/development/flash5/. Doing this,
you'd end up with just one date object, not hundreds.

onClipEvent(enterFrame){
...
delete clipDate;
clipDate = new Date();
}

Regards,
Helen
-----------------------------------------------------
i-Technica � http://i-technica.com � 301.424.6037
developer resources: http://i-technica.com/whitestuff

oliver b�hm wrote:
>
> I am not sure whether this question is discussed in the past but:
> When I create a Date object saving it to a variable
> is it always the same new object or maybe hundred and more...(saving it in a
> loop)
> Date objects?
> Thanks Oliver

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
  Re: FLASH: Thousand of objects?, oliver b�hm

Replies
  FLASH: 3D Puzzle, Lego samples?, Marc Pidoux
  Re: FLASH: 3D Puzzle, Lego samples?, Mike Kelly
  FLASH: Thousand of objects?, oliver b�hm

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