The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 Viewson a button i have the action
on (release) {
interface1.x = 50.5;
}
interface1 is my mc instance and when the button clicked i want it moved over to the x of 50.5 but when clicked it dosent budge, little help
At 3/24/07 04:02 PM, spex13 wrote: on a button i have the action
on (release) {
interface1.x = 50.5;
}
interface1 is my mc instance and when the button clicked i want it moved over to the x of 50.5 but when clicked it dosent budge, little help
_root.interface1._x = 50.5;
on (release) {
interface1._x = 50;
}
It's _x, not x. It's also better to not move to fractions of pixels either.
woop.
At 3/24/07 04:04 PM, ApatheticMark wrote:
on (release) {
interface1._x = 50;
}
It's _x, not x. It's also better to not move to fractions of pixels either.
it moves but it dosent move to _x = 50, even when i make the number higher it only moves so far then stops
please help it only moves a little bit not the whole way to 50
on(release){
_root.interface1._x=50;
}
That should work. If that doesn't go far enough, try increasing the 50.
If you want it to move to 50 gradually put this:
onClipEvent(load){
speed=5;
}
on(release){
_root.interface1._x+=speed;
}
onClipEvent(enterFrame){
if(_root.interface._x == 50){
speed=0;
}
}
I hope that helps.