# Actionscript for rain effect - is this right?

**URL:** https://forum.kirupa.com/t/actionscript-for-rain-effect-is-this-right/167633
**Category:** flash
**Created:** [October 30, 2005, 11:27am UTC](https://forum.kirupa.com/t/actionscript-for-rain-effect-is-this-right/167633 "2005-10-30T11:27:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mayflower](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mayflower](https://forum.kirupa.com/u/Mayflower)
#### Post date: [October 30, 2005, 11:27am UTC](https://forum.kirupa.com/t/actionscript-for-rain-effect-is-this-right/167633/1 "2005-10-30T11:27:39Z")

</div>

Hi,

I’ve been trying to create a rain drop effect in my flash document. First I created a raindrop movie clip symbol. Then I wanted to place it in the stage and recreate it many times using action script.

The following are the Action scripts I used (I am a novice in ASP)

1. Set variable
2. duplicatemovieclip
3. set property of x position

I wanted raindrops to be duplicated randomly along the x scale of the screen. But it’s not at all working. I tried using various values of 50, 100, 10 etc. for duplicating along x axis . but still not working out.

Is this correct or have I missed out something important?
