: [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
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
.
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
, 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
: 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
-
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
Hello
i got this code:
this.createEmptyMovieClip(canvas,this.getNextHighestDepth()); //creates an
empty MC in which i attach 2 textMCs
canvas._x = random500;//should place the MCs to a random position when they
load but it doesn't work?!?-What is wrong here?
canvas._y
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());
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pedro
Kostelec
Sent: Wednesday, January 16, 2008 2:53 PM
To: Flash Coders List
Subject: [Flashcoders] placing mc on the stage
Hello
i got this code:
this.createEmptyMovieClip(canvas,this.getNextHighestDepth()); //creates an
empty MC in which i attach
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
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
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
12 matches
Mail list logo