setting a movies alpha with AS in relation to timeline
Hey guys!
I have a queston about setting the alpha on a specific movie clip when the timeline hits a certain frame.
Basically thats what i need to know in a nutshell.
so yeah, for example, when my timeline hits frame 200 i want my movie to have its alpha set to 100 from like 50, which is already set.
If anyone has a clue on how i can get this i would be super stoked!
thanks alot for any help!
on frame 200 put
_root.movieClip._alpha = 50;
You will have to change movieClip to the movie clips name and possibly change the path.
The greatest pleasure in life is doing what people say you cannot do.
- Walter Bagehot The height of cleverness is to be able to conceal it.
- Francois de La Rochefoucauld
Hey!
thanks alot for the reply
this is what i thought it would be but for some unknown reason it does not work this is what i have on frame 200
_root.imageClip.imageMov.mov2._alpha = 100;
I have this action inside imageClip's timeline and the movie it is effecting is mov2, so the action is not on the root timeline.
i get no errors or anything like that, it just straight up does nothing when it hits frame 200.
I have made sure all my instance names are exact, i am stuck???
haha any more ideas? anyone?
Hey hum
thanks alot for throwing together the small example, this is exactly what i have and it is just not working in my .fla???
the only thing different is that my movie instance imageMov is inside a mask...but that does not matter...so i am totally stumped with this one, i have gone over my instance names perfectly and it is alll good...is it a bug you think?
thanks again for your help and effort!
thanks alot man
You will see on the main stage near the center the movieclip with the instance name imageClip and from there you will be able to see whats going on.
on frame 200 is the action to change the alpha of the selected movieclip.
Thanks alot again man!
Hi
Ok...i see the problem...
Go into the imageClip so you can see the three layers..
ACTIONS
Layer2 = mask
Layer 1
...............
On layer1 .....go through clicking each of its keyframes then selecting the imageMov movieclip on the stage....
You will notice that on some of the keyframes the imageMov clip has no instance name in the properties panel......so this is your problem....make sure the clip is named
in all of the keyframes......TIP:Give a clip an instance name before tweening or copy and pasting frames to avoid this.