dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: coloring objects

  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    13

    coloring objects

    hi @all,

    i have 3 objects and 3 color-buttons and i want to fill an object with one selected color. i know i can fill an object(mc) with:

    on (release) {
    color = new Color(mc);
    color.setRGB(0xFF00FF);
    }

    e.g. i have a 'circle', 'box', 'triangle' and the colors blue, green, red. so i want to click on the 'box' and then on one color and it should fill with the color i click...

    how could i do this best??

    thanks for help

    alex

  2. #2
    graphic designer
    Join Date
    Aug 2002
    Location
    Brazil
    Posts
    112
    I hope it help you
    uses onPress in mcs
    (flash mx2004 file ok?)
    Attached Files Attached Files
    |calve|brazil|

  3. #3
    Junior Member
    Join Date
    May 2003
    Posts
    13
    cant open the file.

    it says its an unexpected file format.

    maybe a .zip-file would work

  4. #4
    Junior Member
    Join Date
    May 2003
    Posts
    13
    oh ok...sorry....got it.... mx 2004 file....

  5. #5
    graphic designer
    Join Date
    Aug 2002
    Location
    Brazil
    Posts
    112
    It opened?
    It solves your problem?
    |calve|brazil|

  6. #6
    Junior Member
    Join Date
    May 2003
    Posts
    13
    it did open and it did indeed solve my problem....

    trying to put it now on what i was doing....

    thanks a lot.... u did really help there

    appreciate it

  7. #7
    Member
    Join Date
    Sep 2003
    Location
    Crewe, Cheshire
    Posts
    93
    This is great, but is there any way the new colour can be stored in say an xml file or text file. I can do it with shared documents, but in terms of xml and text files no.

    Does any one know?

    Trev

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