Unset Value
var arr=new Array(); arr[28]=1; arr[29]=2; arr[99]=3;
arr[28]=null; arr[29]=undefined; unset(arr[99]);
for(i in arr) { trace(i+'='+arr[i]); } ------------ but script above prints: 99=3 29=undefined 28=null ( : according to my wishes it shouldn't print anything)
so, how does one unset actionscript value ?
Thank You
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-30-2005, 06:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To UnSET.RGB()?
I have created a button that when u rollover it goes white and when u rollout it supposed to go the original color... how do I do it????
This is the code I have created at the moment:
Code:
_root['room'+i+'_btn'].onRollOver = function() {
this.pic0_mc._alpha=100;
color_original= new Color();
color_original.getRGB(this.pic1_mc);
trace ("color_original:"+color_original.color)
color_white = new Color(this.pic1_mc);
color_white.setRGB(colo);
};
_root['room'+i+'_btn'].onRollOut = function() {
//dont know the code!!!
};
Can anyone help???
Thanks!
Unset SetRGB ?
In my movie I have 50 buttons all duplicated from one button, a white square, I needed a way to click on one those buttons and have it hold a color until the next one was clicked so I made this bit of code.
Code:
on (release) {
for(var i=0; i<100; i++)
{
Fill = new Color(eval("_root._level0.menuMC" + i + ".theButton"));
Fill.setRGB(0xFFFFFF);
}
fillColor = new Color(this.theButton);
fillColor.setRGB("0xCCCCCC");
This allowed me to Change all buttons back to white execpt the one that was click "Selected effect". Now my Problem is that with setRGB turned the whole button white even the RollOver Effect which is just turned the square black. Does anyone know how to Unset setRGB to clear the button of the color ??
Unset Session Id In Flash
How to I unset the session id after I click a send button in Flash? I can set it in the index.php page where the flash object is, but after clicking the send button, the index.php page doesn't change location so I can't unset it. Is it possible to unset in through actionscript?
How Do You Unset A Movieclip Color
Hi
I have a number of buttons with rollover effects (white text to yellow text), but when its clicked I want it to stay on a differant color (red).
and I can get this to work fine but how do you unset it so that you can use the button rollovers again?
the code I used
Code:
this.colourBtn1 = new Color(_root.nav.homeWelcome);
this.colourBtn1.setRGB(0x3D180C);
|