
Welcome Guest
|
#1
|
|||
|
|||
|
set
I am new to AS.
I've come across this code. My question is: what is in this case set((("mcNavigHold.mcNavigItem" + i) + ".myName"), root.NavigOb.NavigData.NavigItem[i].name); suppose to do? Create new property .myName and assign it a new value? How was it done in AS 1.0? How abot root? Isn't that supposed to be _root? Actionscript:
function buildNavig() {
NavigItems = root.NavigOb.NavigData.NavigItem.length;
i = 0;
while (i < NavigItems) {
duplicateMovieClip("mcNavigHold.mcNavigItem", ("mcNavigItem" + i), (16384 + i));
set((("mcNavigHold.mcNavigItem" + i) + ".myName"), root.NavigOb.NavigData.NavigItem[i].name); |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a simple presentation set up | allendupras | Newbies |
6 | 10-05-2009 06:56 PM |
| Problems with UIscrollBar when "Export frame" for AS is not set to 1. | mr2web | Flash MX |
2 | 06-01-2006 02:28 PM |
| Load a movie clip then set onPress not working? | yossarian | Actionscript 2.0 |
4 | 03-15-2006 12:01 PM |
| CheckBox selected can't be set on an attached clip | Scottae | Actionscript 2.0 Components |
3 | 09-16-2005 07:41 PM |
| onLoad-function question (need it to set a value to an variable outisde the function) | nurgle | Actionscript 2.0 |
1 | 08-23-2005 07:01 PM |

Programming Languages



