A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Color transform on muliple movieclips

  1. #1
    Member
    Join Date
    Sep 2000
    Posts
    70

    Color transform on muliple movieclips

    Hi there ...

    I wonder If the is a way to change the color of the many clips ive got in the library ... right now I am doing it with this inside each movie
    --------------------------------------------------------------------------
    import flash.geom.ColorTransform;

    var color_transf:ColorTransform = this.transform.colorTransform;
    color_transf.color = 0x99AB5E;
    this.transform.colorTransform = color_transf;
    --------------------------------------------------------------------------

    Would be a lot easy if this could be done only once in the main timeline
    and global so I dont have to worry about instance and levels



    all idears welcome

  2. #2
    Member
    Join Date
    Sep 2000
    Posts
    70

    Colortransform exsample AS3

    Hi again ...

    Here you see my ? It would be a lot easier to only set the color once
    for all movies and also dont worry if the are placed inside other movies

    Hope for solutions
    Attached Files Attached Files

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Just delete all the scripts in the Movieclips and put the script you have in a frame on the main timeline and all of them will be converted.
    - The right of the People to create Flash movies shall not be infringed. -

  4. #4
    Member
    Join Date
    Sep 2000
    Posts
    70

    colorTransform

    Yeah

    Have been thinking of that but the clip is placed inside other
    movies ... so therefore it would be great if the could be assign
    with the color from main

    But Thanks

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You have many options. You can name each clip and then use a for loop and so on.
    - The right of the People to create Flash movies shall not be infringed. -

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