A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: dyanmic color fill

Threaded View

  1. #3
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    ok i got that working with the form fields as well, but my problem now is this

    the user can type in a hex code e.g 0x454545 in the skin box, click the prievew button and it will re colour the image, but then if they cahnge it again and press the preiview button it will not change the image. I traced the form value and it is being changed but it is just not re-coloring the image, any ideas?

    nevermind i fixed it 2 seconds after posting this, will post it here in a sec

    Code:
    on (release) {
    	if (this.test == "1") {
    		player.skin.setRGB(_root.formskin);
    		player.shirt.setRGB(_root.formshirt);
    		player.trouser.setRGB(_root.formtrouser);
    		player.shoe.setRGB(_root.formshoe);
    	} else {
    		trace(_root.formskin);
    		player.skin = new Color(_root.player.skin);
    		player.skin.setRGB(_root.formskin);
    		player.shirt = new Color(_root.player.shirt);
    		player.shirt.setRGB(_root.formshirt);
    		player.trouser = new Color(_root.player.trouser);
    		player.trouser.setRGB(_root.formtrouser);
    		player.shoe = new Color(_root.player.shoe);
    		player.shoe.setRGB(_root.formshoe);
    		this.test = "1";
    	}
    }
    Last edited by neomaximus2k; 03-12-2005 at 07:57 AM.

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