I have a function that adds a dropshadow and blur to a MovieClip onstage. I tweaked it to AS3 and it works fine when the code is on the timeline.
However, If I create a simple class, copy the script and paste into the new class document , cannot get the thing to work. This should be so simple and instead it’s so frustrating. I’ve looked all over the place and it just confirms I have some serious holes in my knowledge.
[LIST]
[]If I want to apply filters to certain objects onstage, do I import the class or set it as the document class for the fla?
[]If I put both **fla **and **as **files on my desktop just to get basics down - then packages and classpaths are not an issue - correct?
[*]When the class is associated to the Fla file, does it automatically instantiate or must I use a constructor?[/LIST]In summary, lets say my class is called MyFilters.as and within that I have a setShadow function that includes both a blurFliter constructor and shadowfilter constructor. My setShadow function is called within the class file itself. How do I use MyFilters.as with a fla file? The target is set within the function inside the class.
mcOuterClip.mcInnerClip.filters = [shadowFilter, blurFilter];
Thanks for your patience in reading through this - clues appreciated!