
Welcome Guest
|
#1
|
|||
|
|||
|
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?
|
«
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 |
| 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 |





