Flasher Archive

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


Subject: Re: FLASH: array trouble
From: Helen Triolo
Date: Wed, 20 Dec 2000 16:42:02 GMT

Yes, that's what I was saying. But thinking about it a bit more, I
think my idea isn't so great. Flash may barf on such a big string for
one variable, and the split method is really slow. Probably your
original way is better, using a text file with
soundpress0=55555&soundpress1=44444&...soundpress899=33333.

Then after you've read in the 900 variables, you could put them into an
array with

aSounds = new Array(900);
for (i=0; i<900; i++) {
aSounds[i] = _root["soundpress"+i];
}

You would still access the array elements as aSounds[thiselement].

Regards,
Helen

Ruben Mafura wrote:
>
> ..So waht you say is,...import the complete string of values and place it
> into an array, number by numer, using the split-property?
>
> Very refreshing idea!,...i've experimenting with the old textfile setup for
> quite some time.
> I'll give it a try.
>
> ManY ManY ThenX!!!
> I'll let you know when i get it to work.
>
> GreetingZ
> RuupY
>
> -----Original Message-----
> From: Helen Triolo [designerati-technica [dot] com (mailto:designerati-technica [dot] com)]
> Sent: Wednesday, December 20, 2000 4:12 PM
> To: flasheratchinwag [dot] com
> Subject: Re: FLASH: array trouble
>
> RuupY,
>
> You could make this easier with a text file with these contents:
>
> soundpress=12034,13501,etc
>
> and then after you do LoadVariables on the text file (and make sure the
> variable has loaded by adding a 2-frame loop to cycle until soundpress
> ne ""), you'll have a string variable named soundpress, which you can
> turn into an array with:
>
> aSounds = soundpress.split(",");
>
> To reference an element of the array, you'd just use
> aSounds[thiselement] (which will be something like 13501). Does that
> give you what you need?
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: array trouble - final. reall, Helen Triolo

Replies
  RE: FLASH: array trouble, Ruben Mafura

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