Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Matt S.
: [Flashcoders] placing mc on the stage Thanks for the reply. but it still doesn't work for me. I can only see code1 moving randomly overthe stage, but thereis no sign of code2 movie clip. Here is a bigger peace of the code: this.createEmptyMovieClip(canvas,this.getNextHighestDepth

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
Subject: Re: [Flashcoders] placing mc on the stage Thanks for the reply. but it still doesn't work for me. I can only see code1 moving randomly overthe stage, but thereis no sign of code2 movie clip. Here is a bigger peace of the code: this.createEmptyMovieClip(canvas,this.getNextHighestDepth

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
. There is no such clip as code2. -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Kostelec Sent: Wednesday, January 16, 2008 7:21 PM To: Flash Coders List Subject: Re: [Flashcoders] placing mc on the stage Thanks

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
, January 16, 2008 7:21 PM To: Flash Coders List Subject: Re: [Flashcoders] placing mc on the stage Thanks for the reply. but it still doesn't work for me. I can only see code1 moving randomly overthe stage, but thereis no sign of code2 movie clip. Here is a bigger peace

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Matt S.
: Wednesday, January 16, 2008 7:21 PM To: Flash Coders List Subject: Re: [Flashcoders] placing mc on the stage Thanks for the reply. but it still doesn't work for me. I can only see code1 moving randomly overthe stage, but thereis no sign of code2 movie clip. Here

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Kostelec Sent: Wednesday, January 16, 2008 7:21 PM To: Flash Coders List Subject: Re: [Flashcoders] placing mc on the stage Thanks for the reply. but it still doesn't work for me. I can only see

Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Bob Leisle
Hi Pedro, Try this instead: Math.random()*500; Here's a simplistic but clear tutorial on the subject: http://animation.about.com/od/flashanimationtutorials/ss/mathrandom.htm hth, Bob Pedro Kostelec wrote: Hello i got this code: this.createEmptyMovieClip(canvas,this.getNextHighestDepth());

RE: [Flashcoders] placing mc on the stage

2008-01-16 Thread Jim Robson
Pedro, Is this what you're going for? function attachMovies() { for (var i = 0; i2; i++) { var mc = canvas.attachMovie(code,code+i,this.getNextHighestDepth()); mc._x = Math.random()*500; mc._y = Math.random()*100; } } -Original Message- From: [EMAIL

Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Leandro Ferreira
You could also use random(500), but is deprecated - http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary630.html - how do i do to define the x and y position of each mc separately? I don't get it.. what do you want to do here? Leandro Ferreira

Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Pedro Kostelec
sorry. I forgot to copy this. random100=Math.random()/100; random500=Math.random()/500; - how do i do to define the x and y position of each mc separately? I don't get it.. what do you want to do here? what i want is to make one ofthose mcs moveup and downand the other right-left. Theproblem is

Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Pedro Kostelec
Thanks for the reply. but it still doesn't work for me. I can only see code1 moving randomly overthe stage, but thereis no sign of code2 movie clip. Here is a bigger peace of the code: this.createEmptyMovieClip(canvas,this.getNextHighestDepth());//creates an empty MC in which i attach 2 textMCs