homepage Welcome to WebmasterWorld Guest from 54.198.94.76
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Variable Instance Names
Use a variable as an instance name.
MartinWeb




msg:3980540
 2:42 pm on Aug 29, 2009 (gmt 0)

Hello. I am attempting to use a variable in an instance name.

platforms=1;
while(platforms<3){
platformNum = "platform"+platforms;
platformX=_root.var(platformNum)._width;
}

I attempted the above code, but I am told that a '.' is expected after the operator. If you have any ideas, please help. Thanks.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved