# How do i animate a static pic

**URL:** https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482
**Category:** flash
**Created:** [September 9, 2003, 12:02pm UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482 "2003-09-09T12:02:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SLamaJama](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@SLamaJama](https://forum.kirupa.com/u/SLamaJama)
#### Post date: [September 9, 2003, 12:02pm UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/1 "2003-09-09T12:02:15Z")

</div>

hi…im wondering how can i achieve this effect …

[http://www.free-flash-template.com/shop/?page=shop/flypage&product\_id=41&category\_id=541a03b2b0e1b6dbd972e9f5af5ca992&ps\_session=4e8bf822ac18b5273bb1949861d90961](http://www.free-flash-template.com/shop/?page=shop/flypage&product_id=41&category_id=541a03b2b0e1b6dbd972e9f5af5ca992&ps_session=4e8bf822ac18b5273bb1949861d90961)

the banner … change its shade when mouse is roll over and the random lines… how can i achieve all those? i don think its using button function yea?  
Anyone thanks…

is it ok that i used the above link as an example? i wld like to achieve the same thing… :beam:

---

<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: [October 20, 2003, 8:57am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/2 "2003-10-20T08:57:11Z")

</div>

hi ap… mind me askin hmm…the animate pic has it own document size…how can i just have it at 507 X 103 without adjusting the document size? what shld i add? its because the actual size is 550 X 520 pixels…?

---

<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: [October 21, 2003, 3:33am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/3 "2003-10-21T03:33:11Z")

</div>

anyone…kinda need it urgently

---

<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: [October 21, 2003, 3:36am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/4 "2003-10-21T03:36:56Z")

</div>

im not sure what you’re asking, but i think you want a mask

---

<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: [October 21, 2003, 8:35am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/5 "2003-10-21T08:35:01Z")

</div>

wow, sorry… I didn’t notice this topic back from the dead. Yeldarb is correct - what you need is a mask. [http://www.kirupa.com/developer/flash5/masking.htm](http://www.kirupa.com/developer/flash5/masking.htm)  
that should get you started with masks.

---

<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: [October 22, 2003, 12:49am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/6 "2003-10-22T00:49:50Z")

</div>

hmm… this is by using text right… ok  
let me rephrase my question.

AP\> the file ya send me–\> has a fixed document size. And the roll-overing will only affect within the fixed document size…  
What im asking is… if i don’t set a fixed document size…

alike the e.g  
[http://www.free-flash-template.com/...bb1949861d90961](http://www.free-flash-template.com/...bb1949861d90961)

it works only when u roll over the image… how is it possible? my current document size is 550 X 520.  
And my image size is… 507 X 103 and yes, gues it right… only want the roll over to happen within the image boundary(which is 507 X 103 ).

🙂

---

<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: [October 23, 2003, 12:01am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/7 "2003-10-23T00:01:59Z")

</div>

you gotta use this function on the MC of the picture:

```auto

onClipEvent (enterFrame) {
	
	 if ((this.hitTest(_root._xmouse, _root._ymouse, true){

// pic moving actions explained earlier..

     }
}

```

it checks if the mouse is over the target (this.hitTest)

more info [http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary534.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary534.html)

You might always buy the template to see how its done. hehe! 😏

---

<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: [October 23, 2003, 4:59am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/8 "2003-10-23T04:59:54Z")

</div>

Ah ok, I didn’t see what you were asking… free-flash-temp got it right though (obviously, lol.)

---

<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: [October 28, 2003, 9:29pm UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/9 "2003-10-28T21:29:51Z")

</div>

onClipEvent(enterFrame){  
perc=100\*(\_root.\_xmouse/\_root.\_width);  
\_root.dark.\_alpha=100-perc;  
}

so i edit --\> perc=100\*(\_root.\_xmouse/\_root.\_width); to --\>  
onClipEvent (enterFrame) {

```
 if ((this.hitTest(_root._xmouse, _root._ymouse, true){
```

---

<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: [October 30, 2003, 3:20am UTC](https://forum.kirupa.com/t/how-do-i-animate-a-static-pic/30482/10 "2003-10-30T03:20:39Z")

</div>

helllo!!! anyone…ap? free-flash-template?
