PDA

View Full Version : Tutorial actions for Flash 5


friz2002
09-16-2002, 09:44 PM
Some questios.


duplicateMovieClip
-----------------------
1) Correct me if i'm wrong , but in
duplicateMovieClip
I think the last line should be :

_root.moreXXXX._x=10;
instead of
moreXXXX._x=10; (if I use this, the copy comes on top of the original, so the code is not working, I think?)

2) If I move my mouse over the copy of the movieclip it moves on top of the original mc??
how can I prevent that from happening?


removeMovieclip
--------------------
Doesn't work for me :confused:
this is the code in the tut:
on (release) {
removeMovieClip (_root.shopts./orangeShorts);
}

1) Flash says "expect field name after '.' " So I think the slash is wrong (??)

2) Am I correct when i replaced shopts with var name of first movieclip & orangeShorts with var name of mc in first mc ???

farafiro
09-17-2002, 06:03 AM
1) I think I didn't get ex. what u want for this but sure when u duplicate any object it will get all the properties of the origenal opject, so u need a new coordinates for it.
for the using of _root, this is a path thing so u can see the Path tut in the tuts section

2) this, only can be used with the MC that created with attachMovie or duplicateMovie, here is what MM wrote in the dictioneryDescription

Action; deletes a movie clip instance that was created with the attachMovie or duplicateMovieClip methods of the MovieClip object, or with the duplicateMovieClip action.

friz2002
09-17-2002, 11:43 AM
Hi, thx for the answer.
Sorry if I wasn't clear (I'm not English and it was very late :) )

What I meant was:
In the tut the code said
moreXXXX._x=10;
this is for setting new coordinates, right??? , but copy came on top of original MC.
So I think the code in the tut should've been
_root.moreXXXX._x=10; (this seams to work correctly in MX)

What I find strange is that, If I move my mouse over the copyMC, the copy moves back ontop of the original mc :confused:

for the removeMovieclip:
Ok, the tut didn'n mention that it was for copies created with attachMovie or duplicateMovieClip.
But when I enterd the code given in the tut (17), flash MX gave:
"Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: Expected a field name after '.' operator.
removeMovieClip (_root.shopts./orangeShorts);"

So, here I think the code should be
on (release) {
removeMovieClip (_root.NameCopyMovieclip);
}


Hope this is clearer

farafiro
09-17-2002, 11:49 AM
I think u should post the code here or the fla to get it more clearer