simple as3 question
simple as3 question
- Started
- Last post
- 4 Responses
- attentionspan
I have a vertical flash menu only thing is i want to change y position of the whole menu - currently it just changes distance of buttons in y- how do i add a y position for the whole menu?
btn.x = fm_button.x = 550;
btn.y = fm_button.y + i * ( fm_button.height + 5 );thankss
- chrisRG0
you could either add your menu items to a parent holder and change its position (i think that's the best to do), or you could do this:
btn.y = (fm_button.y + i * ( fm_button.height + 5 )) + VALUE_TO_ADD;
- attentionspan0
thanks that worked
- Hombre_Lobo0
chrisRG, telling it like it is. AS3 style.
- satan0
this.y = VALUE;