View Full Version : stupid problem driving me nuts
Solesurvivor 09-02-2003, 10:34 AM can anyone take a lot at the code and tell me what i'm doing wrong, i just want the mc on the stage, that's all...here (http://users.pandora.be/dig_ren/test.rar)
thnx
|
|
Ian Jones
09-02-2003, 11:39 AM
Hrm. I see what you mean. I 'm working on it.
Solesurvivor
09-02-2003, 11:48 AM
thnx, it's a really stupid problem, and it ought to work with the code, but it doesn't :(
Ian Jones
09-02-2003, 11:50 AM
AHA! I think I got it.
someMCInstanceName.attachMovie(idName, newname, depth);
idName must equal the linkage name. So in your case it should look like this:
function test(){
_root.attachMovie("beweging","move_mc",200);
_root.move_mc._x = 100;
_root.move_mc._y = 100;
trace(move_mc._x);
}
btn_knop.onPress = test;
I figured that out with the help of: http://www.actionscript.org/tutorials/beginner/attachMovie/index.shtml
Solesurvivor
09-02-2003, 11:57 AM
Originally posted by Ian Jones
AHA! I think I got it.
someMCInstanceName.attachMovie(idName, newname, depth);
idName must equal the linkage name. So in your case it should look like this:
function test(){
_root.attachMovie("beweging","move_mc",200);
_root.move_mc._x = 100;
_root.move_mc._y = 100;
trace(move_mc._x);
}
btn_knop.onPress = test;
I figured that out with the help of: http://www.actionscript.org/tutorials/beginner/attachMovie/index.shtml
sorry, but that was just one thing i forgot to translate, even with linkage correct, it still doesn't work :annoyed:
but gonna check out the url you gave, thnx
Ian Jones
09-02-2003, 12:06 PM
It worked for me. The text came up and the trace window said '100'
Solesurvivor
09-02-2003, 12:08 PM
huh?? it worked, i can't believe it :surprised
maybe it has something to do with the levels
anyway, thanks a bunch for helping me out:thumbsup:
*edited*
found it, forgot the " " for the var names, stupid stupid me
anyway, thnx a lot :)
Ian Jones
09-02-2003, 12:23 PM
:)
CGTalk Moderation
01-16-2006, 12:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.