| Ultrashock Forums
• AS2 - Pass movieclip instance name ? |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
4 Creative Assets
|
2008-03-13
#2 |
||
|
|
|
2008-03-13
#3 |
||
|
Thanks, I tried that but no joy. It traces undefined; If trace(this); within button click I get an response of [object Object]. Could the name be within this object? |
|
4 Creative Assets
|
2008-03-13
#4 |
||
|
You could definitely try that, but it shouldn't work since you're Delegating that function call. Try it I suppose
|
|
17 Creative Assets
|
2008-03-13
#5 |
||
|
arguments.caller is a reference to the function that called the executing function, it won't be a reference to the object that called the executing function: ActionScript 2.0 Code:
ActionScript 2.0 Code:
ActionScript 2.0 Code:
|
|
|
|
2008-03-13
#6 |
||
|
Hey thanks, thats great it works a treat! It is a lot easier this way, but is it also better performance wise? |
|
17 Creative Assets
|
2008-03-13
#7 |
||
|
Having lots of variables shouldn't slow down the movie really, the main cause of slowdown would be the graphics. If your movie is running slow then the graphics are the first thing you should try to optimise.
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


6 comments
| 4106 views

4 Creative Assets
Linear Mode
so,
You might need to try this, not sure:
Let me know if this works for you