In AS2 , I have a MC that moves across the stage. When it reaches a certain cordinates I need it to load an external swf . I usually load externals swfs via button event but now I need it to load when it reaches a certain position on the stage . Any help would be cool …Thanks
[quote=alten;2333387]In AS2 , I have a MC that moves across the stage. When it reaches a certain cordinates I need it to load an external swf . I usually load externals swfs via button event but now I need it to load when it reaches a certain position on the stage . Any help would be cool …Thanks
Alten[/quote]
please specify the direction the MC is moving, whether its moving horizontally, vertically, or both, and also the direction. Also, you should specify the coords that you want the code to activate.
The mc is moving right to left …ie off the right side of the stage then moves onto the stage …moving left . I am not in front of my production comp right now so the cordinates could be anything …I can change them later
[quote=alten;2333430]The mc is moving right to left …ie off the right side of the stage then moves onto the stage …moving left . I am not in front of my production comp right now so the cordinates could be anything …I can change them later
I do appreciate your response greatly .[/quote]
Umm, try:
onEnterFrame = function () {
if (mMyClip._x >= 500){
// do this
}
}
Where 500 is the desired x co-ord, you could make that a variable, etc…