[Javascript] dynamic variables names

Chris Tifer christ at saeweb.com
Wed Jun 25 07:41:18 CDT 2003


Just curious, but how many people here who do JavaScript also
dabble - or more than dabble - in ActionScript?

Chris Tifer
http://emailajoke.com

----- Original Message -----
From: "Smitha Ramaswamy" <smitha.ramaswamy at wipro.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Wednesday, June 25, 2003 1:18 AM
Subject: RE: [Javascript] dynamic variables names


>
> That was an enlightening mail exchange!
> Thanks Chris!
>
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Chris Tifer
> Sent: Wednesday, June 25, 2003 2:28 AM
> To: [JavaScript List]
> Subject: Re: [Javascript] dynamic variables names
>
>
> Ok, I'm also very adept with ActionScript, so this works in the same
manner.
>
> If you had a movie on your root named "nt_o1", then you could reference it
> the same
> way:
>
> _root["nt_o" + intCount].gotoAndPlay("startAnimation")
>
> You're referencing the same way.  That movie clip named "nt_o1", etc are
all
> an array of objects (collection) of the _root
>
> Hope that clears it up a little more.
>
> You'll learn a lot here as long as you ask enough questions.
>
> Chris Tifer
> http://emailajoke.com
>
> ----- Original Message -----
> From: "Marcelo Simon" <grillo at lazzuri.com.br>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Tuesday, June 24, 2003 4:27 PM
> Subject: Re: [Javascript] dynamic variables names
>
>
> > Understand, standards are the way to go.
> >
> > As I've said in an earlier email, javascritp is not my first programming
> > language, I've started with html, followed by cfml ( both tag based ),
and
> > because noone here's in Brasil still use cold fusion ( because of the
> price
> > of the server ), I've moved to a more art orientated carrer ( working as
> > designer jr right now ), because of that I've started to use more flash,
> and
> > learned something in actionscript that helped me understand better
> > javascript and ecma and object oriented programming.
> >
> > with my knowledge in actionscript and this list to help me, I've
> > accomplished some things in JS, and that's why I've asked you which was
> > better, just learning, everyday a little.
> >
> > thanks
> > Marcelo Simon
> >
> > ----- Original Message -----
> > From: "Chris Tifer" <christ at saeweb.com>
> > To: "[JavaScript List]" <javascript at LaTech.edu>
> > Sent: Tuesday, June 24, 2003 5:13 PM
> > Subject: Re: [Javascript] dynamic variables names
> >
> >
> > > Standards is the short answer.
> > >
> > > I assume when you were switching an image's source before, you
> > > were using an ID of the image and changing that, right?
> > >
> > > I'm not sure of the exact browser where that first started working,
> > > but the document.images collection has been around for a long time.
> > > Now if you prefer the ID route, I would at least set a reference to it
> > > by using:
> > >
> > > var objImg = document.getElementById("IDOfImage")
> > >
> > > Chris Tifer
> > > http://emailajoke.com
> > >
> > >
> > > ----- Original Message -----
> > > From: "Marcelo Simon" <grillo at lazzuri.com.br>
> > > To: "[JavaScript List]" <javascript at LaTech.edu>
> > > Sent: Tuesday, June 24, 2003 4:04 PM
> > > Subject: Re: [Javascript] dynamic variables names
> > >
> > >
> > >
> > > > Just one more question, to Chris Tifer, can you elaborate why should
I
> > > > preffer the image collection and should avoid eval() ? So I can
> > understand
> > > ?
> > > > TIA
> > > >
> > > >
> > > > Marcelo Simon
> > >
> > > _______________________________________________
> > > Javascript mailing list
> > > Javascript at LaTech.edu
> > > https://lists.LaTech.edu/mailman/listinfo/javascript
> > >
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> **************************Disclaimer************************************
>
> Information contained in this E-MAIL being proprietary to Wipro Limited is
> 'privileged' and 'confidential' and intended for use only by the
individual
>  or entity to which it is addressed. You are notified that any use,
copying
> or dissemination of the information contained in the E-MAIL in any manner
> whatsoever is strictly prohibited.
>
>
***************************************************************************
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list