-
Hi there,
Please could someone put me out of my misery. I've built a few sites in Flash using tweening but I am trying to use actionscripting to control animations for the first time. All I want to do is get some code that will fade a MC instance in during 1 frame ( ie. Alpha 0 to Alpha 100 ). I'm sure this is really easy but my head is falling to bits - I have a deadline for friday and things aren't looking too good! PLEASE, PLEASE could someone help. I found the following code that fades an MC instance in and out but even this does too much!
onClipEvent (load) {
val = 100;
}
onClipEvent (enterFrame) {
if (val >= 100) addval = -5;
if (val <= 0) addval = 5;
val += addval;
this._alpha = val;
}
Any help would be very, very much appreciated!
-
Old dog learning new tricks
I don't know exactly what u want to do, but if your movie is 1 frame long u can use this:
onClipEvent (enterFrame) {
this._alpha=this._alpha-1;
}
Hope I helped
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|