|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
using variable within path?
I want to set a path by having a variable dictate the path... having problems with the syntax:
dynamicNum = _root.somevar; //this is the path depending on the dynamicNum brought back the path will change. not sure if this is the way to concat the dynamicNum... well it must not becuz it does not work any ideas on the syntax? _root.screenAtty + dynamicNum.popuptext.click=0; Thanks. GR
__________________
******* Lorraine |
|
#2
|
|||
|
|||
|
_root.screenAtty[dynamicNum].popuptext.click=0;
should do the trick - only one dot, on right side of access operator '[]' , to concatenate further var varname = "myvar"; this[varname]=99; trace(this[varname]);//gives myvar=99
__________________
beware of geeks bearing animated gifs. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > using variable within path? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|