# I shall now shoot myself in the face

**URL:** https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207
**Category:** Uncategorized
**Created:** [March 11, 2003, 9:21pm UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207 "2003-03-11T21:21:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![DigitalPimp](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@DigitalPimp](https://forum.kirupa.com/u/DigitalPimp)
#### Post date: [March 11, 2003, 9:21pm UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/1 "2003-03-11T21:21:46Z")

</div>

Ok, can somebody please please help me here??! Attached is a scene where when I mouseover a pic I need it to scale up. When I use just 1 image it works beautifully but if I use 2 images everything gets fubared. I am even using different variables and all. Can somebody please help me before I go kill myself??

[FLA of file](http://www.kernlearn.net/personnel/Schools.fla)

[Compiled](http://www.kernlearn.net/personnel/Schools.swf)

[The whole thing that I’m putting together](http://www.kernlearn.net/personnel/)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 11, 2003, 9:55pm UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/2 "2003-03-11T21:55:39Z")

</div>

what the hell!?!

ok, I don’t have flash on me here, but show me the code you are using and the instance names of the upper and lower image. I might be able to find something…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 11, 2003, 10:47pm UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/3 "2003-03-11T22:47:44Z")

</div>

Exactly!

This is on the top image.

```php

onClipEvent (load) {
	_global.scaleX = 100;
	_global.scaleY = 100;
	speed = 2;
	returnSpeed = 1;
}
onClipEvent (enterFrame) {
	
	_xscale += (scaleX-_xscale)/speed;
	_yscale += (scaleY-_yscale)/speed;
	_width += (_global.scaleX-_xscale)/speed;
	_height += (_global.scaleY-_yscale)/speed;
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		trace(_root.checkVar1);
		_global.scaleX = 200;
		_global.scaleY = 200;
		_root.checkVar1 = "on1"; 
		swapDepths(ArvinExt);
 	}
   else {
		_root.checkVar1 = "off1"; 
 	}
	if (_root.checkVar1 == "off1") {
		_global.scaleX = 100;
		_global.scaleY = 100;
	}
	
}

```

This is on the lower image

```php

onClipEvent (load) {
	_global.scaleX = 100;
	_global.scaleY = 100;
	speed = 2;
	returnSpeed = 1;
}
onClipEvent (enterFrame) {
	
	_xscale += (scaleX-_xscale)/speed;
	_yscale += (scaleY-_yscale)/speed;
	_width += (_global.scaleX-_xscale)/speed;
	_height += (_global.scaleY-_yscale)/speed;
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		trace(_root.checkVar2);
		_global.scaleX = 200;
		_global.scaleY = 200;
		_root.checkVar2 = "on2";
		swapDepths(ArvinInt);
 	}
   else {
		_root.checkVar2 = "off2"; 
 	}
	if (_root.checkVar2 == "off2") {
		_global.scaleX = 100;
		_global.scaleY = 100;
	}
	
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 11, 2003, 11:48pm UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/4 "2003-03-11T23:48:12Z")

</div>

1. remove the \_global There is no point to that and you are confusing the flash movie by having that there. They are counter-acting eachother.

2. Place “this” in front of your properties. (EXAMPLE: change “\_height” to “this.\_height”

Do that on both movieclips to all the properties and it should work ok. I really think that its just those global variables that are confusing the hell out of your movie because you are setting them twice as two different things and both movieclips are calling the same varialbe…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 12, 2003, 12:51am UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/5 "2003-03-12T00:51:28Z")

</div>

That was it thank you very much!!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 12, 2003, 12:58am UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/6 "2003-03-12T00:58:53Z")

</div>

dont shoot yourself. my best friuends dad killed himself.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 12, 2003, 1:28am UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/7 "2003-03-12T01:28:59Z")

</div>

You’re welcome. 🙂 Glad I helped…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 1:11am UTC](https://forum.kirupa.com/t/i-shall-now-shoot-myself-in-the-face/15207/8 "2003-03-19T01:11:43Z")

</div>

fez- that blows
