PDA

View Full Version : mc selection w/ alpha


bael
05-14-2004, 09:51 AM
I am in frame 75 of a timeline and have a layer called "code".

I'm trying to modify a mc in layer Symbol 1 (left default after creation) - Symbol 5.

The Symbols already exist in their appropriate layers and they are all tweened.

4 of the symbols are alpha 0 and tween down from alpha 100

The 5th symbol I put there and modified the size so that it would zoom.

What I want to do is have a function that I can pass a variable that will tell it what mc I am dealing with to zoom in on and then modify that mc xsize and alpha to 100. Then have all the other mc's alpha at 0 and leave the xsize at what it already is.

I'm hoping that by being able to pass this in the code that the tweens will automatically update as need be as well.

Any insight?

I've been trying to search and haven't had much luck and also have tried some code myself for at least just the alpha changing part and that doesn't appear to work.

red penguin
05-14-2004, 01:26 PM
I think you need to do a few tutorials, my friend...naming, pathing, etc. Get the basics of coding down....

bael
05-14-2004, 02:23 PM
I went with default names for the quickness of what I am doing (proof of concept to people).

I am new to ActionScript, but not coding.

All of the mc live in _root and aren't nested.

I should probably rephrase my question to this:

Is it possible to use action scripting to change the properties of a movie clip on the fly for a particular frame and have the tween still remain in place.

From what I have seen os far, it just won't work and I would have to setup the movie in an entirely different fashion.

I didn't notice the tutorials link until you mentioned it though and y'all have done an excellent job of compiling lots of information.

Thanks.

red penguin
05-14-2004, 04:46 PM
Unfortunately, tweens and AS don't work well together. If you want control, you'll have to do the tweens dynamically...

change the properties of a movie clip on the fly for a particular frame

Yes. As long as the clip is 'on the Stage' at the time you want to do something to it.

bael
05-14-2004, 04:54 PM
Thanks

red penguin
05-14-2004, 05:00 PM
Place to start would be to look into Penner's tweening functions. If you do understand code, then using them shouldn't be 'too much' trouble.

;]

Good luck and welcome....