STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
Visit the flash's index page for basic data and a list of seen names.
Threads (1):
File: btsb.swf-(8 KB, 600x645, Game) [_] Current color script help Anon 2247168 I need your help guys. I have been working in this project and I have one question. I don't know a shit about ActionScript but I try. I use AS2. I want to pick a color to coloring the squares at the left. But. I want that color will be show at the "Current color" square at the right. I have no fucking idea about how to do that Captcha: ptcten current >> [_] Anon 2247179 Set the "current color" square was a variable, seeing as this is AS2 Then say, then clicking a color, currCol = newColor (or whichever code youve used in your clicking of the squared method) >> [_] Anon 2247181 >># *as a variable *squares tired as fuck >> [_] Anon 2247187 >># Yes I thought that, but I don't know how to write in this code. I don't know how to put if I click to a color, currCol = newColor btw thanks for reading and helping >> [_] Anon 2247188 >># Whats your code when clicking a square? >> [_] Anon 2247189 >># on (press) { nuevoColor = new Color(this); nuevoColor.setRGB(_root.contr.currentCol or); } When I click a color its: on (press) { _parent.contr.currentColor = "0x990099"; } I use a controller to set the color. I take all of this from the Internet >> [_] Anon 2247193 >># What happens if you set the square using a variable this like http://imgur.com/KLZ1bNT Then use this: on (press) { nuevoColor = new Color(this); nuevoColor.setRGB(_root.contr.currentCol or); theSquare.setRGB(_root.contr.currentColo r); } When I click a color its: on (press) { _parent.contr.currentColor = "0x990099"; } >> [_] Anon 2247199 >># I use Macromedia Flash 8, I don't have the same table to set it as variable. I can put it an instance name, but I have not an empty space to set it as variable. Or at least I don't see it >> [_] Anon 2247200 >># Set the instance name then, does it not set the color? >> [_] Anon 2247203 >># Also just torrent CS6 or something >> [_] Anon 2247205 >># No, it doesn't >> [_] Anon 2247210 >># Upload the FLA so we can at least have a look at the code >> [_] Anon 2247217 >># http://www.filz.us/files/12d29d6e/2d3/bt sb.fla >> [_] Anon 2247228 >># Set the instance name of your 'set color' square to something Then in your pallete colors, use this: myColor = new Color(_parent.urafaget); myColor.setRGB(0xff00ff); >> [_] Anon 2247234 Wow, squares are a native object in AS? That's reasonable, but they have a color variable as well? Wow, how dumb do they think programmers are? >> [_] Anon 2247239 >># 'shapes' are And remember, this is a language designed for animators, they suck at programming >> [_] Anon 2247242 >># Ah, forgot about that. Also one question, is that grid a 2D array of squares? I was only saying that it's stupid to put in a square object with a color variable because native API's are supposed to be abstract. My square class could have different calls/variables like an outline boolean and be much smaller than the native one, thus reducing the amount of heap needed to keep an array of squares. I would also have a grid object so that I would only have to initialize one object with a single array of integers for the color positions. |
|