LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 10-07-2004, 03:11 PM
Novice Novice is offline
Registered User
 
Join Date: Oct 2004
Posts: 4
Rep Power: 0
Novice is on a distinguished road
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);
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 03:11 PM.