How do i animate a static pic

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

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:

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…?

anyone…kinda need it urgently

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

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
that should get you started with masks.

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

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 ).

:slight_smile:

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


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

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

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

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){

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