Hi all,
swishmax - ActionSript 2
When i press button
How to set MC2 color with the same MC1 color
https://e.top4top.net/p_1161c9mm71.jpg
thanks
Hi all,
swishmax - ActionSript 2
When i press button
How to set MC2 color with the same MC1 color
https://e.top4top.net/p_1161c9mm71.jpg
thanks
hI,
I don't know if AS2 works with swishmax or not, but you can mess with this
PHP Code:
var colour1:Number = 0xFF0000;
var colour2:Number = 0x0066CC;
var movieClip_1:Color = new Color(MC1);
var movieClip_2:Color = new Color(MC2);
MC1.onRollOver = function()
{
movieClip_1.setRGB(colour2);
};
MC1.onRollOut = function()
{
movieClip_1.setRGB(colour1);
};
MC2.onRollOver = function()
{
movieClip_2.setRGB(colour1);
};
MC2.onRollOut = function()
{
movieClip_2.setRGB(colour2);
};
thanks fruitbeard ,
yes AS2 works with swishmax
your Code is working in my swishmax But you put a specific color
what do I do if the color changes automatically
Thank you so much
hi
i suppose you will need to look into getRGB()
https://www.oreilly.com/library/view...8520/re23.html
why do you prefer swishmax over flash ide, what advantages do you see in it?
http://board.flashkit.com/board/imag.../2019/03/1.png
swishmax is my old friend
it is easy and simple
thank you Alloy Bacon