This content has been marked as final. Show 6 replies
I think you have a escope problem here. Before starting the prototype block assign a var called thisObj like this:
var thisObj = this;
by doing this you are saving a refence to the 'this' object but in the original scope in a local variable. Now try to use thisObj instead of 'this' where you want to get information about the original scope.
If this code is on a event handler like onRelease or something like this, post the complete code because then you'll have some trouble.
I've tried your suggestion without any progress.
I've attached the function if you might want to take a look at it.
One thing I've been wondering about is how the use of the hard brackets in this piece of code will output:
lets say the Type == "bill" and the animId == "Stand"
will it then show this:
I want it to put 2 instances on the stage :
1 with an animation
and another with the backgroun ...
just that the background isin't put at all...
I used "trace" to see if it`s crashing or not and it isin`t .
the second instance ("waypoints") doesn`t appear :(
any help ? :(
I have no idea what so ever how to help you lad. But if you really want some help, I advice you to start your own thread instead of hijacking others.
Okay just a little information about _root and this.
the this command is context sensitive, basically it refers to the object or thing your working with.
It's like saying him or her. Dave is a nice guy I like him.
If the this command doesn’t know what you're referring to its like saying. Him is good.
_root on the other hand refers to something specific. sceen1. Or you’re starting scene.
to call anything through _root, you have to know where it's located, and what it's named.
If it's in the a frame on the main stage one it can be referred to as _root.name
If it's in a deeper location all the things that it's stored inside need to be listed.
You seem pretty competent, so I can't imagine this is the problem. But as best I could understand your question, and just in case I thought I'd throw this out there.
Hampigato I would of made a topic but I didnt find the "Post Topic" or "New Topic" button at the time ... ( it was about 4.30 am... )