# Problem converting procedural script to a class file

**URL:** <https://forum.kirupa.com/t/problem-converting-procedural-script-to-a-class-file/286417>\
**Category:** flash\
**Created:** [April 15, 2009, 8:58am UTC](https://forum.kirupa.com/t/problem-converting-procedural-script-to-a-class-file/286417 "2009-04-15T08:58:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![way2web](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@way2web](https://forum.kirupa.com/u/way2web)\
**Post date:** [April 15, 2009, 8:58am UTC](https://forum.kirupa.com/t/problem-converting-procedural-script-to-a-class-file/286417/1 "2009-04-15T08:58:35Z")

</div>

Hello,

I’ve unsuccessfully tried to convert a procedural script into a class file, there’s no (no more ) errors but the desired effect you can see in the original file doesn’t work ! I don’t see where I’ve been wrong so I hope someone can guide me through in my first attempt to create a class… I really want to learn to use classes instead of procedural scripts but I’m actually quite confused about the way to do it!

Thanks in advance for your help!

In attachment:  
particle3D\_test.fla is my file that doesn’t work!  
3D\_Particle\_Effects.fla is the desired effect!  
in be.web4u my class attempt
