[Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
If i create n movieclip with the createEmptyMovieClip giving to anyone a 
different name is possible to know the x and y value from another function?
To me seem no , if i create for example 10 movie clip and in another function 
i write 
trace(x : +movieclip1._x) 
trace(y : +movieclip1._y) 

trace(x : +movieclip2._x) 
trace(y : +movieclip2._y) 


...


it writes always 0...


Any suggestion?
Thanks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
If you have your scope right - it shouldn't be any problem.  Are you
sure the instance names of the movie clips are correct?  Are you sure
the path to the movie clips are correct?

theMovieClipInstance._x always equals the x position of the movie clip,
no matter how it was created.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, March 24, 2006 4:10 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] array of movieCLip

If i create n movieclip with the createEmptyMovieClip giving to anyone
a
different name is possible to know the x and y value from another
function?
To me seem no , if i create for example 10 movie clip and in another
function
i write
trace(x : +movieclip1._x)
trace(y : +movieclip1._y)

trace(x : +movieclip2._x)
trace(y : +movieclip2._y)


...


it writes always 0...


Any suggestion?
Thanks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
I tryed to trace the movieclip ?width and height properties and it works, 
but if i try with x and y it write 0 ...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] array of movieCLip

2006-03-24 Thread Byron Canfield
The initial coordinates of a dynamically created movieclip are always 0.

Unless you have explicitly assigned a new value to the _x property of a
dynamically created movieclip, it will be zero.

-- 
Byron Barn Canfield


 If i create n movieclip with the createEmptyMovieClip giving to anyone a
 different name is possible to know the x and y value from another
 function?
 To me seem no , if i create for example 10 movie clip and in another
 function
 i write
 trace(x : +movieclip1._x)
 trace(y : +movieclip1._y)

 trace(x : +movieclip2._x)
 trace(y : +movieclip2._y)


 ...


 it writes always 0...


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
I found the problem...

i solve it adding the .x and .y properties to every movieclip and passing them 
the movie clip position.

In this way i can retrieve these values with movieclip.x and movieclip.y

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
With mc.x or mc._x?  Try mc._x

It works, try it again. 

You also might consider posting some code so we can see what you're
trying to do. 

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, March 24, 2006 4:26 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] array of movieCLip

I tryed to trace the movieclip ?width and height properties and it
works,
but if i try with x and y it write 0 ...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
Byron's right, I was assuming since that is the case you had already
moved the movie clip and was polling what the new X and Y values were.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Byron Canfield
Sent: Friday, March 24, 2006 4:34 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] array of movieCLip

The initial coordinates of a dynamically created movieclip are always
0.

Unless you have explicitly assigned a new value to the _x property of
a
dynamically created movieclip, it will be zero.

--
Byron Barn Canfield


 If i create n movieclip with the createEmptyMovieClip giving to
anyone a
 different name is possible to know the x and y value from another
 function?
 To me seem no , if i create for example 10 movie clip and in another
 function
 i write
 trace(x : +movieclip1._x)
 trace(y : +movieclip1._y)

 trace(x : +movieclip2._x)
 trace(y : +movieclip2._y)


 ...


 it writes always 0...


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com