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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-22-2005, 04:14 PM
hiddensat hiddensat is offline
Registered User
 
Join Date: Mar 2003
Location: Venezuela
Posts: 60
Rep Power: 11
hiddensat is on a distinguished road
Question dynamic text relative path variable

Hi! I bet this is really simple but I don't know how to do it anyways

I have a mc with no instance name, inside this mc I have another mc (which is empty) -instance name: cal- and a dynamic text. I assigned the following actions to the mc named cal:
Actionscript:
onClipEvent (load) {
	x = Math.round(_parent.slide._x-75);
	k = Math.round(_parent.slide._x-75);
}
onClipEvent (enterFrame) {
	x = Math.round(_parent.slide._x-k);
}

And I need the dynamic text to display values of the variable x defined in cal. If I use an absolut path to assign the variable to the dynamic text (_root.dial.cal.x -assuming I gave the instance name dial to the parent mc-) it works perfectly, but I don't want to do this, I want to use a relative path so I don't have to give an instance name to the parent mc. I'm trying: _parent.cal.x , but it doesn't work... what is the right way to do this?

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
Editing Template error(convert from .fla to .swf) Travi$18 Flash CS3 / Flash 9 2 09-03-2008 06:43 PM
Change variable name of Dynamic Text KathyDeV Flash 8 0 03-07-2008 01:10 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
Dynamic Text - change text box variable on click kenisswell Flash MX ActionScript 10 11-01-2005 09:20 PM
variable from a text file into a text field???? damienschaefer Flash 5 Actionscript 2 04-05-2005 10:18 AM




All times are GMT. The time now is 08:14 AM.