A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Change backgorund of shape???

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357

    Change backgorund of shape???

    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.

  2. #2
    Always needs help marinebro0306's Avatar
    Join Date
    Jul 2005
    Location
    Philadelphia
    Posts
    166
    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
    code:

    onClipEvent(load){
    //Hides the pic to start with
    this._alpha=0}


    Then in the button, use this code:
    code:

    //Makes it visible when you click it
    on(release){
    setProperty("pic", _alpha, 100)}


    Hope that helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center