;

PDA

Click to See Complete Forum and Search --> : Change backgorund of shape???


xzerox_xzerox
09-16-2005, 08:13 PM
Hello...

Im creating a cool page (http://e.domaindlx.com/xzerox/v4/) but a have a problem. I want to change the background color of the big black content shape (se on page) to a image. I want it to change so the image only displays when you press a button.

Can somebody please help me with this and make a script that chages the background of a specific shap to a image when you press a button. :cool:

marinebro0306
09-16-2005, 08:40 PM
First, put your picture in the spot where you want it, on the correct level. Next, make it a movie clip, and name it something like pic. Then, in the picture MC, copy and paste this code
onClipEvent(load){
//Hides the pic to start with
this._alpha=0}

Then in the button, use this code:
//Makes it visible when you click it
on(release){
setProperty("pic", _alpha, 100)}
Hope that helps.