I am looking for an Advanced AS2 Coder working in Flash mx 2004 to help me develop a Flash app based on an ASP.Net Web service. I am just starting with Flash but I know what I am trying to build. Have several projects in the works so could be a long term part time relationship.
I can send some test code if you want a look at where I am STUCK.
John
I guess what mlk meant was it would make sense to post the part you are stuck.
if it’s top secret - tell us the problem
if it’s something commercial - feel free to pm me
I just wanted to add.
It may not be obvious, but I have many dynamically generated movieclips on the stage and I don’t know which one will be dropped on and I don’t want to write a 100 case [font=Courier New]switch[/font] statement.
Thank you I appreciate your quick feedback, McGiver!! You gave me what I needed to make it work :be:
I was using ("/" + String(targetArray[c])) because the code worked when I used “/c12” for the path string.
The original code was
if (this._droptarget == “/c12”) {
this._x = _root.c12._x;
(this._parent[targetArray[c]]) doesn’t work.
("/" + [targetArray[c]])) Does work. :be:
and so does
_root[targetArray[c]]
What does enclosing the array value in [] do? Does [] force the casting?
What am I casting to? Am I casting to an object or a Movieclip in " this._x = _root.c12._x;"?
so the “/” is actually part of the name?!
I just wasn’t sure what you were trying to do with the slash thing.
the [] is makes flash read the code inside the brackets as a movieclip name.
i.e.:
_root[“hallo”] is the same as _root.hallo
and
i=5
_root[“mc”+i][“submc”+i] is read like _root.mc5.submc5
like
eval("_root.mc"+i+".submc"+i) if you have a complete path
Actually, no the “/” is part of the path string. I got this from the Flash Help if we want to use _root[targetArray[c]] then we have to write something like
(eval(this._droptarget) == _root[targetArray[c]] ) but I don’t know why it doesn’t work with for instance “_root/someMC”
Thanks for explain on the “_root[“hallo”] is the same as _root.hallo” thing.
So why doesn’t _root.MovieClip(targetArray[c]) (which I think is more precise casting) work ??
Is the [someMc] just for object paths? Or does MovieClip(someMc) just not work?
Creating engaging and entertaining content for designers and developers since 1998.