dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Hue filter and AS

  1. #1
    Senior Member flamedude's Avatar
    Join Date
    Jun 2003
    Location
    Vancouver, BC
    Posts
    252

    Hue filter and AS

    Hi guys,

    I'm trying to get to grips with adjusting filters on the fly with actionscript. However I am simply lost..... Specifically I am trying to adjust the hue of a movieclip called box_mc which is on the root of the movie. I have no idea how to do this, and the help in flash has further confused me even more.

    Despite my embarassment I am asking for any useful tips or advice.

    Any help would be appreciated,

    Steven.

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You can only do that manually. Click on the mc and select filters in the property inspector. Then select Adjust color. There you can set hue.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Senior Member flamedude's Avatar
    Join Date
    Jun 2003
    Location
    Vancouver, BC
    Posts
    252
    Oh...... Oh dear that sucks..

    So what is the purpose of the hue actionscript? In the help is this;

    var myFilters = fl.getDocumentDOM().getFilters();
    for(i=0; i < myFilters.length; i++){
    if(myFilters[i].name == 'adjustColorFilter'){
    myFilters[i].hue = 120;
    }
    }
    fl.getDocumentDOM().setFilters(myFilters);


    But I can't make any sense from it.

    [edit]
    Oh hell this is javascript isnt it? Nevermind...
    [/edit]
    Last edited by flamedude; 05-11-2006 at 04:10 AM.

  4. #4
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296

  5. #5
    Senior Member flamedude's Avatar
    Join Date
    Jun 2003
    Location
    Vancouver, BC
    Posts
    252
    Seriously cool..

    Thank you so much Mirandir!

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