Hi,
i'm new to the forum and have been using Wck components in Flash for a while and I'm really enjoying it.
I'm no expert at AS3, and I'm not using an external class.
I create World MovieClips and drop my Bodies straight onto the stage and give them instance names. So far this is working great, and I can add functionality with code on my MCs. For instance, I can start with a static object, then:
(To make it active)
So while I can effect objects like this, I have not found the right code to :
a) change the gravity of the World MC once it is set (e.g starting with GravityY=1 to GravityY=-1)
b) I cannot destroy objects at all! (I've tried: MC.Destroy(); and MC.destroyBody - neither work, as the function is not recognised)
I'm not using linkage instances, just on my MCs on the timeline. Hope this is possible! Please help, as these are very crucial problems!
Thanks,
Matt
i'm new to the forum and have been using Wck components in Flash for a while and I'm really enjoying it.
I'm no expert at AS3, and I'm not using an external class.
I create World MovieClips and drop my Bodies straight onto the stage and give them instance names. So far this is working great, and I can add functionality with code on my MCs. For instance, I can start with a static object, then:
Code: Select all
Block.type = 'Dynamic';So while I can effect objects like this, I have not found the right code to :
a) change the gravity of the World MC once it is set (e.g starting with GravityY=1 to GravityY=-1)
b) I cannot destroy objects at all! (I've tried: MC.Destroy(); and MC.destroyBody - neither work, as the function is not recognised)
I'm not using linkage instances, just on my MCs on the timeline. Hope this is possible! Please help, as these are very crucial problems!
Thanks,
Matt