homepage Welcome to WebmasterWorld Guest from 54.226.5.29
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library : Charter : Moderators: eelixduppy

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved