Professional Web Applications Themes

setting color using actionscript - Macromedia Flash

Hello all, Can someone assist with a small problem i'm having. I'll preface this by saying i'm new to actionscripting. I'm using the following script on a movie clip onClipEvent (enterFrame) { circlecolor = new Color("circle"); myObject = new Object(); myObject = {ra:100, rb:255, ga:0, gb:0, ba:0, bb: 0, aa: 100, ab:0}; circleColor.setTransform(myObject); } I got the script from sams teach yourself actionscript in 24 hours. when i run this clip nothing happens. the clip starts out as black and stays black, if i change the clip to red, it stays red. the script is attached to the movieclip. any ...

  1. #1

    Default setting color using actionscript

    Hello all,

    Can someone assist with a small problem i'm having. I'll preface this by
    saying i'm new to actionscripting.

    I'm using the following script on a movie clip

    onClipEvent (enterFrame) {
    circlecolor = new Color("circle");
    myObject = new Object();
    myObject = {ra:100, rb:255, ga:0, gb:0, ba:0, bb: 0, aa: 100, ab:0};
    circleColor.setTransform(myObject);

    }

    I got the script from sams teach yourself actionscript in 24 hours.

    when i run this clip nothing happens. the clip starts out as black and
    stays black, if i change the clip to red, it stays red. the script is
    attached to the movieclip.

    any help is appreciated.

    Art


    Art Guest

  2. #2

    Default Re: setting color using actionscript

    onClipEvent (enterFrame) {
    circleColor = new Color(_root.circle);
    myObject = new Object();
    myObject = {ra:100, rb:255, ga:0, gb:0, ba:0, bb: 0, aa: 100, ab:0};
    circleColor.setTransform(myObject);
    }

    Line 2 : "C" and not "c"
    Line 2 : give the path to the clip

    Hope it helps.

    Laurent.

    "Art" <net> a écrit dans le message de news:
    3jVug.9946$bellsouth.net... 


    Laurent Guest

  3. #3

    Default Re: setting color using actionscript

    laurent, thanks for your reply, i'm not sure i understand what your
    suggesting. can you elaborate?

    thanks art
    "Laurent" <cyberchti A hotmail.com> wrote in message
    news:44bd4f10$0$5504$free.fr... 
    >
    >[/ref]


    Art Guest

Similar Threads

  1. setting radiobuttongroup id thru actionscript
    By xeek in forum Macromedia Flex General Discussion
    Replies: 5
    Last Post: March 3rd, 08:38 AM
  2. setting a buttons color
    By sammy545 in forum Macromedia Flex General Discussion
    Replies: 5
    Last Post: June 18th, 11:50 AM
  3. change bordersize and -color with actionscript?
    By jens mander in forum Macromedia Flash
    Replies: 2
    Last Post: January 6th, 05:24 PM
  4. How to get the background-color of flash movie by actionscript?
    By ShinGyu Kim in forum Macromedia Flash
    Replies: 2
    Last Post: November 7th, 01:21 AM
  5. Background color setting
    By Dick Cordi in forum Adobe Photoshop Elements
    Replies: 1
    Last Post: September 20th, 08:54 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139