i am trying to make a leaf movie clip fly in from the left side of the screen and fade away as it reaches the right side. it's start _x and _y position is randomized.
i would also like the leaf movie clip duplicate itself when it a certain _x value and have it's alpha fade to 0%.
psuedo code (what else i want to happen):
when mc._x= 350
--duplicate leaf movie clip at random _x & _y position on left side of screen.
--mc alpha fades out to 0%.
there is code on the leaf image, on the 1st frame and in the blank movie clip on the stage.
the leaf follows randomized sine wave patterns to give it movement across the stage. when the leaf reaches the end of it's sine wave it disappears. what i want it to do is fade out, not just disappear all the sudden.
my code doesnt make it disappear all of a sudden... I wrote a function called "fadeThis" that fades it out by 10 alpha every frame until its invisable.... Read my code again
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
can you look at my test file and see what's wrong.
Hey man, me again.. Yeah, my apologise.. I had a typo that I didnt notice until after i re-wrote it. Heres another way to do it.. but its a little messy. I opened ur fla and noticed u put all the code on the MC. Please dont. All you need is 1 frame.. 1 layer. and the following all on the layer
Now in your library, under linkage.. make sure that it is labeled 'ball' and toggle, export on first frame and export for actionscript. This does work.. i tried it myself
thanks alot, that's just how i imagined it! now i just got to add it to my other script and i'm good to go. thanks again. i haven't used the linkage really until now, is this the kind of instance whre it is most often used?
well, I use linkage for everything really. I try to avoid manually bringing things onto the stage because it really limits what you can do sometimes. Like, if you need 100 buttons to do something.. it seems kinda ridiculous to click and drag 100 times... but if you use actions, its like 10 lines long..