[quoted text, click to view] sstiyer wrote:
> I?m a flash designer that usually designs using the timeline and animation.
>
> I?m working on a project that has small movies playing on layers above the
> main movie. The small movies have video in them.
>
> When you rollover the button it loads the movie and it needs to scale larger,
> and then when you rollout it needs to scale back down to original size. And
> many movies can be playing at once. So many of the swfs will be scaling up or
> down at the same time.
>
> The way I?m doing it now is with animations on the timeline of each movie. BUT
> this just is not working and is bogging down the playback of the movie.
>
> I was wondering if anyone know how to do this with code. Maybe using variable
> in action script or something.
>
> Here is the URL to view what I?m trying to do:
>
>
http://www.bordersinteractive.com/totallyintuitive/intuitive_main.html you need an array that stores a reference to each movieclip you wish to
scale. onRollOver loop through that array, scaling each button
referenced in it, same goes for onRollOut.
for example:
_global.clipArray = new Array(_root.clip1,_root.clip2,_root.clip3);
function scaleUp()
{
for(var i=0;i<_global.clipArray.length;i++)
{
_global.clipArray[i]._xscale = 200;
_global.clipArray[i]._yscale = 200;
}
}
function scaleDown()
{
for(var i=0;i<_global.clipArray.length;i++)
{
_global.clipArray[i]._xscale = 100;
_global.clipArray[i]._yscale = 100;
}
}
this.scale_btn.onRollOver = scaleUp;
this.scale_btn.onRollOut = scaleDown;
--
MOLOKO
Macromedia Certified Flash MX Developer
------------------------------------------------
::remove _underwear_ to reply::
'God saves but Buddha makes incremental backups'
------------------------------------------------
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+