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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-11-2004, 03:32 PM
windpig windpig is offline
Registered User
 
Join Date: Jan 2004
Location: Elizabeth City, NC
Posts: 3
Rep Power: 0
windpig is on a distinguished road
Dynamic MC not reappearing

I'm more used to CF and new to flash working on an application that takes a survey of time expended on activities. To do this I've layed out the interface screens using slide show (some nested). The user navigates to a slide using goto slide, that on (reveal) calls a coldfusion component and based on the number of records returned, uses "attachmovie" method to present a group of movieClip checkboxes(no problem so far). The problem I'm having is getting movie clips to reappear after the user navigates away from this slide and then returns to it.

Here is my code that attaches the movie clips.

Actionscript:
//handle the dataset results
function getABCparents_Result(result) {
	abcParent_ds.dataProvider = result;
	var defIndex = abcParent_ds.length;
//create a new instance of the abcParent checkbox for each row in dataset	
	var i = 0;
	abcParent_ds.first();
	while (abcParent_ds.hasNext()) {
		i++;
//set vars to be used in new movie clips
		_root.modelNote = abcParent_ds.modelNote;
		_root.accountName = abcParent_ds.accountName;
		_root.pRefNum = abcParent_ds.referenceNumber;
//include a checkbox for each record
		this.attachMovie("abcParentClip", "mcAccountClip"+i, i);
		
		var clipName = "mcAccountClip"+i;
		var mcAccountClip = this[clipName];
		
//pass values to each checkbox 
		
		mcAccountClip.accountName = _root.accountName;
		mcAccountClip.pRefNum = _root.pRefNum;
//position the checkbox
		if (defIndex<=16) {
			mcAccountClip._x = -300;
			mcAccountClip._y = -90+(20*i);
		}
//divide into 2 columns if more than 16
		if (defIndex>16) {
			if (i<=(defIndex/2)) {
				mcAccountClip._x = -600;
				mcAccountClip._y = -90+(20*i);
			}
			if (i>(defIndex/2)) {
				mcAccountClip._x = -300;
				mcAccountClip._y = -90+(20*(i-(defIndex/2)));
			}
		}
		
		abcParent_ds.next();
	}
}

When the user returns to this slide a second time, this loop executes OK but the movie clips don't seem to receive the variable values or locations.
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscript & Superscript in dynamic and input text field in Flash savil76 General Flash 1 05-04-2008 06:51 AM
Dynamic text showing server msg SteveH Newbies 11 01-30-2008 01:24 PM
turning dynamic text field into a variable for use inside xml object, need help webjedikungfu Actionscript 2.0 1 02-14-2007 01:54 PM
Problems with dynamic text display... bearslife Flash MX 2004 0 01-19-2005 07:10 PM
Addressing to a Dynamic Text Field crrclark Newbies 2 03-11-2004 12:44 AM




All times are GMT. The time now is 02:31 AM.